![]() |
Qt 6.x
The Qt SDK
|
The QPixmapStyle class provides mechanism for writing pixmap based styles. More...
#include <qpixmapstyle_p.h>
Public Member Functions | |
QPixmapStyle () | |
~QPixmapStyle () | |
Destroys the QPixmapStyle object. | |
void | polish (QApplication *application) override |
\reimp | |
void | polish (QPalette &palette) override |
\reimp | |
void | polish (QWidget *widget) override |
\reimp | |
void | unpolish (QApplication *application) override |
\reimp | |
void | unpolish (QWidget *widget) override |
\reimp | |
void | drawPrimitive (PrimitiveElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget=nullptr) const override |
\reimp | |
void | drawControl (ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget=nullptr) const override |
\reimp | |
void | drawComplexControl (ComplexControl cc, const QStyleOptionComplex *option, QPainter *painter, const QWidget *widget=nullptr) const override |
\reimp | |
QSize | sizeFromContents (ContentsType type, const QStyleOption *option, const QSize &contentsSize, const QWidget *widget=nullptr) const override |
\reimp | |
QRect | subElementRect (SubElement element, const QStyleOption *option, const QWidget *widget=nullptr) const override |
\reimp | |
QRect | subControlRect (ComplexControl cc, const QStyleOptionComplex *option, SubControl sc, const QWidget *widget=nullptr) const override |
\reimp | |
int | pixelMetric (PixelMetric metric, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const override |
\reimp | |
int | styleHint (StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *returnData) const override |
\reimp | |
SubControl | hitTestComplexControl (ComplexControl control, const QStyleOptionComplex *option, const QPoint &pos, const QWidget *widget) const override |
\reimp | |
bool | eventFilter (QObject *watched, QEvent *event) override |
\reimp | |
void | addDescriptor (ControlDescriptor control, const QString &fileName, QMargins margins=QMargins(), QTileRules tileRules=QTileRules(Qt::RepeatTile, Qt::RepeatTile)) |
Associates the pixmap having the given fileName with the given control. | |
void | copyDescriptor (ControlDescriptor source, ControlDescriptor dest) |
Copies the data associated with the source descriptor to the dest descriptor. | |
void | drawCachedPixmap (ControlDescriptor control, const QRect &rect, QPainter *p) const |
Draws the image associated with the current control on the given rect using the given painter. | |
void | addPixmap (ControlPixmap control, const QString &fileName, QMargins margins=QMargins()) |
Use this function to style statically sized controls such as check boxes. | |
void | copyPixmap (ControlPixmap source, ControlPixmap dest) |
![]() | |
QCommonStyle () | |
Constructs a QCommonStyle. | |
~QCommonStyle () | |
Destroys the style. | |
void | drawPrimitive (PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=nullptr) const override |
\reimp | |
void | drawControl (ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=nullptr) const override |
\reimp | |
QRect | subElementRect (SubElement r, const QStyleOption *opt, const QWidget *widget=nullptr) const override |
\reimp | |
void | drawComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *w=nullptr) const override |
\reimp | |
SubControl | hitTestComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *w=nullptr) const override |
\reimp | |
QRect | subControlRect (ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *w=nullptr) const override |
\reimp | |
QSize | sizeFromContents (ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *widget=nullptr) const override |
\reimp | |
int | pixelMetric (PixelMetric m, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr) const override |
\reimp | |
int | styleHint (StyleHint sh, const QStyleOption *opt=nullptr, const QWidget *w=nullptr, QStyleHintReturn *shret=nullptr) const override |
\reimp | |
QIcon | standardIcon (StandardPixmap standardIcon, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr) const override |
QPixmap | standardPixmap (StandardPixmap sp, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr) const override |
\reimp | |
QPixmap | generatedIconPixmap (QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const override |
\reimp | |
int | layoutSpacing (QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const override |
\reimp | |
void | polish (QPalette &) override |
\reimp | |
void | polish (QApplication *app) override |
\reimp | |
void | polish (QWidget *widget) override |
\reimp | |
void | unpolish (QWidget *widget) override |
\reimp | |
void | unpolish (QApplication *application) override |
\reimp | |
![]() | |
QStyle () | |
Constructs a style object. | |
virtual | ~QStyle () |
Destroys the style object. | |
QString | name () const |
Returns the name of the style. | |
virtual void | polish (QWidget *widget) |
Initializes the appearance of the given widget. | |
virtual void | unpolish (QWidget *widget) |
Uninitialize the given {widget}'s appearance. | |
virtual void | polish (QApplication *application) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Late initialization of the given application object. | |
virtual void | unpolish (QApplication *application) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Uninitialize the given application. | |
virtual void | polish (QPalette &palette) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Changes the palette according to style specific requirements for color palettes (if any). | |
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. | |
virtual QRect | itemPixmapRect (const QRect &r, int flags, const QPixmap &pixmap) const |
Returns the area within the given rectangle in which to draw the specified pixmap according to the defined alignment. | |
virtual void | drawItemText (QPainter *painter, const QRect &rect, int flags, const QPalette &pal, bool enabled, const QString &text, QPalette::ColorRole textRole=QPalette::NoRole) const |
Draws the given text in the specified rectangle using the provided painter and palette. | |
virtual void | drawItemPixmap (QPainter *painter, const QRect &rect, int alignment, const QPixmap &pixmap) const |
Draws the given pixmap in the specified rectangle, according to the specified alignment, using the provided painter. | |
virtual QPalette | standardPalette () const |
Returns the style's standard palette. | |
virtual void | drawPrimitive (PrimitiveElement pe, const QStyleOption *opt, QPainter *p, const QWidget *w=nullptr) const =0 |
Draws the given primitive element with the provided painter using the style options specified by option. | |
virtual void | drawControl (ControlElement element, const QStyleOption *opt, QPainter *p, const QWidget *w=nullptr) const =0 |
Draws the given element with the provided painter with the style options specified by option. | |
virtual QRect | subElementRect (SubElement subElement, const QStyleOption *option, const QWidget *widget=nullptr) const =0 |
Returns the sub-area for the given element as described in the provided style option. | |
virtual void | drawComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p, const QWidget *widget=nullptr) const =0 |
Draws the given control using the provided painter with the style options specified by option. | |
virtual SubControl | hitTestComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt, const QWidget *widget=nullptr) const =0 |
Returns the sub control at the given position in the given complex control (with the style options specified by option). | |
virtual QRect | subControlRect (ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc, const QWidget *widget=nullptr) const =0 |
Returns the rectangle containing the specified subControl of the given complex control (with the style specified by option). | |
virtual int | pixelMetric (PixelMetric metric, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const =0 |
Returns the value of the given pixel metric. | |
virtual QSize | sizeFromContents (ContentsType ct, const QStyleOption *opt, const QSize &contentsSize, const QWidget *w=nullptr) const =0 |
Returns the size of the element described by the specified option and type, based on the provided contentsSize. | |
virtual int | styleHint (StyleHint stylehint, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr, QStyleHintReturn *returnData=nullptr) const =0 |
Returns an integer representing the specified style hint for the given widget described by the provided style option. | |
virtual QPixmap | standardPixmap (StandardPixmap standardPixmap, const QStyleOption *opt=nullptr, const QWidget *widget=nullptr) const =0 |
virtual QIcon | standardIcon (StandardPixmap standardIcon, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const =0 |
virtual QPixmap | generatedIconPixmap (QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const =0 |
Returns a copy of the given pixmap, styled to conform to the specified iconMode and taking into account the palette specified by option. | |
virtual int | layoutSpacing (QSizePolicy::ControlType control1, QSizePolicy::ControlType control2, Qt::Orientation orientation, const QStyleOption *option=nullptr, const QWidget *widget=nullptr) const =0 |
int | combinedLayoutSpacing (QSizePolicy::ControlTypes controls1, QSizePolicy::ControlTypes controls2, Qt::Orientation orientation, QStyleOption *option=nullptr, QWidget *widget=nullptr) const |
const QStyle * | proxy () const |
![]() | |
Q_INVOKABLE | QObject (QObject *parent=nullptr) |
Constructs an object with parent object parent. | |
virtual | ~QObject () |
Destroys the object, deleting all its child objects. | |
virtual bool | event (QEvent *event) |
This virtual function receives events to an object and should return true if the event e was recognized and processed. | |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
Filters events if this object has been installed as an event filter for the watched object. | |
QString | objectName () const |
Q_WEAK_OVERLOAD void | setObjectName (const QString &name) |
Sets the object's name to name. | |
void | setObjectName (QAnyStringView name) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
QBindable< QString > | bindableObjectName () |
bool | isWidgetType () const |
Returns true if the object is a widget; otherwise returns false . | |
bool | isWindowType () const |
Returns true if the object is a window; otherwise returns false . | |
bool | isQuickItemType () const |
Returns true if the object is a QQuickItem; otherwise returns false . | |
bool | signalsBlocked () const noexcept |
Returns true if signals are blocked; otherwise returns false . | |
bool | blockSignals (bool b) noexcept |
If block is true, signals emitted by this object are blocked (i.e., emitting a signal will not invoke anything connected to it). | |
QThread * | thread () const |
Returns the thread in which the object lives. | |
void | moveToThread (QThread *thread) |
Changes the thread affinity for this object and its children. | |
int | startTimer (int interval, Qt::TimerType timerType=Qt::CoarseTimer) |
This is an overloaded function that will start a timer of type timerType and a timeout of interval milliseconds. | |
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType=Qt::CoarseTimer) |
void | killTimer (int id) |
Kills the timer with timer identifier, id. | |
template<typename T > | |
T | findChild (const QString &aName=QString(), Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
Returns the child of this object that can be cast into type T and that is called name, or \nullptr if there is no such object. | |
template<typename T > | |
QList< T > | findChildren (const QString &aName, Qt::FindChildOptions options=Qt::FindChildrenRecursively) 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. | |
template<typename T > | |
QList< T > | findChildren (Qt::FindChildOptions options=Qt::FindChildrenRecursively) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
const QObjectList & | children () const |
Returns a list of child objects. | |
void | setParent (QObject *parent) |
Makes the object a child of parent. | |
void | installEventFilter (QObject *filterObj) |
Installs an event filter filterObj on this object. | |
void | removeEventFilter (QObject *obj) |
Removes an event filter object obj from this object. | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const |
bool | disconnect (const char *signal=nullptr, const QObject *receiver=nullptr, const char *member=nullptr) const |
bool | disconnect (const QObject *receiver, const char *member=nullptr) const |
void | dumpObjectTree () const |
Dumps a tree of children to the debug output. | |
void | dumpObjectInfo () const |
Dumps information about signal connections, etc. | |
bool | setProperty (const char *name, const QVariant &value) |
Sets the value of the object's name property to value. | |
bool | setProperty (const char *name, QVariant &&value) |
QVariant | property (const char *name) const |
Returns the value of the object's name property. | |
QList< QByteArray > | dynamicPropertyNames () const |
QBindingStorage * | bindingStorage () |
const QBindingStorage * | bindingStorage () const |
QObject * | parent () const |
Returns a pointer to the parent object. | |
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 . | |
Additional Inherited Members | |
![]() | |
void | deleteLater () |
\threadsafe | |
![]() | |
void | destroyed (QObject *=nullptr) |
This signal is emitted immediately before the object obj is destroyed, after any instances of QPointer have been notified, and cannot be blocked. | |
void | objectNameChanged (const QString &objectName, QPrivateSignal) |
This signal is emitted after the object's name has been changed. | |
![]() | |
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. | |
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. | |
static int | sliderPositionFromValue (int min, int max, int val, int space, bool upsideDown=false) |
Converts the given logicalValue to a pixel position. | |
static int | sliderValueFromPosition (int min, int max, int pos, int space, bool upsideDown=false) |
Converts the given pixel position to a logical value. | |
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. | |
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. | |
![]() | |
static QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection) |
\threadsafe | |
static QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::ContextTypeForFunctor< Func2 >::ContextType *context, Func2 &&slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1 , typename Func2 > | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, Func2 &&slot) |
static bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member) |
\threadsafe | |
static bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member) |
static bool | disconnect (const QMetaObject::Connection &) |
Disconnect a connection. | |
template<typename Func1 , typename Func2 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiver, Func2 slot) |
template<typename Func1 > | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const QObject *receiver, void **zero) |
![]() | |
QScopedPointer< QObjectData > | d_ptr |
![]() | |
QString | objectName |
the name of this object | |
![]() | |
template< class T > T | qobject_cast (const QObject *object) |
Returns the given object cast to type T if the object is of type T (or of a subclass); otherwise returns \nullptr. | |
template< typename T > T | qFindChildqFindChildren (const QObject *obj, const QString &name)() |
template< typename T > QList< T > | qFindChildrenqFindChildren (const QObject *obj, const QString &name)() |
QObjectList | |
\macro Q_CLASSINFO(Name, Value) | |
The QPixmapStyle class provides mechanism for writing pixmap based styles.
\inmodule QtWidgets
This is a convenience class that enables the implementation of a widget style using pixmaps, on the same fashion used by the \l{BorderImage} QML type.
In order to style a QWidget, one simply needs to call QPixmapStyle::addDescriptor() or QPixmapStyle::addPixmap() with the id of the component to be styled, the path of the image to be used, the margins and the tiling rules:
Definition at line 28 of file qpixmapstyle_p.h.
Definition at line 33 of file qpixmapstyle_p.h.
Definition at line 73 of file qpixmapstyle_p.h.
QPixmapStyle::QPixmapStyle | ( | ) |
Constructs a QPixmapStyle object.
Definition at line 71 of file qpixmapstyle.cpp.
QPixmapStyle::~QPixmapStyle | ( | ) |
Destroys the QPixmapStyle object.
Definition at line 79 of file qpixmapstyle.cpp.
|
protected |
Constructs a QPixmapStyle object.
Definition at line 680 of file qpixmapstyle.cpp.
void QPixmapStyle::addDescriptor | ( | QPixmapStyle::ControlDescriptor | control, |
const QString & | fileName, | ||
QMargins | margins = QMargins() , |
||
QTileRules | tileRules = QTileRules(Qt::RepeatTile, Qt::RepeatTile) |
||
) |
Associates the pixmap having the given fileName with the given control.
The margins parameter describe the boundaries of the pixmap's top-left, top-right, bottom-left and bottom-right corners, as well as the left, right, top and bottorm segments and the middle. The tileRules parameter describes how QPixmapStyle is supposed to handle the scaling of the center of the pixmap.
Use QPixmapStyle::addPixmap() for controls that are not resizable.
Definition at line 587 of file qpixmapstyle.cpp.
void QPixmapStyle::addPixmap | ( | ControlPixmap | control, |
const QString & | fileName, | ||
QMargins | margins = QMargins() |
||
) |
Use this function to style statically sized controls such as check boxes.
Definition at line 645 of file qpixmapstyle.cpp.
|
protected |
Definition at line 1033 of file qpixmapstyle.cpp.
References QStyle::CT_ComboBox, d, DD_ButtonEnabled, desc, QCommonStyle::sizeFromContents(), and widget.
Referenced by sizeFromContents().
|
protected |
Definition at line 1067 of file qpixmapstyle.cpp.
References d, DD_ArrowEnabled, DD_ButtonEnabled, desc, QPixmap::height(), pix, QStyle::SC_ComboBoxArrow, QStyle::SC_ComboBoxEditField, QStyle::visualRect(), and QPixmap::width().
Referenced by drawComboBox(), and subControlRect().
void QPixmapStyle::copyDescriptor | ( | QPixmapStyle::ControlDescriptor | source, |
QPixmapStyle::ControlDescriptor | dest | ||
) |
Copies the data associated with the source descriptor to the dest descriptor.
Definition at line 614 of file qpixmapstyle.cpp.
References d.
void QPixmapStyle::copyPixmap | ( | QPixmapStyle::ControlPixmap | source, |
QPixmapStyle::ControlPixmap | dest | ||
) |
Definition at line 669 of file qpixmapstyle.cpp.
References d.
void QPixmapStyle::drawCachedPixmap | ( | QPixmapStyle::ControlDescriptor | control, |
const QRect & | rect, | ||
QPainter * | p | ||
) | const |
Draws the image associated with the current control on the given rect using the given painter.
Definition at line 626 of file qpixmapstyle.cpp.
References d, QPixmap::isNull(), pix, Q_ASSERT, and rect.
Referenced by drawComboBox(), drawControl(), drawLineEdit(), drawPanelItemViewItem(), drawProgressBarBackground(), drawProgressBarFill(), drawPushButton(), drawScrollBar(), drawSlider(), and drawTextEdit().
|
protected |
Definition at line 724 of file qpixmapstyle.cpp.
References button, CB_Checked, CB_Disabled, CB_DisabledChecked, CB_Enabled, CB_Pressed, CB_PressedChecked, d, QPainter::drawPixmap(), painter, QWidget::rect, QStyle::State_Enabled, QStyle::State_On, and QStyle::State_Sunken.
Referenced by drawPrimitive().
|
protected |
Definition at line 910 of file qpixmapstyle.cpp.
References comboBoxSubControlRect(), d, DD_ArrowDisabled, DD_ArrowEnabled, DD_ArrowOpen, DD_ArrowPressed, DD_ButtonDisabled, DD_ButtonEnabled, DD_ButtonPressed, drawCachedPixmap(), QPainter::drawPixmap(), painter, pix, QObject::property(), rect, QStyle::SC_ComboBoxArrow, QStyle::State_Enabled, QStyle::State_On, QVariant::toBool(), and widget.
Referenced by drawComplexControl().
|
overridevirtual |
\reimp
Reimplemented from QCommonStyle.
Definition at line 303 of file qpixmapstyle.cpp.
References QStyle::CC_ComboBox, QStyle::CC_ScrollBar, QStyle::CC_Slider, drawComboBox(), QCommonStyle::drawComplexControl(), drawScrollBar(), drawSlider(), painter, and widget.
|
overridevirtual |
\reimp
Reimplemented from QCommonStyle.
Definition at line 265 of file qpixmapstyle.cpp.
References QStyle::CE_ProgressBarContents, QStyle::CE_ProgressBarGroove, QStyle::CE_ProgressBarLabel, QStyle::CE_ShapedFrame, d, DD_ItemSeparator, DD_PopupDown, DD_PopupUp, desc, drawCachedPixmap(), QCommonStyle::drawControl(), drawProgressBarBackground(), drawProgressBarFill(), drawProgressBarLabel(), painter, pix, QObject::property(), qstrcmp(), rect, QVariant::toBool(), and widget.
|
protected |
Definition at line 699 of file qpixmapstyle.cpp.
References drawCachedPixmap(), LE_Disabled, LE_Enabled, LE_Focused, painter, QWidget::parentWidget(), Q_UNUSED, QStyle::State_Enabled, QStyle::State_HasFocus, and widget.
Referenced by drawPrimitive().
|
protected |
Definition at line 762 of file qpixmapstyle.cpp.
References d, DD_ItemSelected, DD_ItemSeparator, drawCachedPixmap(), QPainter::drawPixmap(), QPixmap::height(), ID_Selected, ID_Separator, painter, pix, QObject::property(), rect, QStyle::State_Selected, QVariant::toBool(), and widget.
Referenced by drawPrimitive().
|
overridevirtual |
\reimp
Reimplemented from QCommonStyle.
Definition at line 222 of file qpixmapstyle.cpp.
References drawCheckBox(), drawLineEdit(), drawPanelItemViewItem(), QCommonStyle::drawPrimitive(), drawPushButton(), drawRadioButton(), drawTextEdit(), painter, QStyle::PE_Frame, QStyle::PE_FrameDefaultButton, QStyle::PE_FrameFocusRect, QStyle::PE_FrameLineEdit, QStyle::PE_IndicatorCheckBox, QStyle::PE_IndicatorRadioButton, QStyle::PE_PanelButtonBevel, QStyle::PE_PanelButtonCommand, QStyle::PE_PanelItemViewItem, QStyle::PE_PanelLineEdit, and widget.
|
protected |
Definition at line 786 of file qpixmapstyle.cpp.
References drawCachedPixmap(), painter, PB_HBackground, PB_VBackground, and QStyle::State_Horizontal.
Referenced by drawControl().
|
protected |
Definition at line 812 of file qpixmapstyle.cpp.
References QRect::bottom(), drawCachedPixmap(), QProgressBar::invertedAppearance, QRect::left(), QProgressBar::maximum, QProgressBar::minimum, painter, PB_HComplete, PB_HContent, PB_VComplete, PB_VContent, pbar, QRect::right(), Qt::RightToLeft, QRect::setBottom(), QRect::setLeft(), QRect::setRight(), QRect::setTop(), QStyle::State_Horizontal, and QRect::top().
Referenced by drawControl().
|
protected |
Definition at line 797 of file qpixmapstyle.cpp.
References Qt::AlignCenter, QPalette::ButtonText, QStyle::drawItemText(), painter, QStyle::proxy(), QStyle::State_Enabled, QStyle::State_Horizontal, and Qt::TextSingleLine.
Referenced by drawControl().
|
protected |
Definition at line 684 of file qpixmapstyle.cpp.
References drawCachedPixmap(), painter, PB_Checked, PB_Disabled, PB_Enabled, PB_Pressed, PB_PressedDisabled, QStyle::State_Enabled, QStyle::State_On, and QStyle::State_Sunken.
Referenced by drawPrimitive().
|
protected |
Definition at line 743 of file qpixmapstyle.cpp.
References button, d, QPainter::drawPixmap(), painter, RB_Checked, RB_Disabled, RB_DisabledChecked, RB_Enabled, RB_Pressed, QWidget::rect, QStyle::State_Enabled, QStyle::State_On, and QStyle::State_Sunken.
Referenced by drawPrimitive().
|
protected |
Definition at line 931 of file qpixmapstyle.cpp.
References drawCachedPixmap(), Qt::Horizontal, painter, Q_UNUSED, rect, SB_Horizontal, SB_Vertical, QStyle::SC_ScrollBarSlider, scrollBarSubControlRect(), and widget.
Referenced by drawComplexControl().
|
protected |
Definition at line 850 of file qpixmapstyle.cpp.
References QStyle::CC_Slider, d, desc, drawCachedPixmap(), QPainter::drawPixmap(), Qt::Horizontal, QPixmap::isNull(), QRect::isValid(), painter, pix, QStyle::proxy(), Q_UNUSED, QStyle::SC_SliderGroove, QStyle::SC_SliderHandle, QRect::setRight(), SG_HActiveDisabled, SG_HActiveEnabled, SG_HActivePressed, SG_HDisabled, SG_HEnabled, SG_VActiveDisabled, SG_VActiveEnabled, SG_VActivePressed, SG_VDisabled, SG_VEnabled, SH_HDisabled, SH_HEnabled, SH_HPressed, SH_VDisabled, SH_VEnabled, SH_VPressed, QRect::size(), QStyle::State_Enabled, QStyle::State_Sunken, QStyle::subControlRect(), and widget.
Referenced by drawComplexControl().
|
protected |
Definition at line 715 of file qpixmapstyle.cpp.
References drawCachedPixmap(), painter, QStyle::State_Enabled, QStyle::State_HasFocus, TE_Disabled, TE_Enabled, and TE_Focused.
Referenced by drawPrimitive().
\reimp
Reimplemented from QObject.
Definition at line 517 of file qpixmapstyle.cpp.
References d, DD_ButtonEnabled, desc, QObject::eventFilter(), QWidget::geometry, QWidget::mapToGlobal(), QEvent::MouseButtonPress, QEvent::MouseButtonRelease, QEvent::MouseMove, QRect::moveTop(), QWidget::parentWidget(), qobject_cast< QWidget * >(), qstrcmp(), QWidget::setGeometry(), QObject::setProperty(), QEvent::Show, QRect::top(), widget, and QPointF::y().
|
overridevirtual |
\reimp
Reimplemented from QCommonStyle.
Definition at line 498 of file qpixmapstyle.cpp.
References QStyle::CC_ScrollBar, QCommonStyle::hitTestComplexControl(), pos, QStyle::SC_ScrollBarAddLine, QStyle::SC_ScrollBarAddPage, QStyle::SC_ScrollBarSubLine, QStyle::SC_ScrollBarSubPage, and widget.
|
protected |
Definition at line 1045 of file qpixmapstyle.cpp.
References QStyle::CT_ItemViewItem, d, DD_ItemSelected, DD_ItemSeparator, desc, QPixmap::height(), ID_Selected, ID_Separator, pix, QObject::property(), qMax(), QCommonStyle::sizeFromContents(), QVariant::toBool(), and widget.
Referenced by sizeFromContents().
|
protected |
Definition at line 970 of file qpixmapstyle.cpp.
References d, desc, QSize::height(), LE_Enabled, QStyle::pixelMetric(), QStyle::PM_DefaultFrameWidth, QStyle::proxy(), and QSize::width().
Referenced by sizeFromContents().
|
overridevirtual |
\reimp
Reimplemented from QCommonStyle.
Definition at line 390 of file qpixmapstyle.cpp.
References CB_Enabled, d, desc, QPixmap::height(), Qt::Horizontal, LE_Enabled, pix, QCommonStyle::pixelMetric(), QStyle::PM_ButtonShiftHorizontal, QStyle::PM_ButtonShiftVertical, QStyle::PM_CheckBoxLabelSpacing, QStyle::PM_DefaultFrameWidth, QStyle::PM_ExclusiveIndicatorHeight, QStyle::PM_ExclusiveIndicatorWidth, QStyle::PM_IndicatorHeight, QStyle::PM_IndicatorWidth, QStyle::PM_RadioButtonLabelSpacing, QStyle::PM_ScrollBarExtent, QStyle::PM_ScrollBarSliderMin, QStyle::PM_SliderControlThickness, QStyle::PM_SliderLength, QStyle::PM_SliderThickness, qMax(), RB_Enabled, SB_Horizontal, SB_Vertical, SG_HEnabled, SG_VEnabled, SH_HEnabled, SH_VEnabled, widget, and QPixmap::width().
|
overridevirtual |
\reimp
Reimplemented from QCommonStyle.
Definition at line 86 of file qpixmapstyle.cpp.
References QCommonStyle::polish().
\reimp
Reimplemented from QCommonStyle.
Definition at line 94 of file qpixmapstyle.cpp.
References palette, QStyle::proxy(), and QStyle::standardPalette().
\reimp
Reimplemented from QCommonStyle.
Definition at line 102 of file qpixmapstyle.cpp.
References QPalette::Active, Qt::AlignCenter, QPalette::AlternateBase, QPalette::Base, cb, d, DD_ItemSeparator, DD_PopupDown, desc, QPalette::Disabled, font, frame, QScroller::grabGesture(), QPalette::Inactive, QObject::installEventFilter(), QScroller::LeftMouseButtonGesture, list, Qt::NoBrush, QWidget::palette, PB_HBackground, pix, QCommonStyle::polish(), Q_UNUSED, qstrcmp(), scrollArea, QAbstractItemView::ScrollPerPixel, QWidget::setAttribute(), QPalette::setBrush(), QWidget::setContentsMargins(), QWidget::setPalette(), QFont::setPixelSize(), Qt::transparent, view, Qt::WA_OpaquePaintEvent, Qt::WA_TranslucentBackground, and widget.
|
protected |
Definition at line 984 of file qpixmapstyle.cpp.
References QStyle::CT_Slider, d, desc, PB_HBackground, PB_VBackground, QCommonStyle::sizeFromContents(), QStyle::State_Horizontal, and widget.
Referenced by sizeFromContents().
|
protected |
Definition at line 953 of file qpixmapstyle.cpp.
References d, desc, QSize::height(), PB_Enabled, QStyle::pixelMetric(), QStyle::PM_ButtonMargin, QStyle::proxy(), widget, and QSize::width().
Referenced by sizeFromContents().
|
protected |
Definition at line 1095 of file qpixmapstyle.cpp.
References Qt::Horizontal, page, pos, Q_UNUSED, qMin(), rect, QStyle::SC_ScrollBarAddPage, QStyle::SC_ScrollBarGroove, QStyle::SC_ScrollBarSlider, QStyle::SC_ScrollBarSubPage, and QRect::width().
Referenced by drawScrollBar(), and subControlRect().
|
overridevirtual |
\reimp
Reimplemented from QCommonStyle.
Definition at line 324 of file qpixmapstyle.cpp.
References comboBoxSizeFromContents(), QStyle::CT_ComboBox, QStyle::CT_ItemViewItem, QStyle::CT_LineEdit, QStyle::CT_ProgressBar, QStyle::CT_PushButton, QStyle::CT_Slider, itemViewSizeFromContents(), lineEditSizeFromContents(), progressBarSizeFromContents(), pushButtonSizeFromContents(), QCommonStyle::sizeFromContents(), sliderSizeFromContents(), and widget.
|
protected |
Definition at line 1005 of file qpixmapstyle.cpp.
References QStyle::CT_Slider, d, desc, Qt::Horizontal, Q_UNUSED, SG_HEnabled, SG_VEnabled, QCommonStyle::sizeFromContents(), and widget.
Referenced by sizeFromContents().
|
overridevirtual |
\reimp
Reimplemented from QCommonStyle.
Definition at line 481 of file qpixmapstyle.cpp.
References hint(), QStyle::SH_ComboBox_Popup, QStyle::SH_EtchDisabledText, QCommonStyle::styleHint(), and widget.
|
overridevirtual |
\reimp
Reimplemented from QCommonStyle.
Definition at line 373 of file qpixmapstyle.cpp.
References QStyle::CC_ComboBox, QStyle::CC_ScrollBar, comboBoxSubControlRect(), scrollBarSubControlRect(), QCommonStyle::subControlRect(), and widget.
|
overridevirtual |
\reimp
Reimplemented from QCommonStyle.
Definition at line 349 of file qpixmapstyle.cpp.
References d, desc, LE_Enabled, rect, QStyle::SE_LineEditContents, QCommonStyle::subElementRect(), QStyle::visualRect(), and widget.
|
overridevirtual |
\reimp
Reimplemented from QCommonStyle.
Definition at line 185 of file qpixmapstyle.cpp.
References QCommonStyle::unpolish().
\reimp
Reimplemented from QCommonStyle.
Definition at line 193 of file qpixmapstyle.cpp.
References qstrcmp(), QT_CONFIG, QObject::removeEventFilter(), scrollArea, QScroller::ungrabGesture(), QCommonStyle::unpolish(), and widget.