18#include <QtWidgets/private/qtwidgetsglobal_p.h>
20#if QT_CONFIG(style_windowsvista)
25#include <QtWidgets/private/qwidget_p.h>
26#include <QtWidgets/private/qstylehelper_p.h>
49class QVistaHelper :
public QObject
51 Q_DISABLE_COPY_MOVE(QVistaHelper)
54 ~QVistaHelper()
override;
55 enum TitleBarChangeType { NormalTitleBar, ExtendedTitleBar };
56 void updateCustomMargins(
bool vistaMargins);
57 bool setDWMTitleBar(TitleBarChangeType
type);
58 void setTitleBarIconAndCaptionVisible(
bool visible);
63 QVistaBackButton *backButton()
const {
return backButton_; }
64 void disconnectBackButton();
65 void hideBackButton() {
if (backButton_) backButton_->hide(); }
66 QColor basicWindowFrameColor();
67 static int titleBarSize() {
return QVistaHelper::titleBarSizeDp() / QVistaHelper::m_devicePixelRatio; }
68 static int titleBarSizeDp() {
return QVistaHelper::frameSizeDp() + QVistaHelper::captionSizeDp(); }
77 HWND wizardHWND()
const;
79 static void drawBlackRect(
const QRect &
rect, HDC hdc);
81 static int frameSize() {
return QVistaHelper::frameSizeDp() / QVistaHelper::m_devicePixelRatio; }
82 static int frameSizeDp();
83 static int captionSize() {
return QVistaHelper::captionSizeDp() / QVistaHelper::m_devicePixelRatio; }
84 static int captionSizeDp();
91 {
return backButton_->isVisible() ? backButtonSize(
device) + iconSpacing : 0; }
96 void collapseTopFrameStrut();
103 enum Changes { resizeTop, movePosition, noChange } change;
109 QVistaBackButton *backButton_;
113 static qreal m_devicePixelRatio;
IOBluetoothDevice * device
The QColor class provides colors based on RGB, HSV or CMYK values.
virtual bool eventFilter(QObject *watched, QEvent *event)
Filters events if this object has been installed as an event filter for the watched object.
The QPaintEvent class contains event parameters for paint events.
The QPainter class performs low-level painting on widgets and other paint devices.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QResizeEvent class contains event parameters for resize events.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QWizard class provides a framework for wizards.
Q_WIDGETS_EXPORT qreal dpiScaled(qreal value, qreal dpi)
Combined button and popup list for selecting options.
GLuint GLsizei const GLchar * message
GLenum GLuint GLintptr offset
static constexpr QSize frameSize(const T &frame)
#define QT_REQUIRE_CONFIG(feature)