Back to index

texmacs  1.0.7.15
Public Member Functions | Protected Attributes
QTMProxyStyle Class Reference
Inheritance diagram for QTMProxyStyle:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 QTMProxyStyle (QStyle *_base=NULL)
 ~QTMProxyStyle ()
QStyle * baseStyle () const
const QStyle * proxy () const
void drawComplexControl (ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget=0) const
void drawControl (ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget=0) const
void drawItemPixmap (QPainter *painter, const QRect &rect, int alignment, const QPixmap &pixmap) const
void drawItemText (QPainter *painter, const QRect &rect, int alignment, const QPalette &pal, bool enabled, const QString &text, QPalette::ColorRole textRole=QPalette::NoRole) const
void drawPrimitive (PrimitiveElement elem, const QStyleOption *option, QPainter *painter, const QWidget *widget=0) const
QPixmap generatedIconPixmap (QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *option) const
SubControl hitTestComplexControl (ComplexControl control, const QStyleOptionComplex *option, const QPoint &pos, const QWidget *widget=0) const
QRect itemPixmapRect (const QRect &rect, int alignment, const QPixmap &pixmap) const
QRect itemTextRect (const QFontMetrics &metrics, const QRect &rect, int alignment, bool enabled, const QString &text) const
int pixelMetric (PixelMetric metric, const QStyleOption *option=0, const QWidget *widget=0) const
void polish (QWidget *widget)
void polish (QApplication *app)
void polish (QPalette &pal)
QSize sizeFromContents (ContentsType type, const QStyleOption *option, const QSize &contentsSize, const QWidget *widget=0) const
QIcon standardIcon (StandardPixmap standardIcon, const QStyleOption *option=0, const QWidget *widget=0) const
QPalette standardPalette () const
QPixmap standardPixmap (StandardPixmap standardPixmap, const QStyleOption *option=0, const QWidget *widget=0) const
int styleHint (StyleHint hint, const QStyleOption *option=0, const QWidget *widget=0, QStyleHintReturn *returnData=0) const
QRect subControlRect (ComplexControl control, const QStyleOptionComplex *option, SubControl subControl, const QWidget *widget=0) const
QRect subElementRect (SubElement element, const QStyleOption *option, const QWidget *widget=0) const
void unpolish (QWidget *widget)
void unpolish (QApplication *app)

Protected Attributes

QStyle * base

Detailed Description

Definition at line 29 of file QTMStyle.cpp.


Constructor & Destructor Documentation

QTMProxyStyle::QTMProxyStyle ( QStyle *  _base = NULL) [explicit]

Definition at line 87 of file QTMStyle.cpp.

                                          :
QStyle (), base (_base) {}

Definition at line 90 of file QTMStyle.cpp.

                              {
  // delete style;
}

Member Function Documentation

QStyle * QTMProxyStyle::baseStyle ( ) const [inline]

Definition at line 94 of file QTMStyle.cpp.

                                               {
  return ( base ? base : qApp->style() );
}

Here is the caller graph for this function:

void QTMProxyStyle::drawComplexControl ( ComplexControl  control,
const QStyleOptionComplex *  option,
QPainter *  painter,
const QWidget *  widget = 0 
) const

Reimplemented in QTMStyle.

Definition at line 100 of file QTMStyle.cpp.

                                                                                                                                            {
  baseStyle()->drawComplexControl (control, option, painter, widget);
}

Here is the call graph for this function:

void QTMProxyStyle::drawControl ( ControlElement  element,
const QStyleOption *  option,
QPainter *  painter,
const QWidget *  widget = 0 
) const

Reimplemented in QTMStyle.

Definition at line 105 of file QTMStyle.cpp.

                                                                                                                              {
  baseStyle()->drawControl (element, option, painter, widget);
}

Here is the call graph for this function:

void QTMProxyStyle::drawItemPixmap ( QPainter *  painter,
const QRect &  rect,
int  alignment,
const QPixmap &  pixmap 
) const

Definition at line 110 of file QTMStyle.cpp.

                                                                                                               {
  baseStyle()->drawItemPixmap (painter, rect, alignment, pixmap);
}

Here is the call graph for this function:

void QTMProxyStyle::drawItemText ( QPainter *  painter,
const QRect &  rect,
int  alignment,
const QPalette &  pal,
bool  enabled,
const QString &  text,
QPalette::ColorRole  textRole = QPalette::NoRole 
) const

Definition at line 115 of file QTMStyle.cpp.

                                                                                                                                                                          {
  baseStyle()->drawItemText (painter, rect, alignment, pal, enabled, text, textRole);
}

Here is the call graph for this function:

void QTMProxyStyle::drawPrimitive ( PrimitiveElement  elem,
const QStyleOption *  option,
QPainter *  painter,
const QWidget *  widget = 0 
) const

Reimplemented in QTMStyle.

Definition at line 120 of file QTMStyle.cpp.

                                                                                                                               {
  baseStyle()->drawPrimitive (elem, option, painter, widget);
}

Here is the call graph for this function:

QPixmap QTMProxyStyle::generatedIconPixmap ( QIcon::Mode  iconMode,
const QPixmap &  pixmap,
const QStyleOption *  option 
) const

Definition at line 125 of file QTMStyle.cpp.

                                                                                                               {
  return baseStyle()->generatedIconPixmap (iconMode, pixmap, option);
}

