#include <qstyle.h>
Public Member Functions | |
QStyle () | |
virtual | ~QStyle () |
virtual void | polish (QWidget *) |
virtual void | unpolish (QWidget *) |
virtual void | polish (QApplication *) |
virtual void | unpolish (QApplication *) |
virtual void | polish (QPalette &) |
virtual QRect | itemTextRect (const QFontMetrics &fm, const QRect &r, int flags, bool enabled, const QString &text) const |
virtual QRect | itemPixmapRect (const QRect &r, int flags, const QPixmap &pixmap) const |
virtual void | drawItemText (QPainter *painter, const QRect &rect, int flags, const QPalette &pal, bool enabled, const QString &text, QPalette::ColorRole textRole=QPalette::NoRole) const |
virtual void | drawItemPixmap (QPainter *painter, const QRect &rect, int alignment, const QPixmap &pixmap) const |
virtual QPalette | standardPalette () const |
virtual void | drawPrimitive (PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const =0 |
virtual void | drawControl (ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const =0 |
virtual QRect | subElementRect (SubElement subElement, const QStyleOption *option, const QWidget *widget=0) const =0 |
virtual void | drawComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget=0) const =0 |
virtual SubControl | hitTestComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *widget=0) const =0 |
virtual QRect | subControlRect (ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *widget=0) const =0 |
virtual int | pixelMetric (PixelMetric metric, const QStyleOption *option=0, const QWidget *widget=0) const =0 |
virtual QSize | sizeFromContents (ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *w=0) const =0 |
virtual int | styleHint (StyleHint stylehint, const QStyleOption *opt=0, const QWidget *widget=0, QStyleHintReturn *returnData=0) const =0 |
virtual QPixmap | standardPixmap (StandardPixmap standardPixmap, const QStyleOption *opt=0, const QWidget *widget=0) const =0 |
QIcon | standardIcon (StandardPixmap standardIcon, const QStyleOption *option=0, const QWidget *widget=0) const |
virtual QPixmap | generatedIconPixmap (QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const =0 |
int | layoutSpacing (QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=0, const QWidget *widget=0) const |
int | combinedLayoutSpacing (QSizePolicy::ControlTypes controls1, QSizePolicy::ControlTypes controls2, Qt::Orientation orientation, QStyleOption *option=0, QWidget *widget=0) const |
const QStyle * | proxy () const |
![]() | |
Q_INVOKABLE | QObject (QObject *parent=0) |
virtual | ~QObject () |
virtual bool | event (QEvent *) |
virtual bool | eventFilter (QObject *, QEvent *) |
QString | objectName () const |
void | setObjectName (const QString &name) |
bool | isWidgetType () const |
bool | signalsBlocked () const |
bool | blockSignals (bool b) |
QThread * | thread () const |
void | moveToThread (QThread *thread) |
int | startTimer (int interval) |
void | killTimer (int id) |
template<typename T > | |
T | findChild (const QString &aName=QString()) const |
template<typename T > | |
QList< T > | findChildren (const QString &aName=QString()) const |
template<typename T > | |
QList< T > | findChildren (const QRegExp &re) const |
const QObjectList & | children () const |
void | setParent (QObject *) |
void | installEventFilter (QObject *) |
void | removeEventFilter (QObject *) |
bool | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0) |
bool | disconnect (const QObject *receiver, const char *member=0) |
void | dumpObjectTree () |
void | dumpObjectInfo () |
bool | setProperty (const char *name, const QVariant &value) |
QVariant | property (const char *name) const |
QList< QByteArray > | dynamicPropertyNames () const |
void | setUserData (uint id, QObjectUserData *data) |
QObjectUserData * | userData (uint id) const |
QObject * | parent () const |
bool | inherits (const char *classname) const |
Static Public Member Functions | |
static QRect | visualRect (Qt::LayoutDirection direction, const QRect &boundingRect, const QRect &logicalRect) |
static QPoint | visualPos (Qt::LayoutDirection direction, const QRect &boundingRect, const QPoint &logicalPos) |
static int | sliderPositionFromValue (int min, int max, int val, int space, bool upsideDown=false) |
static int | sliderValueFromPosition (int min, int max, int pos, int space, bool upsideDown=false) |
static Qt::Alignment | visualAlignment (Qt::LayoutDirection direction, Qt::Alignment alignment) |
static QRect | alignedRect (Qt::LayoutDirection direction, Qt::Alignment alignment, const QSize &size, const QRect &rectangle) |
![]() | |
static bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
static bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static uint | registerUserData () |
Protected Slots | |
QIcon | standardIconImplementation (StandardPixmap standardIcon, const QStyleOption *opt=0, const QWidget *widget=0) const |
int | layoutSpacingImplementation (QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=0, const QWidget *widget=0) const |
Protected Member Functions | |
QStyle (QStylePrivate &dd) | |
![]() | |
QObject * | sender () const |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
virtual void | timerEvent (QTimerEvent *) |
virtual void | childEvent (QChildEvent *) |
virtual void | customEvent (QEvent *) |
virtual void | connectNotify (const char *signal) |
virtual void | disconnectNotify (const char *signal) |
QObject (QObjectPrivate &dd, QObject *parent=0) | |
Friends | |
class | QWidget |
class | QWidgetPrivate |
class | QApplication |
class | QProxyStyle |
class | QProxyStylePrivate |
Additional Inherited Members | |
![]() | |
void | deleteLater () |
![]() | |
void | destroyed (QObject *=0) |
![]() | |
QScopedPointer< QObjectData > | d_ptr |
![]() | |
static const QMetaObject | staticQtMetaObject |
![]() | |
QString | objectName |
enum StateFlag |
Definition at line 103 of file qstyle.h.
enum PrimitiveElement |
Definition at line 145 of file qstyle.h.
enum ControlElement |
Definition at line 217 of file qstyle.h.
enum SubElement |
Definition at line 289 of file qstyle.h.
enum ComplexControl |
Enumerator | |
---|---|
CC_SpinBox | |
CC_ComboBox | |
CC_ScrollBar | |
CC_Slider | |
CC_ToolButton | |
CC_TitleBar | |
CC_Q3ListView | |
CC_Dial | |
CC_GroupBox | |
CC_MdiControls | |
CC_CustomBase |
Definition at line 386 of file qstyle.h.
enum SubControl |
Definition at line 402 of file qstyle.h.
enum PixelMetric |
Definition at line 474 of file qstyle.h.
enum ContentsType |
Definition at line 602 of file qstyle.h.
Enumerator | |
---|---|
RSIP_OnMouseClickAndAlreadyFocused | |
RSIP_OnMouseClick |
Definition at line 635 of file qstyle.h.
enum StyleHint |
Definition at line 640 of file qstyle.h.
enum StandardPixmap |
Definition at line 755 of file qstyle.h.
|
protected |
QStyle | ( | ) |
|
virtual |
Reimplemented in QS60Style, QCleanlooksStyle, QCommonStyle, QProxyStyle, QPlastiqueStyle, QWindowsVistaStyle, QMotifStyle, QWindowsStyle, and QWindowsXPStyle.
Reimplemented in QS60Style, QCleanlooksStyle, QProxyStyle, QCommonStyle, QPlastiqueStyle, QWindowsVistaStyle, QMotifStyle, QWindowsStyle, and QWindowsXPStyle.
|
virtual |
Reimplemented in QS60Style, QCleanlooksStyle, QProxyStyle, QCommonStyle, QPlastiqueStyle, QWindowsVistaStyle, QMotifStyle, QWindowsXPStyle, and QWindowsStyle.
|
virtual |
Reimplemented in QS60Style, QCleanlooksStyle, QProxyStyle, QCommonStyle, QPlastiqueStyle, QWindowsVistaStyle, QMotifStyle, QWindowsStyle, and QWindowsXPStyle.
Reimplemented in QCleanlooksStyle, QProxyStyle, QPlastiqueStyle, QCommonStyle, QWindowsVistaStyle, QMotifStyle, QWindowsStyle, and QWindowsXPStyle.
|
virtual |
Reimplemented in QProxyStyle.
Reimplemented in QCleanlooksStyle, and QProxyStyle.
|
virtual |
Reimplemented in QCleanlooksStyle, and QProxyStyle.
|
virtual |
Reimplemented in QCleanlooksStyle, and QProxyStyle.
|
virtual |
Reimplemented in QMotifStyle, QPlastiqueStyle, QWindowsVistaStyle, QProxyStyle, QWindowsXPStyle, QCDEStyle, and QCleanlooksStyle.
|
pure virtual |
Implemented in QS60Style, QMotifStyle, QWindowsStyle, QWindowsXPStyle, QCDEStyle, QProxyStyle, QCleanlooksStyle, QPlastiqueStyle, QCommonStyle, and QWindowsVistaStyle.
|
pure virtual |
Implemented in QS60Style, QMotifStyle, QWindowsStyle, QWindowsXPStyle, QCleanlooksStyle, QProxyStyle, QPlastiqueStyle, QCDEStyle, QCommonStyle, and QWindowsVistaStyle.
|
pure virtual |
Implemented in QS60Style, QMotifStyle, QProxyStyle, QWindowsStyle, QCleanlooksStyle, QWindowsXPStyle, QPlastiqueStyle, QWindowsVistaStyle, and QCommonStyle.
|
pure virtual |
Implemented in QS60Style, QMotifStyle, QWindowsStyle, QWindowsXPStyle, QCleanlooksStyle, QProxyStyle, QPlastiqueStyle, QCommonStyle, and QWindowsVistaStyle.
|
pure virtual |
Implemented in QProxyStyle, QPlastiqueStyle, QCleanlooksStyle, QWindowsVistaStyle, and QCommonStyle.
|
pure virtual |
Implemented in QS60Style, QMotifStyle, QCleanlooksStyle, QProxyStyle, QWindowsXPStyle, QPlastiqueStyle, QWindowsVistaStyle, and QCommonStyle.
|
pure virtual |
Implemented in QS60Style, QMotifStyle, QProxyStyle, QPlastiqueStyle, QWindowsStyle, QWindowsXPStyle, QWindowsVistaStyle, QCommonStyle, QCleanlooksStyle, and QCDEStyle.
|
pure virtual |
Implemented in QS60Style, QMotifStyle, QWindowsStyle, QWindowsXPStyle, QCleanlooksStyle, QProxyStyle, QCommonStyle, QPlastiqueStyle, and QWindowsVistaStyle.
|
pure virtual |
Implemented in QS60Style, QMotifStyle, QWindowsStyle, QCleanlooksStyle, QWindowsXPStyle, QProxyStyle, QWindowsVistaStyle, QCommonStyle, and QPlastiqueStyle.
|
pure virtual |
Implemented in QMotifStyle, QWindowsStyle, QWindowsXPStyle, QCleanlooksStyle, QProxyStyle, QPlastiqueStyle, QCommonStyle, and QWindowsVistaStyle.
QIcon standardIcon | ( | StandardPixmap | standardIcon, |
const QStyleOption * | option = 0 , |
||
const QWidget * | widget = 0 |
||
) | const |
|
pure virtual |
Implemented in QProxyStyle, QCommonStyle, and QCleanlooksStyle.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
int layoutSpacing | ( | QSizePolicy::ControlType | control1, |
QSizePolicy::ControlType | control2, | ||
Qt::Orientation | orientation, | ||
const QStyleOption * | option = 0 , |
||
const QWidget * | widget = 0 |
||
) | const |
int combinedLayoutSpacing | ( | QSizePolicy::ControlTypes | controls1, |
QSizePolicy::ControlTypes | controls2, | ||
Qt::Orientation | orientation, | ||
QStyleOption * | option = 0 , |
||
QWidget * | widget = 0 |
||
) | const |
const QStyle* proxy | ( | ) | const |
|
protectedslot |
|
protectedslot |
|
friend |
|
friend |