![]() |
Qt 4.8
|
The QGtkStyle class provides a widget style rendered by GTK+. More...
#include <qgtkstyle.h>
Public Functions | |
| void | drawComplexControl (ComplexControl control, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget) const |
| Reimplemented Function More... | |
| void | drawControl (ControlElement control, const QStyleOption *option, QPainter *painter, const QWidget *widget) const |
| Reimplemented Function More... | |
| void | drawItemPixmap (QPainter *painter, const QRect &rect, int alignment, const QPixmap &pixmap) const |
| Reimplemented Function More... | |
| void | drawItemText (QPainter *painter, const QRect &rect, int alignment, const QPalette &pal, bool enabled, const QString &text, QPalette::ColorRole textRole) const |
| Reimplemented Function More... | |
| void | drawPrimitive (PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget) const |
| Reimplemented Function More... | |
| QPixmap | generatedIconPixmap (QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const |
| Reimplemented Function More... | |
| QStyle::SubControl | hitTestComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *w) const |
| Reimplemented Function More... | |
| QRect | itemPixmapRect (const QRect &r, int flags, const QPixmap &pixmap) const |
| Reimplemented Function More... | |
| int | pixelMetric (PixelMetric metric, const QStyleOption *option=0, const QWidget *widget=0) const |
| Reimplemented Function More... | |
| void | polish (QWidget *widget) |
| Reimplemented Function More... | |
| void | polish (QApplication *app) |
| Reimplemented Function More... | |
| void | polish (QPalette &palette) |
| Reimplemented Function More... | |
| QGtkStyle () | |
| Constructs a QGtkStyle object. More... | |
| QGtkStyle (QGtkStylePrivate &dd) | |
| Constructs a QGtkStyle object. More... | |
| QSize | sizeFromContents (ContentsType type, const QStyleOption *option, const QSize &size, const QWidget *widget) const |
| Reimplemented Function More... | |
| QPalette | standardPalette () const |
| Reimplemented Function More... | |
| QPixmap | standardPixmap (StandardPixmap sp, const QStyleOption *option, const QWidget *widget) const |
| Reimplemented Function More... | |
| int | styleHint (StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const |
| Reimplemented Function More... | |
| QRect | subControlRect (ComplexControl control, const QStyleOptionComplex *option, SubControl subControl, const QWidget *widget) const |
| Reimplemented Function More... | |
| QRect | subElementRect (SubElement sr, const QStyleOption *opt, const QWidget *w) const |
| Reimplemented Function More... | |
| void | unpolish (QWidget *widget) |
| Reimplemented Function More... | |
| void | unpolish (QApplication *app) |
| Reimplemented Function More... | |
| ~QGtkStyle () | |
| Destroys the QGtkStyle object. More... | |
Public Functions inherited from QCleanlooksStyle | |
| QCleanlooksStyle () | |
| Constructs a QCleanlooksStyle object. More... | |
| ~QCleanlooksStyle () | |
| Destroys the QCleanlooksStyle object. More... | |
Public Functions inherited from QWindowsStyle | |
| void | drawComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *w=0) const |
| Reimplemented Function More... | |
| void | drawControl (ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const |
| Reimplemented Function More... | |
| void | drawPrimitive (PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=0) const |
| Reimplemented Function More... | |
| int | pixelMetric (PixelMetric pm, const QStyleOption *option=0, const QWidget *widget=0) const |
| Reimplemented Function More... | |
| void | polish (QApplication *) |
| Reimplemented Function More... | |
| void | polish (QWidget *) |
| Reimplemented Function More... | |
| void | polish (QPalette &) |
| Reimplemented Function More... | |
| QWindowsStyle () | |
| Constructs a QWindowsStyle object. More... | |
| QSize | sizeFromContents (ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *widget=0) const |
| Reimplemented Function More... | |
| QPixmap | standardPixmap (StandardPixmap standardPixmap, const QStyleOption *opt, const QWidget *widget=0) const |
| Reimplemented Function More... | |
| int | styleHint (StyleHint hint, const QStyleOption *opt=0, const QWidget *widget=0, QStyleHintReturn *returnData=0) const |
| Reimplemented Function More... | |
| QRect | subElementRect (SubElement r, const QStyleOption *opt, const QWidget *widget=0) const |
| Reimplemented Function More... | |
| void | unpolish (QApplication *) |
| Reimplemented Function More... | |
| void | unpolish (QWidget *) |
| Reimplemented Function More... | |
| ~QWindowsStyle () | |
| Destroys the QWindowsStyle object. More... | |
Public Functions inherited from QCommonStyle | |
| QCommonStyle () | |
| Constructs a QCommonStyle. More... | |
| ~QCommonStyle () | |
| Destroys the style. More... | |
Public Functions inherited from QStyle | |
| int | combinedLayoutSpacing (QSizePolicy::ControlTypes controls1, QSizePolicy::ControlTypes controls2, Qt::Orientation orientation, QStyleOption *option=0, QWidget *widget=0) const |
| Returns the spacing that should be used between controls1 and controls2 in a layout. More... | |
| virtual QRect | itemTextRect (const QFontMetrics &fm, const QRect &r, int flags, bool enabled, const QString &text) const |
| Returns the area within the given rectangle in which to draw the provided text according to the specified font metrics and alignment. More... | |
| int | layoutSpacing (QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=0, const QWidget *widget=0) const |
| Returns the spacing that should be used between control1 and control2 in a layout. More... | |
| const QStyle * | proxy () const |
| QStyle () | |
| Constructs a style object. More... | |
| QIcon | standardIcon (StandardPixmap standardIcon, const QStyleOption *option=0, const QWidget *widget=0) const |
| Returns an icon for the given standardIcon. More... | |
| virtual | ~QStyle () |
| Destroys the style object. More... | |
Public Functions inherited from QObject | |
| bool | blockSignals (bool b) |
| If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). More... | |
| const QObjectList & | children () const |
| Returns a list of child objects. More... | |
| 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 | dumpObjectInfo () |
| Dumps information about signal connections, etc. More... | |
| void | dumpObjectTree () |
| Dumps a tree of children to the debug output. More... | |
| QList< QByteArray > | dynamicPropertyNames () const |
| Returns the names of all properties that were dynamically added to the object using setProperty(). More... | |
| virtual bool | event (QEvent *) |
| This virtual function receives events to an object and should return true if the event e was recognized and processed. More... | |
| template<typename T > | |
| T | findChild (const QString &aName=QString()) const |
| Returns the child of this object that can be cast into type T and that is called name, or 0 if there is no such object. More... | |
| template<typename T > | |
| QList< T > | findChildren (const QString &aName=QString()) const |
| Returns all children of this object with the given name that can be cast to type T, or an empty list if there are no such objects. More... | |
| template<typename T > | |
| QList< T > | findChildren (const QRegExp &re) const |
| bool | inherits (const char *classname) const |
| Returns true if this object is an instance of a class that inherits className or a QObject subclass that inherits className; otherwise returns false. More... | |
| void | installEventFilter (QObject *) |
| Installs an event filter filterObj on this object. More... | |
| bool | isWidgetType () const |
| Returns true if the object is a widget; otherwise returns false. More... | |
| void | killTimer (int id) |
| Kills the timer with timer identifier, id. More... | |
| virtual const QMetaObject * | metaObject () const |
| Returns a pointer to the meta-object of this object. More... | |
| void | moveToThread (QThread *thread) |
| Changes the thread affinity for this object and its children. More... | |
| QString | objectName () const |
| QObject * | parent () const |
| Returns a pointer to the parent object. More... | |
| QVariant | property (const char *name) const |
| Returns the value of the object's name property. More... | |
| Q_INVOKABLE | QObject (QObject *parent=0) |
| Constructs an object with parent object parent. More... | |
| void | removeEventFilter (QObject *) |
| Removes an event filter object obj from this object. More... | |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *) |
| Makes the object a child of parent. More... | |
| bool | setProperty (const char *name, const QVariant &value) |
| Sets the value of the object's name property to value. More... | |
| void | setUserData (uint id, QObjectUserData *data) |
| bool | signalsBlocked () const |
| Returns true if signals are blocked; otherwise returns false. More... | |
| int | startTimer (int interval) |
| Starts a timer and returns a timer identifier, or returns zero if it could not start a timer. More... | |
| QThread * | thread () const |
| Returns the thread in which the object lives. More... | |
| QObjectUserData * | userData (uint id) const |
| virtual | ~QObject () |
| Destroys the object, deleting all its child objects. More... | |
Static Public Functions | |
| static bool | getGConfBool (const QString &key, bool fallback=0) |
| Returns the configuration boolean for key. More... | |
| static QString | getGConfString (const QString &key, const QString &fallback=QString()) |
| Returns the configuration string for value. More... | |
Static Public Functions inherited from QStyle | |
| static QRect | alignedRect (Qt::LayoutDirection direction, Qt::Alignment alignment, const QSize &size, const QRect &rectangle) |
| Returns a new rectangle of the specified size that is aligned to the given rectangle according to the specified alignment and direction. More... | |
| static int | sliderPositionFromValue (int min, int max, int val, int space, bool upsideDown=false) |
| Converts the given logicalValue to a pixel position. More... | |
| static int | sliderValueFromPosition (int min, int max, int pos, int space, bool upsideDown=false) |
| Converts the given pixel position to a logical value. More... | |
| static Qt::Alignment | visualAlignment (Qt::LayoutDirection direction, Qt::Alignment alignment) |
| Transforms an alignment of Qt::AlignLeft or Qt::AlignRight without Qt::AlignAbsolute into Qt::AlignLeft or Qt::AlignRight with Qt::AlignAbsolute according to the layout direction. More... | |
| static QPoint | visualPos (Qt::LayoutDirection direction, const QRect &boundingRect, const QPoint &logicalPos) |
| Returns the given logicalPosition converted to screen coordinates based on the specified direction. More... | |
| static QRect | visualRect (Qt::LayoutDirection direction, const QRect &boundingRect, const QRect &logicalRect) |
| Returns the given logicalRectangle converted to screen coordinates based on the specified direction. More... | |
Static Public Functions inherited from QObject | |
| static bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
| Creates a connection of the given type from the signal in the sender object to the method in the receiver object. More... | |
| 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) |
| Disconnects signal in object sender from method in object receiver. More... | |
| static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
| static uint | registerUserData () |
| static QString | tr (const char *sourceText, const char *comment=0, int n=-1) |
| static QString | trUtf8 (const char *sourceText, const char *comment=0, int n=-1) |
The QGtkStyle class provides a widget style rendered by GTK+.
The QGtkStyle style provides a look and feel that integrates well into GTK-based desktop environments such as the XFCe and GNOME.
It does this by making use of the GTK+ theme engine, ensuring that Qt applications look and feel native on these platforms.
Note: The style requires GTK+ version 2.10 or later. The Qt3-based "Qt" GTK+ theme engine will not work with QGtkStyle.
Definition at line 61 of file qgtkstyle.h.
| QGtkStyle::QGtkStyle | ( | ) |
Constructs a QGtkStyle object.
Definition at line 192 of file qgtkstyle.cpp.
| QGtkStyle::QGtkStyle | ( | QGtkStylePrivate & | dd | ) |
Constructs a QGtkStyle object.
Definition at line 207 of file qgtkstyle.cpp.
| QGtkStyle::~QGtkStyle | ( | ) |
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 1265 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 2177 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 3535 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 3562 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 686 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 3553 of file qgtkstyle.cpp.
|
static |
Returns the configuration boolean for key.
Returns fallback if key is not found.
Definition at line 144 of file qgtkstyle.cpp.
|
static |
Returns the configuration string for value.
Returns fallback if value is not found.
Definition at line 135 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 3544 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 3527 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 408 of file qgtkstyle.cpp.
Referenced by drawControl().
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 376 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 330 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 314 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 3247 of file qgtkstyle.cpp.
|
protectedslot |
Definition at line 3448 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 225 of file qgtkstyle.cpp.
Referenced by polish().
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 3380 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 582 of file qgtkstyle.cpp.
Referenced by drawComplexControl(), and drawControl().
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 3064 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 3490 of file qgtkstyle.cpp.
Referenced by drawControl().
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 400 of file qgtkstyle.cpp.
|
virtual |
Reimplemented Function
Reimplemented from QCleanlooksStyle.
Definition at line 355 of file qgtkstyle.cpp.