![]() |
Qt 6.x
The Qt SDK
|
The QWindowsStyle class provides a Microsoft Windows-like look and feel. More...
#include <qquickwindowsstyle_p.h>
Public Slots | |
void | refreshPalette () |
![]() | |
void | deleteLater () |
\threadsafe | |
Public Member Functions | |
QWindowsStyle () | |
Constructs a QWindowsStyle object. | |
~QWindowsStyle () override | |
Destroys the QWindowsStyle object. | |
void | drawPrimitive (PrimitiveElement pe, const QStyleOption *opt, QPainter *p) const override |
\reimp | |
void | drawControl (ControlElement element, const QStyleOption *opt, QPainter *p) const override |
\reimp | |
void | drawComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p) const override |
\reimp | |
QRect | subElementRect (SubElement r, const QStyleOption *opt) const override |
\reimp | |
QSize | sizeFromContents (ContentsType ct, const QStyleOption *opt, const QSize &contentsSize) const override |
\reimp | |
int | pixelMetric (PixelMetric pm, const QStyleOption *option=nullptr) const override |
\reimp | |
int | styleHint (StyleHint hint, const QStyleOption *opt=nullptr, QStyleHintReturn *returnData=nullptr) const override |
\reimp | |
QPixmap | standardPixmap (StandardPixmap standardPixmap, const QStyleOption *opt) const override |
\reimp | |
QIcon | standardIcon (StandardPixmap standardIcon, const QStyleOption *option=nullptr) const override |
\reimp | |
void | polish () override |
![]() | |
QCommonStyle () | |
~QCommonStyle () override | |
void | drawPrimitive (PrimitiveElement pe, const QStyleOption *opt, QPainter *p) const override |
void | drawControl (ControlElement element, const QStyleOption *opt, QPainter *p) const override |
\reimp | |
void | drawComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p) const override |
QRect | subElementRect (SubElement r, const QStyleOption *opt) const override |
QRect | subControlRect (ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc) const override |
\reimp | |
QSize | sizeFromContents (ContentsType ct, const QStyleOption *opt, const QSize &contentsSize) const override |
QFont | font (ControlElement element, const QStyle::State state) const override |
QMargins | ninePatchMargins (ControlElement ce, const QStyleOption *opt, const QSize &imageSize) const override |
QMargins | ninePatchMargins (ComplexControl cc, const QStyleOptionComplex *opt, const QSize &imageSize) const override |
int | pixelMetric (PixelMetric m, const QStyleOption *opt=nullptr) const override |
int | styleHint (StyleHint sh, const QStyleOption *opt=nullptr, QStyleHintReturn *shret=nullptr) const override |
QIcon | standardIcon (StandardPixmap standardIcon, const QStyleOption *opt=nullptr) const override |
QPixmap | standardPixmap (StandardPixmap sp, const QStyleOption *opt=nullptr) const override |
QPixmap | generatedIconPixmap (QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const override |
\reimp | |
SubControl | hitTestComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt) const override |
\reimp | |
![]() | |
QStyle () | |
Constructs a style object. | |
virtual | ~QStyle () |
Destroys the style object. | |
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 QRect | subElementRect (SubElement subElement, const QStyleOption *option) const =0 |
virtual QRect | subControlRect (ComplexControl cc, const QStyleOptionComplex *opt, SubControl sc) const =0 |
virtual QSize | sizeFromContents (ContentsType ct, const QStyleOption *opt, const QSize &contentsSize) const =0 |
virtual QFont | font (ControlElement element, const QStyle::State state) const =0 |
virtual QMargins | ninePatchMargins (ControlElement ce, const QStyleOption *opt, const QSize &imageSize) const =0 |
virtual QMargins | ninePatchMargins (ComplexControl cc, const QStyleOptionComplex *opt, const QSize &imageSize) const =0 |
virtual SubControl | hitTestComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, const QPoint &pt) const =0 |
virtual int | pixelMetric (PixelMetric metric, const QStyleOption *option=nullptr) const =0 |
virtual int | styleHint (StyleHint stylehint, const QStyleOption *opt=nullptr, QStyleHintReturn *returnData=nullptr) const =0 |
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 void | drawPrimitive (PrimitiveElement pe, const QStyleOption *opt, QPainter *p) const =0 |
virtual void | drawControl (ControlElement element, const QStyleOption *opt, QPainter *p) const =0 |
virtual void | drawComplexControl (ComplexControl cc, const QStyleOptionComplex *opt, QPainter *p) const =0 |
virtual QPalette | standardPalette () const |
Returns the style's standard palette. | |
virtual QPixmap | standardPixmap (StandardPixmap standardPixmap, const QStyleOption *opt=nullptr) const =0 |
virtual QIcon | standardIcon (StandardPixmap standardIcon, const QStyleOption *option=nullptr) const =0 |
virtual QPixmap | generatedIconPixmap (QIcon::Mode iconMode, const QPixmap &pixmap, const QStyleOption *opt) const =0 |
virtual void | polish () |
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 . | |
Protected Member Functions | |
QWindowsStyle (QWindowsStylePrivate &dd) | |
void | timerEvent (QTimerEvent *event) override |
This event handler can be reimplemented in a subclass to receive timer events for the object. | |
![]() | |
QCommonStyle (QCommonStylePrivate &dd) | |
![]() | |
QStyle (QStylePrivate &dd) | |
![]() | |
QObject * | sender () const |
Returns a pointer to the object that sent the signal, if called in a slot activated by a signal; otherwise it returns \nullptr. | |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
Returns the number of receivers connected to the signal. | |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
This event handler can be reimplemented in a subclass to receive timer events for the object. | |
virtual void | childEvent (QChildEvent *event) |
This event handler can be reimplemented in a subclass to receive child events. | |
virtual void | customEvent (QEvent *event) |
This event handler can be reimplemented in a subclass to receive custom events. | |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
The QWindowsStyle class provides a Microsoft Windows-like look and feel.
\inmodule QtWidgets
This style is Qt's default GUI style on Windows.
Definition at line 33 of file qquickwindowsstyle_p.h.
QWindowsStyle::QWindowsStyle | ( | ) |
Constructs a QWindowsStyle object.
Definition at line 173 of file qquickwindowsstyle.cpp.
|
override |
Destroys the QWindowsStyle object.
Definition at line 197 of file qquickwindowsstyle.cpp.
|
protected |
Constructs a QWindowsStyle object.
Definition at line 182 of file qquickwindowsstyle.cpp.
|
overridevirtual |
\reimp
Reimplemented from QQC2::QCommonStyle.
Reimplemented in QQC2::QWindowsXPStyle.
Definition at line 1796 of file qquickwindowsstyle.cpp.
References QRect::adjust(), QRect::adjusted(), QPalette::Base, QPalette::brush(), QPalette::Button, QPalette::button(), QPalette::ButtonText, QQC2::QStyle::CC_ComboBox, QQC2::QStyle::CC_ScrollBar, QQC2::QStyle::CC_Slider, QQC2::QStyle::CC_SpinBox, QBrush::color(), copy(), d, Qt::Dense4Pattern, dir, QPalette::Disabled, QQC2::QCommonStyle::drawComplexControl(), QQC2::QStyle::drawPrimitive(), focus, QRect::height(), QPalette::Highlight, Qt::Horizontal, QRect::isValid(), QPalette::Light, QPalette::light(), QPalette::Midlight, Qt::NoPen, Qt::OpaqueMode, opt, QStyleOption::palette, QQC2::QStyleOption::palette, QQC2::QStyle::PE_FrameFocusRect, QQC2::QStyle::PE_IndicatorArrowDown, QQC2::QStyle::PE_IndicatorSpinDown, QQC2::QStyle::PE_IndicatorSpinMinus, QQC2::QStyle::PE_IndicatorSpinPlus, QQC2::QStyle::PE_IndicatorSpinUp, QQC2::QStyle::pixelMetric(), QAbstractSpinBox::PlusMinus, QQC2::QStyle::PM_SliderControlThickness, QQC2::QStyle::PM_SliderLength, QQC2::QStyle::proxy(), QQC2::qDrawWinButton(), QQC2::qDrawWinPanel(), QStyleOption::rect, QQC2::QStyleOption::rect, QQC2::QStyle::SC_ComboBoxArrow, QQC2::QStyle::SC_ComboBoxEditField, QQC2::QStyle::SC_ComboBoxFrame, QQC2::QStyle::SC_SliderGroove, QQC2::QStyle::SC_SliderHandle, QQC2::QStyle::SC_SliderTickmarks, QQC2::QStyle::SC_SpinBoxDown, QQC2::QStyle::SC_SpinBoxFrame, QQC2::QStyle::SC_SpinBoxUp, QQC2::QStyle::SE_ComboBoxFocusRect, QQC2::QStyle::SE_SliderFocusRect, QPalette::setBrush(), QPalette::setColor(), QPalette::setCurrentColorGroup(), QQC2::QStyle::SH_EtchDisabledText, QQC2::SlDown, QQC2::SlLeft, QQC2::SlRight, QQC2::SlUp, QStyleOption::state, QQC2::QStyleOption::state, QQC2::QStyle::State_Enabled, QQC2::QStyle::State_FocusAtBorder, QQC2::QStyle::State_HasFocus, QQC2::QStyle::State_None, QQC2::QStyle::State_On, QQC2::QStyle::State_Raised, QQC2::QStyle::State_Sunken, QAbstractSpinBox::StepDownEnabled, QAbstractSpinBox::StepUpEnabled, styleHint(), QQC2::QStyle::subControlRect(), QQC2::QStyleOptionComplex::subControls, subElementRect(), QQC2::QStyleOptionSlider::TicksAbove, QQC2::QStyleOptionSlider::TicksBelow, widget, QRect::width(), QRect::x(), and QRect::y().
Referenced by QQC2::QWindowsXPStyle::drawComplexControl().
|
overridevirtual |
\reimp
Reimplemented from QQC2::QCommonStyle.
Reimplemented in QQC2::QWindowsXPStyle.
Definition at line 962 of file qquickwindowsstyle.cpp.
References QIcon::Active, QPalette::Active, QRect::adjusted(), Qt::AlignLeft, Qt::AlignRight, Qt::AlignVCenter, animation, QQC2::QStyleOptionTab::Beginning, QQC2::QStyleOptionToolBar::Beginning, QRect::bottom(), QRect::bottomLeft(), QRect::bottomRight(), Qt::BottomToolBarArea, QPalette::BrightText, QPalette::brush(), QPalette::Button, QPalette::button(), QPalette::ButtonText, cb, QQC2::QStyle::CE_ComboBoxLabel, QQC2::QStyle::CE_DockWidgetTitle, QQC2::QStyle::CE_HeaderSection, QQC2::QStyle::CE_MenuBarEmptyArea, QQC2::QStyle::CE_MenuBarItem, QQC2::QStyle::CE_MenuItem, QQC2::QStyle::CE_ProgressBarContents, QQC2::QStyle::CE_RubberBand, QQC2::QStyle::CE_ScrollBarAddLine, QQC2::QStyle::CE_ScrollBarAddPage, QQC2::QStyle::CE_ScrollBarSlider, QQC2::QStyle::CE_ScrollBarSubLine, QQC2::QStyle::CE_ScrollBarSubPage, QQC2::QStyle::CE_Splitter, QQC2::QStyle::CE_TabBarTabShape, QQC2::QStyle::CE_ToolBar, QQC2::QStyle::CE_ToolBoxTabShape, QRect::center(), QBrush::color(), d, QPalette::dark(), QQC2::QStyleOptionMenuItem::DefaultItem, Qt::Dense4Pattern, QStyleOption::direction, QIcon::Disabled, QQC2::QCommonStyle::drawControl(), QQC2::QStyle::drawItemText(), QQC2::QStyle::drawPrimitive(), QPainter::drawRect(), QPainter::end(), QQC2::QStyleOptionTab::End, QQC2::QStyleOptionToolBar::End, fill(), font, QPixmap::fromImage(), QPixmap::height(), QRect::height(), QPalette::Highlight, QPalette::highlight(), QPalette::highlightedText(), i, QRect::left(), QString::left(), Qt::LeftToolBarArea, Qt::LeftToRight, QPalette::Light, QPalette::light(), QString::mid(), QRect::moveCenter(), QQC2::QStyleOptionTab::NextIsSelected, Qt::NoPen, QIcon::Normal, QQC2::QStyleOptionMenuItem::NotCheckable, QIcon::On, QQC2::QStyleOptionToolBar::OnlyOne, QQC2::QStyleOptionTab::OnlyOneTab, Qt::OpaqueMode, opt, p1, p2, palette, QStyleOption::palette, QQC2::QStyleOption::palette, QWidget::parentWidget(), QQC2::QStyle::PE_IndicatorArrowDown, QQC2::QStyle::PE_IndicatorArrowLeft, QQC2::QStyle::PE_IndicatorArrowRight, QQC2::QStyle::PE_IndicatorArrowUp, QQC2::QStyle::PE_IndicatorMenuCheckMark, QQC2::QStyle::PE_IndicatorProgressChunk, QQC2::QStyle::pixelMetric(), pixelMetric(), pixmap, QQC2::QStyle::PM_ButtonShiftHorizontal, QQC2::QStyle::PM_ButtonShiftVertical, QQC2::QStyle::PM_ProgressBarChunkWidth, QQC2::QStyle::PM_SmallIconSize, QQC2::QStyle::PM_TabBarBaseOverlap, QQC2::QStyleOptionTab::PreviousIsSelected, QQC2::QStyle::proxy(), Q_ASSERT, Q_FALLTHROUGH, Q_UNUSED, QQC2::qDrawShadePanel(), QQC2::qDrawShadeRect(), QQC2::qDrawWinButton(), qHasPixmapTexture(), r2, rect, QStyleOption::rect, QQC2::QStyleOption::rect, QRect::right(), Qt::RightToLeft, Qt::RightToolBarArea, QTabBar::RoundedEast, QTabBar::RoundedNorth, QTabBar::RoundedSouth, QTabBar::RoundedWest, QQC2::QStyle::SE_DockWidgetTitleBarText, QQC2::QStyleOptionMenuItem::Separator, QPainter::setBackground(), QPainter::setBackgroundMode(), QFont::setBold(), QPainter::setBrush(), QPalette::setColor(), QGradient::setColorAt(), QPainter::setPen(), QRect::setRect(), QQC2::QStyle::SH_EtchDisabledText, QQC2::QStyle::SH_RubberBand_Mask, QQC2::QStyle::SH_TabBar_Alignment, QQC2::QStyle::SH_UnderlineShortcut, QPalette::shadow(), QStyleOption::state, QQC2::QStyleOption::state, QQC2::QStyle::State_Active, QQC2::QStyle::State_Enabled, QQC2::QStyle::State_HasFocus, QQC2::QStyle::State_Horizontal, QQC2::QStyle::State_None, QQC2::QStyle::State_On, QQC2::QStyle::State_Raised, QQC2::QStyle::State_Selected, QQC2::QStyle::State_Sunken, QQC2::QStyle::State_Window, QBrush::style(), styleHint(), QQC2::QStyle::styleHint(), QStyleOption::styleObject, subElementRect(), QQC2::QStyleOptionMenuItem::SubMenu, Qt::TextDontClip, Qt::TextHideMnemonic, textRect, Qt::TextShowMnemonic, Qt::TextSingleLine, QBrush::texture(), QBrush::textureImage(), Qt::TexturePattern, QPixmap::toImage(), QRect::top(), QRect::topLeft(), QRect::topRight(), Qt::TopToolBarArea, QRect::translate(), QQC2::QStyle::visualRect(), Qt::white, widget, QPixmap::width(), QRect::width(), QPalette::Window, QPalette::window(), QQC2::QWindowsStylePrivate::windowsArrowHMargin, QQC2::QWindowsStylePrivate::windowsCheckMarkWidth, QQC2::QWindowsStylePrivate::windowsItemFrame, QQC2::QWindowsStylePrivate::windowsItemHMargin, QQC2::QWindowsStylePrivate::windowsItemVMargin, QQC2::QWindowsStylePrivate::windowsRightBorder, QPalette::WindowText, and QRect::y().
Referenced by QQC2::QWindowsXPStyle::drawControl().
|
overridevirtual |
\reimp
Reimplemented from QQC2::QCommonStyle.
Reimplemented in QQC2::QWindowsXPStyle.
Definition at line 557 of file qquickwindowsstyle.cpp.
References QPainterPath::addEllipse(), QRect::adjusted(), QPainter::Antialiasing, QPalette::base(), QColor::blue(), QPalette::brush(), btn, QPalette::Button, QPalette::button(), QBrush::color(), QPalette::dark(), QQC2::QStyleOptionButton::DefaultButton, Qt::Dense4Pattern, QStyleOption::direction, QQC2::QStyleHelper::dpi(), QQC2::QStyleHelper::dpiScaled(), QQC2::QStyle::drawPrimitive(), QQC2::QCommonStyle::drawPrimitive(), QStyleOptionButton::features, fill(), frame, QColor::green(), QRect::height(), QPalette::Highlight, QPalette::highlightedText(), QColor::isValid(), QPalette::Light, QPalette::light(), QFrame::lineWidth, QPalette::Midlight, QPalette::midlight(), Qt::NoPen, opt, QWidget::palette, QStyleOption::palette, panel, QWidget::parentWidget(), QQC2::QStyle::PE_Frame, QQC2::QStyle::PE_FrameButtonBevel, QQC2::QStyle::PE_FrameButtonTool, QQC2::QStyle::PE_FrameDefaultButton, QQC2::QStyle::PE_FrameDockWidget, QQC2::QStyle::PE_FrameFocusRect, QQC2::QStyle::PE_FrameMenu, QQC2::QStyle::PE_FrameStatusBarItem, QQC2::QStyle::PE_FrameTabWidget, QQC2::QStyle::PE_FrameWindow, QQC2::QStyle::PE_IndicatorCheckBox, QQC2::QStyle::PE_IndicatorDockWidgetResizeHandle, QQC2::QStyle::PE_IndicatorItemViewItemCheck, QQC2::QStyle::PE_IndicatorProgressChunk, QQC2::QStyle::PE_IndicatorRadioButton, QQC2::QStyle::PE_IndicatorToolBarHandle, QQC2::QStyle::PE_IndicatorToolBarSeparator, QQC2::QStyle::PE_PanelButtonBevel, QQC2::QStyle::PE_PanelButtonCommand, QQC2::QStyle::PE_PanelButtonTool, QQC2::QStyle::pixelMetric(), QQC2::QStyle::PM_ProgressBarChunkWidth, QQC2::QStyle::proxy(), Q_FALLTHROUGH, QQC2::qDrawShadePanel(), QQC2::qDrawShadeRect(), QQC2::qDrawWinButton(), QQC2::qDrawWinPanel(), rect, QWidget::rect, QStyleOption::rect, QColor::red(), Qt::RightToLeft, QPalette::setColor(), QPolygon::setPoints(), QQC2::QStyle::SH_UnderlineShortcut, QPalette::shadow(), QQC2::QStyleOptionViewItem::showDecorationSelected, QStyleOption::state, QQC2::QStyle::State_AutoRaise, QQC2::QStyle::State_Enabled, QQC2::QStyle::State_Horizontal, QQC2::QStyle::State_KeyboardFocusChange, QQC2::QStyle::State_MouseOver, QQC2::QStyle::State_NoChange, QQC2::QStyle::State_Off, QQC2::QStyle::State_On, QQC2::QStyle::State_Raised, QQC2::QStyle::State_Selected, QQC2::QStyle::State_Sunken, QQC2::QStyle::styleHint(), QPalette::text(), QRect::topLeft(), QColor::toRgb(), Qt::TransparentMode, QRect::width(), QPalette::window(), QRect::x(), and QRect::y().
Referenced by QQC2::QWindowsXPStyle::drawPrimitive().
|
overridevirtual |
\reimp
Reimplemented from QQC2::QCommonStyle.
Reimplemented in QQC2::QWindowsXPStyle.
Definition at line 326 of file qquickwindowsstyle.cpp.
References QQC2::QStyleHelper::dpiScaled(), QQC2::QWindowsStylePrivate::fixedPixelMetric(), Qt::Horizontal, QQC2::QWindowsStylePrivate::InvalidMetric, QQC2::QWindowsStylePrivate::nativeMetricScaleFactor(), QQC2::QStyleOptionSlider::NoTicks, opt, QQC2::QCommonStyle::pixelMetric(), QQC2::QStyle::pixelMetric(), QQC2::QWindowsStylePrivate::pixelMetricFromSystemDp(), QQC2::QStyle::PM_IconViewIconSize, QQC2::QStyle::PM_LargeIconSize, QQC2::QStyle::PM_MaximumDragDistance, QQC2::QStyle::PM_SliderControlThickness, QQC2::QStyle::PM_SliderLength, QQC2::QStyle::PM_SplitterWidth, QQC2::QStyle::proxy(), qRound(), ret, QQC2::QStyleOptionSlider::TicksAbove, QQC2::QStyleOptionSlider::TicksBelow, and QQC2::QStyleOptionSlider::TicksBothSides.
Referenced by drawControl(), and QQC2::QWindowsXPStyle::pixelMetric().
|
overridevirtual |
Reimplemented from QQC2::QStyle.
Definition at line 2299 of file qquickwindowsstyle.cpp.
References QBasicTimer::isActive(), and QBasicTimer::start().
|
slot |
Definition at line 2287 of file qquickwindowsstyle.cpp.
References QQuickTheme::instance(), QGuiApplicationPrivate::platformIntegration(), QQuickTheme::setPalette(), and QQuickTheme::System.
Referenced by QtQuickControls2NativeStylePlugin::initializeEngine(), and timerEvent().
|
overridevirtual |
\reimp
Reimplemented from QQC2::QCommonStyle.
Reimplemented in QQC2::QWindowsXPStyle.
Definition at line 2202 of file qquickwindowsstyle.cpp.
References QQC2::QStyleOptionButton::AutoDefaultButton, btn, QQC2::QStyle::CT_MenuBarItem, QQC2::QStyle::CT_MenuItem, QQC2::QStyle::CT_PushButton, QQC2::QStyle::CT_ToolButton, QQC2::QStyleOptionMenuItem::DefaultItem, QQC2::QStyleHelper::dpi(), QQC2::QStyleHelper::dpiScaled(), QStyleOptionButton::features, QSize::height(), QFontMetrics::horizontalAdvance(), QString::isEmpty(), QSize::isEmpty(), opt, QQC2::QStyle::pixelMetric(), QQC2::QStyle::PM_ButtonDefaultIndicator, QQC2::QStyle::PM_SmallIconSize, QQC2::QStyle::proxy(), Q_FALLTHROUGH, qMax(), QQC2::QStyleOptionMenuItem::Separator, QFont::setBold(), QSize::setHeight(), QSize::setWidth(), QQC2::QCommonStyle::sizeFromContents(), QQC2::QStyleOptionMenuItem::SubMenu, text, widget, QSize::width(), QQC2::QWindowsStylePrivate::windowsArrowHMargin, QQC2::QWindowsStylePrivate::windowsCheckMarkWidth, QQC2::QWindowsStylePrivate::windowsItemFrame, QQC2::QWindowsStylePrivate::windowsItemHMargin, QQC2::QWindowsStylePrivate::windowsItemVMargin, QQC2::QWindowsStylePrivate::windowsRightBorder, and QQC2::QWindowsStylePrivate::windowsSepHeight.
Referenced by QQC2::QWindowsXPStyle::sizeFromContents().
|
overridevirtual |
\reimp
Reimplemented from QQC2::QCommonStyle.
Reimplemented in QQC2::QWindowsXPStyle.
Definition at line 2310 of file qquickwindowsstyle.cpp.
References QQC2::QCommonStyle::standardIcon(), and standardIcon().
Referenced by standardIcon(), and QQC2::QWindowsXPStyle::standardIcon().
|
overridevirtual |
\reimp
Reimplemented from QQC2::QCommonStyle.
Reimplemented in QQC2::QWindowsXPStyle.
Definition at line 392 of file qquickwindowsstyle.cpp.
References QPixmap::isNull(), opt, QGuiApplicationPrivate::platformTheme(), sp, QQC2::QStyle::SP_ComputerIcon, QQC2::QStyle::SP_DesktopIcon, QQC2::QStyle::SP_DirClosedIcon, QQC2::QStyle::SP_DirHomeIcon, QQC2::QStyle::SP_DirLinkIcon, QQC2::QStyle::SP_DirOpenIcon, QQC2::QStyle::SP_DriveCDIcon, QQC2::QStyle::SP_DriveDVDIcon, QQC2::QStyle::SP_DriveFDIcon, QQC2::QStyle::SP_DriveHDIcon, QQC2::QStyle::SP_DriveNetIcon, QQC2::QStyle::SP_FileDialogNewFolder, QQC2::QStyle::SP_FileIcon, QQC2::QStyle::SP_FileLinkIcon, QQC2::QStyle::SP_MessageBoxCritical, QQC2::QStyle::SP_MessageBoxInformation, QQC2::QStyle::SP_MessageBoxQuestion, QQC2::QStyle::SP_MessageBoxWarning, QQC2::QStyle::SP_TrashIcon, QQC2::QStyle::SP_VistaShield, QQC2::QCommonStyle::standardPixmap(), and standardPixmap().
Referenced by QQC2::QWindowsXPStyle::standardPixmap(), and standardPixmap().
|
overridevirtual |
\reimp
Reimplemented from QQC2::QCommonStyle.
Reimplemented in QQC2::QWindowsXPStyle.
Definition at line 438 of file qquickwindowsstyle.cpp.
References QApplication::activeWindow(), QRect::adjusted(), d, QObject::findChild(), hint(), QWidget::isWindow(), menuBar, QWizard::ModernStyle, opt, QObject::property(), QStyleOption::rect, QRubberBand::Rectangle, ret, QQC2::QStyle::SH_ComboBox_ListMouseTracking, QQC2::QStyle::SH_DialogButtonBox_ButtonsHaveIcons, QQC2::QStyle::SH_EtchDisabledText, QQC2::QStyle::SH_FontDialog_SelectAssociatedText, QQC2::QStyle::SH_ItemView_ArrowKeysNavigateIntoChildren, QQC2::QStyle::SH_ItemView_ChangeHighlightOnFocus, QQC2::QStyle::SH_ItemView_ShowDecorationSelected, QQC2::QStyle::SH_MainWindow_SpaceBelowMenuBar, QQC2::QStyle::SH_Menu_AllowActiveAndDisabled, QQC2::QStyle::SH_Menu_MouseTracking, QQC2::QStyle::SH_Menu_SubMenuPopupDelay, QQC2::QStyle::SH_Menu_SubMenuSloppyCloseTimeout, QQC2::QStyle::SH_MenuBar_AltKeyNavigation, QQC2::QStyle::SH_MenuBar_MouseTracking, QQC2::QStyle::SH_PrintDialog_RightAlignButtons, QQC2::QStyle::SH_RubberBand_Mask, QQC2::QStyle::SH_Slider_SnapToValue, QQC2::QStyle::SH_Slider_StopMouseOverSlider, QQC2::QStyle::SH_ToolBox_SelectedPageTitleBold, QQC2::QStyle::SH_UnderlineShortcut, QQC2::QStyle::SH_WizardStyle, QQC2::QStyleOption::SO_MenuItem, SPI_GETKEYBOARDCUES, QQC2::QCommonStyle::styleHint(), QStyleOption::styleObject, QVariant::toBool(), QStyleOption::type, and widget.
Referenced by drawComplexControl(), drawControl(), and QQC2::QWindowsXPStyle::styleHint().
|
overridevirtual |
\reimp
Reimplemented from QQC2::QCommonStyle.
Reimplemented in QQC2::QWindowsXPStyle.
Definition at line 1760 of file qquickwindowsstyle.cpp.
References QStyleOption::direction, Qt::LeftToRight, opt, QQC2::QStyle::pixelMetric(), QQC2::QStyle::PM_DockWidgetTitleMargin, QQC2::QStyle::proxy(), QStyleOption::rect, QQC2::QStyle::SE_DockWidgetTitleBarText, QQC2::QStyle::SE_ProgressBarContents, QQC2::QStyle::SE_ProgressBarGroove, QQC2::QStyle::SE_SliderFocusRect, QQC2::QStyle::SE_ToolBoxTabContents, QQC2::QCommonStyle::subElementRect(), QQC2::QStyleOptionDockWidget::verticalTitleBar, and QQC2::QStyle::visualRect().
Referenced by drawComplexControl(), drawControl(), and QQC2::QWindowsXPStyle::subElementRect().
|
overrideprotectedvirtual |
This event handler can be reimplemented in a subclass to receive timer events for the object.
QTimer provides a higher-level interface to the timer functionality, and also more general information about timers. The timer event is passed in the event parameter.
Reimplemented from QObject.
Definition at line 186 of file qquickwindowsstyle.cpp.
References refreshPalette(), QBasicTimer::stop(), and QBasicTimer::timerId().