Here is the call graph for this function:

QStyle::SubControl QTMProxyStyle::hitTestComplexControl ( ComplexControl  control,
const QStyleOptionComplex *  option,
const QPoint &  pos,
const QWidget *  widget = 0 
) const

Definition at line 130 of file QTMStyle.cpp.

                                                                                                                                               {
  return baseStyle()->hitTestComplexControl (control, option, pos, widget);
}

Here is the call graph for this function:

QRect QTMProxyStyle::itemPixmapRect ( const QRect &  rect,
int  alignment,
const QPixmap &  pixmap 
) const

Definition at line 135 of file QTMStyle.cpp.

                                                                                            {
  return baseStyle()->itemPixmapRect (rect, alignment, pixmap);
}

Here is the call graph for this function:

QRect QTMProxyStyle::itemTextRect ( const QFontMetrics &  metrics,
const QRect &  rect,
int  alignment,
bool  enabled,
const QString &  text 
) const

Definition at line 140 of file QTMStyle.cpp.

                                                                                                                                   {
  return baseStyle()->itemTextRect (metrics, rect, alignment, enabled, text);
}

Here is the call graph for this function:

int QTMProxyStyle::pixelMetric ( PixelMetric  metric,
const QStyleOption *  option = 0,
const QWidget *  widget = 0 
) const

Reimplemented in QTMStyle.

Definition at line 145 of file QTMStyle.cpp.

                                                                                                       {
  return baseStyle()->pixelMetric (metric, option, widget);
}

Here is the call graph for this function:

void QTMProxyStyle::polish ( QWidget *  widget)

Definition at line 150 of file QTMStyle.cpp.

                                      {
  baseStyle()->polish (widget);
}

Here is the call graph for this function:

void QTMProxyStyle::polish ( QApplication *  app)

Definition at line 155 of file QTMStyle.cpp.

                                        {
  baseStyle()->polish (app);
}

Here is the call graph for this function:

void QTMProxyStyle::polish ( QPalette &  pal)

Definition at line 160 of file QTMStyle.cpp.

                                    {
  baseStyle()->polish (pal);
}

Here is the call graph for this function:

const QStyle* QTMProxyStyle::proxy ( ) const [inline]

Definition at line 41 of file QTMStyle.cpp.

{ return this; }

Here is the caller graph for this function:

QSize QTMProxyStyle::sizeFromContents ( ContentsType  type,
const QStyleOption *  option,
const QSize &  contentsSize,
const QWidget *  widget = 0 
) const

Reimplemented in QTMStyle.

Definition at line 165 of file QTMStyle.cpp.

                                                                                                                                      {
  return baseStyle()->sizeFromContents (type, option, contentsSize, widget);
}

Here is the call graph for this function:

QIcon QTMProxyStyle::standardIcon ( StandardPixmap  standardIcon,
const QStyleOption *  option = 0,
const QWidget *  widget = 0 
) const

Definition at line 170 of file QTMStyle.cpp.

                                                                                                                 {
  return baseStyle()->standardIcon (standardIcon, option, widget);
}

Here is the call graph for this function:

QPalette QTMProxyStyle::standardPalette ( ) const

Definition at line 175 of file QTMStyle.cpp.

                                      {
  return baseStyle()->standardPalette ();
}

Here is the call graph for this function:

QPixmap QTMProxyStyle::standardPixmap ( StandardPixmap  standardPixmap,
const QStyleOption *  option = 0,
const QWidget *  widget = 0 
) const

Definition at line 180 of file QTMStyle.cpp.

                                                                                                                     {
  return baseStyle()->standardPixmap (standardPixmap, option, widget);
}

Here is the call graph for this function:

int QTMProxyStyle::styleHint ( StyleHint  hint,
const QStyleOption *  option = 0,
const QWidget *  widget = 0,
QStyleHintReturn *  returnData = 0 
) const

Reimplemented in QTMStyle.

Definition at line 185 of file QTMStyle.cpp.

                                                                                                                               {
  return baseStyle()->styleHint (hint, option, widget, returnData);
}

Here is the call graph for this function:

QRect QTMProxyStyle::subControlRect ( ComplexControl  control,
const QStyleOptionComplex *  option,
SubControl  subControl,
const QWidget *  widget = 0 
) const

Definition at line 190 of file QTMStyle.cpp.

                                                                                                                                            {
  return baseStyle()->subControlRect (control, option, subControl, widget);
}

Here is the call graph for this function:

QRect QTMProxyStyle::subElementRect ( SubElement  element,
const QStyleOption *  option,
const QWidget *  widget = 0 
) const

Definition at line 195 of file QTMStyle.cpp.

                                                                                                          {
  return baseStyle()->subElementRect (element, option, widget);
}

Here is the call graph for this function:

void QTMProxyStyle::unpolish ( QWidget *  widget)

Definition at line 200 of file QTMStyle.cpp.

                                        {
  baseStyle()->unpolish (widget);
}

Here is the call graph for this function:

void QTMProxyStyle::unpolish ( QApplication *  app)

Definition at line 205 of file QTMStyle.cpp.

                                          {
  baseStyle()->unpolish (app);
}

Here is the call graph for this function:


Member Data Documentation

QStyle* QTMProxyStyle::base [protected]

Definition at line 32 of file QTMStyle.cpp.


The documentation for this class was generated from the following file: