Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include "qwindowsvistastyle_p.h"
#include "qwindowsvistastyle_p_p.h"
#include "qwindowsvistaanimation_p.h"
#include <qoperatingsystemversion.h>
#include <qscreen.h>
#include <qstylehints.h>
#include <qwindow.h>
#include <private/qstyleanimation_p.h>
#include <private/qstylehelper_p.h>
#include <qpa/qplatformnativeinterface.h>
#include <private/qapplication_p.h>
#include <private/qsystemlibrary_p.h>
#include <private/qwindowsthemecache_p.h>
#include "qdrawutil.h"
#include <qbackingstore.h>
Go to the source code of this file.
Macros | |
#define | TMT_CONTENTMARGINS 3602 |
#define | TMT_SIZINGMARGINS 3601 |
#define | LISS_NORMAL 1 |
#define | LISS_HOT 2 |
#define | LISS_SELECTED 3 |
#define | LISS_DISABLED 4 |
#define | LISS_SELECTEDNOTFOCUS 5 |
#define | LISS_HOTSELECTED 6 |
#define | BP_COMMANDLINK 6 |
#define | BP_COMMANDLINKGLYPH 7 |
#define | CMDLGS_NORMAL 1 |
#define | CMDLGS_HOT 2 |
#define | CMDLGS_PRESSED 3 |
#define | CMDLGS_DISABLED 4 |
Enumerations | |
enum | TransformType { SimpleTransform , HighDpiScalingTransform , ComplexTransform } |
Variables | |
static const int | windowsItemFrame = 2 |
static const int | windowsItemHMargin = 3 |
static const int | windowsItemVMargin = 4 |
static const int | windowsArrowHMargin = 6 |
static const int | windowsRightBorder = 15 |
#define BP_COMMANDLINK 6 |
Definition at line 47 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::drawControl().
#define BP_COMMANDLINKGLYPH 7 |
Definition at line 48 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::standardIcon().
#define CMDLGS_DISABLED 4 |
Definition at line 52 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::standardIcon().
#define CMDLGS_HOT 2 |
Definition at line 50 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::standardIcon().
#define CMDLGS_NORMAL 1 |
Definition at line 49 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::standardIcon().
#define CMDLGS_PRESSED 3 |
Definition at line 51 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::standardIcon().
#define LISS_DISABLED 4 |
Definition at line 42 of file qwindowsvistastyle.cpp.
#define LISS_HOT 2 |
Definition at line 40 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::drawPrimitive().
#define LISS_HOTSELECTED 6 |
Definition at line 44 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::drawPrimitive().
#define LISS_NORMAL 1 |
Definition at line 39 of file qwindowsvistastyle.cpp.
#define LISS_SELECTED 3 |
Definition at line 41 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::drawPrimitive().
#define LISS_SELECTEDNOTFOCUS 5 |
Definition at line 43 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::drawPrimitive().
#define TMT_CONTENTMARGINS 3602 |
Definition at line 33 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::subElementRect(), and QQC2::QWindowsXPStyle::subElementRect().
#define TMT_SIZINGMARGINS 3601 |
Definition at line 36 of file qwindowsvistastyle.cpp.
Referenced by QQC2::QWindowsXPStylePrivate::scrollBarGripperBounds().
enum TransformType |
Enumerator | |
---|---|
SimpleTransform | |
HighDpiScalingTransform | |
ComplexTransform |
Definition at line 114 of file qwindowsvistastyle.cpp.
|
static |
Definition at line 1204 of file qwindowsvistastyle.cpp.
References Q_ASSERT, QStyle::State_Enabled, QStyle::State_MouseOver, QStyle::State_On, and QStyle::State_Sunken.
Referenced by QWindowsVistaStyle::drawControl(), and QWindowsVistaStyle::drawPrimitive().
|
static |
Definition at line 1156 of file qwindowsvistastyle.cpp.
References QStyle::SC_TitleBarCloseButton, QStyle::SC_TitleBarContextHelpButton, QStyle::SC_TitleBarMaxButton, QStyle::SC_TitleBarMinButton, QStyle::SC_TitleBarNormalButton, QStyle::SC_TitleBarShadeButton, QStyle::SC_TitleBarSysMenu, QStyle::SC_TitleBarUnshadeButton, Qt::WindowContextHelpButtonHint, Qt::WindowMaximizeButtonHint, Qt::WindowMaximized, Qt::WindowMinimizeButtonHint, Qt::WindowMinimized, Qt::WindowShadeButtonHint, and Qt::WindowSystemMenuHint.
Referenced by QWindowsVistaStyle::subControlRect().
bool canAnimate | ( | const QStyleOption * | option | ) |
Definition at line 1041 of file qwindowsvistastyle.cpp.
References QObject::property(), and QVariant::toBool().
Referenced by QWindowsVistaStyle::drawComplexControl(), QWindowsVistaStyle::drawControl(), and QWindowsVistaStyle::drawPrimitive().
QStyleOption * clonedAnimationStyleOption | ( | const QStyleOption * | option | ) |
Definition at line 1060 of file qwindowsvistastyle.cpp.
References button, groupBox, and QStyleOption::rect.
Referenced by QWindowsVistaStyle::drawComplexControl(), QWindowsVistaStyle::drawControl(), and QWindowsVistaStyle::drawPrimitive().
|
inlinestatic |
Definition at line 1047 of file qwindowsvistastyle.cpp.
References QPaintDevice::devicePixelRatioF(), QImage::Format_ARGB32_Premultiplied, qApp, and widget.
Referenced by QWindowsVistaStyle::drawComplexControl(), QWindowsVistaStyle::drawControl(), and QWindowsVistaStyle::drawPrimitive().
|
inlinestatic |
Definition at line 103 of file qwindowsvistastyle.cpp.
References QGuiApplicationPrivate::platformIntegration(), and QStringLiteral.
void deleteClonedAnimationStyleOption | ( | const QStyleOption * | option | ) |
Definition at line 1081 of file qwindowsvistastyle.cpp.
References button, and groupBox.
Referenced by QWindowsVistaStyle::drawComplexControl(), QWindowsVistaStyle::drawControl(), and QWindowsVistaStyle::drawPrimitive().
|
inlinestatic |
Definition at line 129 of file qwindowsvistastyle.cpp.
References QWindowsVistaStylePrivate::TaskDialogTheme.
Referenced by QWindowsVistaStylePrivate::drawBackground().
|
static |
Definition at line 1097 of file qwindowsvistastyle.cpp.
References QStyle::CC_TitleBar, QWidget::isEnabled(), QWindowsThemeData::partId, proxy, RBS_INACTIVE, QWindowsThemeData::rect, QStyle::State_MouseOver, QStyle::State_Sunken, QWindowsThemeData::stateId, and widget.
Referenced by QWindowsVistaStyle::drawComplexControl().
|
inlinestatic |
Definition at line 87 of file qwindowsvistastyle.cpp.
References Qt::Horizontal, QStyle::State_Horizontal, and Qt::Vertical.
Referenced by QWindowsVistaStylePrivate::pixelMetricFromSystemDp().
Definition at line 61 of file qwindowsvistastyle.cpp.
Referenced by qt_hrgn_from_qregion().
|
static |
Definition at line 75 of file qwindowsvistastyle.cpp.
References QRegion::boundingRect(), qt_add_rect(), rect, and QRegion::rectCount().
Referenced by QWindowsVistaStylePrivate::drawBackgroundDirectly().
Definition at line 134 of file qwindowsvistastyle.cpp.
Definition at line 140 of file qwindowsvistastyle.cpp.
References QRegion::isEmpty(), qFuzzyCompare(), and rect.
Referenced by QWindowsVistaStylePrivate::drawBackgroundDirectly(), and QWindowsVistaStylePrivate::drawBackgroundThruNativeBuffer().
|
inline |
Definition at line 1034 of file qwindowsvistastyle.cpp.
Referenced by QQC2_NAMESPACE::QMacStyle::drawComplexControl(), QMacStyle::drawComplexControl(), QWindows11Style::drawComplexControl(), QWindowsVistaStyle::drawComplexControl(), QWindowsVistaStyle::drawControl(), QWindows11Style::drawPrimitive(), and QWindowsVistaStyle::drawPrimitive().
|
inlinestatic |
Definition at line 1235 of file qwindowsvistastyle.cpp.
References QWindowsVistaStylePrivate::isLineEditBaseColorSet(), QStyle::PE_FrameLineEdit, QStyle::PE_IndicatorCheckBox, QStyle::PE_IndicatorRadioButton, and widget.
Referenced by QWindowsVistaStyle::drawPrimitive().
|
inlinestatic |
Definition at line 116 of file qwindowsvistastyle.cpp.
References ComplexTransform, HighDpiScalingTransform, qFuzzyCompare(), SimpleTransform, QTransform::TxScale, and QTransform::TxTranslate.
|
static |
Definition at line 29 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::drawControl().
|
static |
Definition at line 26 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::drawControl().
|
static |
Definition at line 27 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::drawControl(), and QWindowsVistaStyle::sizeFromContents().
|
static |
Definition at line 28 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::drawControl().
|
static |
Definition at line 30 of file qwindowsvistastyle.cpp.
Referenced by QWindowsVistaStyle::drawControl().