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>.
Loading...
Searching...
No Matches
QQC2 Namespace Reference

Namespaces

namespace  QDrawBorderPixmap
 
namespace  QStyleHelper
 

Classes

class  QCommonStyle
 
class  QCommonStylePrivate
 
class  QMacStylePrivate
 
class  QQuickNativeStyle
 
class  QStyle
 
class  QStyleHintReturn
 
class  QStyleHintReturnMask
 
class  QStyleHintReturnVariant
 
class  QStyleOption
 
class  QStyleOptionButton
 
class  QStyleOptionComboBox
 
class  QStyleOptionComplex
 
class  QStyleOptionDockWidget
 
class  QStyleOptionFocusRect
 
class  QStyleOptionFrame
 
class  QStyleOptionGraphicsItem
 
class  QStyleOptionGroupBox
 
class  QStyleOptionHeader
 
class  QStyleOptionMenuItem
 
class  QStyleOptionProgressBar
 
class  QStyleOptionRubberBand
 
class  QStyleOptionSizeGrip
 
class  QStyleOptionSlider
 
class  QStyleOptionSpinBox
 
class  QStyleOptionTab
 
class  QStyleOptionTabBarBase
 
class  QStyleOptionTabV4
 
class  QStyleOptionTabWidgetFrame
 
class  QStyleOptionTitleBar
 
class  QStyleOptionToolBar
 
class  QStyleOptionToolBox
 
class  QStyleOptionToolButton
 
class  QStylePrivate
 
class  QTileRules
 The QTileRules class provides the rules used to draw a pixmap or image split into nine segments. More...
 
class  QWindowsStyle
 The QWindowsStyle class provides a Microsoft Windows-like look and feel. More...
 
class  QWindowsStylePrivate
 
class  QWindowsXPStyle
 The QWindowsXPStyle class provides a Microsoft Windows XP-like look and feel. More...
 
class  QWindowsXPStylePrivate
 
struct  StaticPolygonF
 
struct  ThemeMapData
 
struct  ThemeMapKey
 
class  XPThemeData
 

Typedefs

typedef QVarLengthArray< QPainter::PixmapFragment, 16 > QPixmapFragmentsArray
 

Enumerations

enum  QSliderDirection { SlUp , SlDown , SlLeft , SlRight }
 
enum  AlphaChannelType { UnknownAlpha = -1 , NoAlpha , MaskAlpha , RealAlpha }
 

Functions

static void drawArrow (const QStyle *style, const QStyleOptionToolButton *toolbutton, const QRect &rect, QPainter *painter)
 
static QSizeF viewItemTextLayout (QTextLayout &textLayout, int lineWidth, int maxHeight=-1, int *lastVisibleLine=nullptr)
 
static StaticPolygonF< 3 > calcArrow (const QStyleOptionSlider *dial, qreal &a)
 
static QString clearText16IconPath ()
 
static uint qt_intensity (uint r, uint g, uint b)
 
void qDrawShadeLine (QPainter *p, int x1, int y1, int x2, int y2, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth)
 
void qDrawShadeRect (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth, const QBrush *fill)
 
void qDrawShadePanel (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, int lineWidth, const QBrush *fill)
 
static void qDrawWinShades (QPainter *p, int x, int y, int w, int h, const QColor &c1, const QColor &c2, const QColor &c3, const QColor &c4, const QBrush *fill)
 
void qDrawWinButton (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, const QBrush *fill)
 
void qDrawWinPanel (QPainter *p, int x, int y, int w, int h, const QPalette &pal, bool sunken, const QBrush *fill)
 
void qDrawPlainRect (QPainter *p, int x, int y, int w, int h, const QColor &c, int lineWidth, const QBrush *fill)
 
void qDrawShadeLine (QPainter *p, const QPoint &p1, const QPoint &p2, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth)
 
void qDrawShadeRect (QPainter *p, const QRect &r, const QPalette &pal, bool sunken, int lineWidth, int midLineWidth, const QBrush *fill)
 
void qDrawShadePanel (QPainter *p, const QRect &r, const QPalette &pal, bool sunken, int lineWidth, const QBrush *fill)
 
void qDrawWinButton (QPainter *p, const QRect &r, const QPalette &pal, bool sunken, const QBrush *fill)
 
void qDrawWinPanel (QPainter *p, const QRect &r, const QPalette &pal, bool sunken, const QBrush *fill)
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Draws the Windows-style panel at the rectangle specified by rect using the given painter with a line width of 2 pixels.
 
void qDrawPlainRect (QPainter *p, const QRect &r, const QColor &c, int lineWidth, const QBrush *fill)
 
void qDrawBorderPixmap (QPainter *painter, const QRect &targetRect, const QMargins &targetMargins, const QPixmap &pixmap, const QRect &sourceRect, const QMargins &sourceMargins, const QTileRules &rules, QDrawBorderPixmap::DrawingHints hints)
 
void qDrawBorderPixmap (QPainter *painter, const QRect &target, const QMargins &margins, const QPixmap &pixmap)
 
QImage styleCacheImage (const QSize &size)
 
QPixmap styleCachePixmap (const QSize &size)
 
QDebug operator<< (QDebug debug, const QStyleOption::OptionType &optionType)
 
QDebug operator<< (QDebug debug, const QStyleOption &option)
 
template<typename T >
qstyleoption_cast (const QStyleOption *opt)
 
template<typename T >
qstyleoption_cast (QStyleOption *opt)
 
template<typename T >
qstyleoption_cast (const QStyleHintReturn *hint)
 
template<typename T >
qstyleoption_cast (QStyleHintReturn *hint)
 
static QScreenscreenOf (const QWindow *w)
 
static void qt_add_rect (HRGN &winRegion, QRect r)
 
static HRGN qt_hrgn_from_qregion (const QRegion &region)
 
static HWND createTreeViewHelperWindow ()
 
static QRectF scaleRect (const QRectF &r, qreal factor)
 
static QRegion scaleRegion (const QRegion &region, qreal factor)
 
static void populateTitleBarButtonTheme (const QStyle *proxy, const QStyleOptionComplex *option, QStyle::SubControl subControl, bool isTitleBarActive, int part, XPThemeData *theme)
 
static Qt::Orientation progressBarOrientation (const QStyleOption *option=nullptr)
 
static bool buttonVisible (const QStyle::SubControl sc, const QStyleOptionTitleBar *tb)
 
QDebug operator<< (QDebug d, const XPThemeData &t)
 
QDebug operator<< (QDebug d, const ThemeMapKey &k)
 
QDebug operator<< (QDebug d, const ThemeMapData &td)
 
size_t qHash (const ThemeMapKey &key)
 
bool operator== (const ThemeMapKey &k1, const ThemeMapKey &k2)
 

Variables

Q_DECL_DEPRECATED typedef QStyleOptionFrame QStyleOptionFrameV2
 
Q_DECL_DEPRECATED typedef QStyleOptionFrame QStyleOptionFrameV3
 
Q_DECL_DEPRECATED typedef QStyleOptionTabWidgetFrame QStyleOptionTabWidgetFrameV2
 
Q_DECL_DEPRECATED typedef QStyleOptionTab QStyleOptionTabV2
 
Q_DECL_DEPRECATED typedef QStyleOptionTab QStyleOptionTabV3
 
Q_DECL_DEPRECATED typedef QStyleOptionDockWidget QStyleOptionDockWidgetV2
 
Q_DECL_DEPRECATED typedef QStyleOptionToolBox QStyleOptionToolBoxV2
 
static const char *const check_list_controller_xpm []
 
static const char *const tb_extension_arrow_v_xpm []
 
static const char *const tb_extension_arrow_h_xpm []
 
static const char *const filedialog_start_xpm []
 
static const char *const filedialog_end_xpm []
 
static const char *const qt_menu_xpm []
 
static const char *const qt_close_xpm []
 
static const char *const qt_maximize_xpm []
 
static const char *const qt_minimize_xpm []
 
static const char *const qt_normalizeup_xpm []
 
static const char *const qt_help_xpm []
 
static const char *const qt_shade_xpm []
 
static const char *const qt_unshade_xpm []
 
static const char *const dock_widget_close_xpm []
 
static const char *const information_xpm []
 
static const char *const warning_xpm []
 
static const char *const critical_xpm []
 
static const char *const question_xpm []
 
static const int windowsItemFrame = 2
 
static const int windowsItemHMargin = 3
 
static const int windowsItemVMargin = 0
 
static const int windowsArrowHMargin = 6
 
static const int windowsRightBorder = 12
 
static const wchar_t * themeNames [QWindowsXPStylePrivate::NThemes]
 

Typedef Documentation

◆ QPixmapFragmentsArray

Enumeration Type Documentation

◆ AlphaChannelType

Enumerator
UnknownAlpha 
NoAlpha 
MaskAlpha 
RealAlpha 

Definition at line 131 of file qquickwindowsxpstyle_p_p.h.

◆ QSliderDirection

Enumerator
SlUp 
SlDown 
SlLeft 
SlRight 

Definition at line 62 of file qquickwindowsstyle.cpp.

Function Documentation

◆ buttonVisible()

◆ calcArrow()

static StaticPolygonF< 3 > QQC2::calcArrow ( const QStyleOptionSlider * dial,
qreal & a )
static

Definition at line 2904 of file qquickcommonstyle.cpp.

References QQC2::QStyleHelper::calcBigLineSize(), Q_PI, qCos(), qMin(), and qSin().

Referenced by QQC2::QCommonStyle::drawComplexControl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ clearText16IconPath()

static QString QQC2::clearText16IconPath ( )
inlinestatic

Definition at line 5031 of file qquickcommonstyle.cpp.

References QStringLiteral.

Referenced by QQC2::QCommonStyle::standardPixmap().

+ Here is the caller graph for this function:

◆ createTreeViewHelperWindow()

static HWND QQC2::createTreeViewHelperWindow ( )
inlinestatic

Definition at line 178 of file qquickwindowsxpstyle.cpp.

References Qt::DirectConnection, QMetaObject::invokeMethod(), QGuiApplication::platformNativeInterface(), Q_ARG, Q_RETURN_ARG, and QStringLiteral.

+ Here is the call graph for this function:

◆ drawArrow()

static void QQC2::drawArrow ( const QStyle * style,
const QStyleOptionToolButton * toolbutton,
const QRect & rect,
QPainter * painter )
static

Definition at line 686 of file qquickcommonstyle.cpp.

References Qt::DownArrow, QQC2::QStyle::drawPrimitive(), Qt::LeftArrow, painter, QQC2::QStyle::PE_IndicatorArrowDown, QQC2::QStyle::PE_IndicatorArrowLeft, QQC2::QStyle::PE_IndicatorArrowRight, QQC2::QStyle::PE_IndicatorArrowUp, rect, QQC2::QStyleOption::rect, Qt::RightArrow, and Qt::UpArrow.

Referenced by QQC2::QCommonStyle::drawControl().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator<<() [1/5]

◆ operator<<() [2/5]

◆ operator<<() [3/5]

QDebug QQC2::operator<< ( QDebug d,
const XPThemeData & t )

Definition at line 3801 of file qquickwindowsxpstyle.cpp.

References d.

◆ operator<<() [4/5]

QDebug QQC2::operator<< ( QDebug debug,
const QStyleOption & option )

Definition at line 602 of file qquickstyleoption.cpp.

References debug, Q_UNUSED, and Qt::RightToLeft.

◆ operator<<() [5/5]

◆ operator==()

bool QQC2::operator== ( const ThemeMapKey & k1,
const ThemeMapKey & k2 )
inline

Definition at line 124 of file qquickwindowsxpstyle_p_p.h.

References k1.

◆ populateTitleBarButtonTheme()

static void QQC2::populateTitleBarButtonTheme ( const QStyle * proxy,
const QStyleOptionComplex * option,
QStyle::SubControl subControl,
bool isTitleBarActive,
int part,
XPThemeData * theme )
static

Definition at line 2307 of file qquickwindowsxpstyle.cpp.

References QQC2::QStyle::CC_TitleBar, QQC2::XPThemeData::partId, proxy, RBS_INACTIVE, QQC2::XPThemeData::rect, QQC2::QStyle::State_Enabled, QQC2::QStyle::State_MouseOver, QQC2::QStyle::State_Sunken, and QQC2::XPThemeData::stateId.

Referenced by QQC2::QWindowsXPStyle::drawComplexControl().

+ Here is the caller graph for this function:

◆ progressBarOrientation()

static Qt::Orientation QQC2::progressBarOrientation ( const QStyleOption * option = nullptr)
inlinestatic

Definition at line 3004 of file qquickwindowsxpstyle.cpp.

References Qt::Horizontal, QQC2::QStyle::State_Horizontal, and Qt::Vertical.

Referenced by QQC2::QWindowsXPStylePrivate::pixelMetricFromSystemDp().

+ Here is the caller graph for this function:

◆ qDrawBorderPixmap() [1/2]

void QQC2::qDrawBorderPixmap ( QPainter * painter,
const QRect & target,
const QMargins & margins,
const QPixmap & pixmap )
inline

Definition at line 125 of file qquickdrawutil.h.

References painter, pixmap, and qDrawBorderPixmap().

+ Here is the call graph for this function:

◆ qDrawBorderPixmap() [2/2]

void QQC2::qDrawBorderPixmap ( QPainter * painter,
const QRect & targetRect,
const QMargins & targetMargins,
const QPixmap & pixmap,
const QRect & sourceRect,
const QMargins & sourceMargins,
const QTileRules & rules,
QDrawBorderPixmap::DrawingHints hints )
Since
4.6

Draws the indicated sourceRect rectangle from the given pixmap into the given targetRect rectangle, using the given painter. The pixmap will be split into nine segments according to the given targetMargins and sourceMargins structures. Finally, the pixmap will be drawn according to the given rules.

This function is used to draw a scaled pixmap, similar to \l{http://www.w3.org/TR/css3-background/}{CSS3 border-images}

See also
Qt::TileRule, QTileRules, QMargins

Definition at line 878 of file qquickdrawutil.cpp.

References QPainter::Antialiasing, QRect::bottom(), QPainter::combinedTransform(), d, QPainter::drawPixmapFragments(), i, j, QRect::left(), QPainter::PixmapFragment::opacity, QQC2::QDrawBorderPixmap::OpaqueBottom, QQC2::QDrawBorderPixmap::OpaqueBottomLeft, QQC2::QDrawBorderPixmap::OpaqueBottomRight, QQC2::QDrawBorderPixmap::OpaqueCenter, QPainter::OpaqueHint, QQC2::QDrawBorderPixmap::OpaqueLeft, QQC2::QDrawBorderPixmap::OpaqueRight, QQC2::QDrawBorderPixmap::OpaqueTop, QQC2::QDrawBorderPixmap::OpaqueTopLeft, QQC2::QDrawBorderPixmap::OpaqueTopRight, QPaintEngine::OpenGL, QPaintEngine::OpenGL2, QPainter::paintEngine(), painter, pixmap, qCeil(), qMax(), Qt::RepeatTile, QRect::right(), Qt::RoundTile, QPainter::setRenderHint(), Qt::StretchTile, QPainter::testRenderHint(), QRect::top(), QTransform::TxNone, QTransform::type(), and QPaintEngine::type().

Referenced by qDrawBorderPixmap().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDrawPlainRect() [1/2]

void QQC2::qDrawPlainRect ( QPainter * p,
const QRect & r,
const QColor & c,
int lineWidth,
const QBrush * fill )

Definition at line 816 of file qquickdrawutil.cpp.

References fill(), and qDrawPlainRect().

+ Here is the call graph for this function:

◆ qDrawPlainRect() [2/2]

void QQC2::qDrawPlainRect ( QPainter * p,
int x,
int y,
int w,
int h,
const QColor & c,
int lineWidth,
const QBrush * fill )

Definition at line 578 of file qquickdrawutil.cpp.

References fill(), i, Qt::NoBrush, Qt::NoPen, Q_UNLIKELY, qFuzzyCompare(), qRound(), and qWarning.

Referenced by QQC2::QCommonStyle::drawControl(), QQC2::QCommonStyle::drawPrimitive(), and qDrawPlainRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDrawShadeLine() [1/2]

void QQC2::qDrawShadeLine ( QPainter * p,
const QPoint & p1,
const QPoint & p2,
const QPalette & pal,
bool sunken,
int lineWidth,
int midLineWidth )

Definition at line 652 of file qquickdrawutil.cpp.

References p1, p2, and qDrawShadeLine().

+ Here is the call graph for this function:

◆ qDrawShadeLine() [2/2]

void QQC2::qDrawShadeLine ( QPainter * p,
int x1,
int y1,
int x2,
int y2,
const QPalette & pal,
bool sunken,
int lineWidth,
int midLineWidth )

Definition at line 88 of file qquickdrawutil.cpp.

References QBrush::color(), QPalette::color(), QPalette::Dark, QPalette::dark(), i, QPalette::light(), QPalette::mid(), Q_UNLIKELY, qFuzzyCompare(), qRound(), qWarning, and QPolygon::setPoints().

Referenced by QQC2::QCommonStyle::drawControl(), QQC2::QCommonStyle::drawPrimitive(), and qDrawShadeLine().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDrawShadePanel() [1/2]

void QQC2::qDrawShadePanel ( QPainter * p,
const QRect & r,
const QPalette & pal,
bool sunken,
int lineWidth,
const QBrush * fill )

Definition at line 728 of file qquickdrawutil.cpp.

References fill(), and qDrawShadePanel().

+ Here is the call graph for this function:

◆ qDrawShadePanel() [2/2]

void QQC2::qDrawShadePanel ( QPainter * p,
int x,
int y,
int w,
int h,
const QPalette & pal,
bool sunken,
int lineWidth,
const QBrush * fill )

Definition at line 332 of file qquickdrawutil.cpp.

References QBrush::color(), QPalette::dark(), fill(), i, QPalette::light(), QPalette::midlight(), Q_UNLIKELY, qFuzzyCompare(), qRound(), qWarning, and QPalette::shadow().

Referenced by QQC2::QCommonStyle::drawControl(), QQC2::QWindowsStyle::drawControl(), QQC2::QCommonStyle::drawPrimitive(), QQC2::QWindowsStyle::drawPrimitive(), and qDrawShadePanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDrawShadeRect() [1/2]

void QQC2::qDrawShadeRect ( QPainter * p,
const QRect & r,
const QPalette & pal,
bool sunken,
int lineWidth,
int midLineWidth,
const QBrush * fill )

Definition at line 691 of file qquickdrawutil.cpp.

References fill(), and qDrawShadeRect().

+ Here is the call graph for this function:

◆ qDrawShadeRect() [2/2]

void QQC2::qDrawShadeRect ( QPainter * p,
int x,
int y,
int w,
int h,
const QPalette & pal,
bool sunken,
int lineWidth,
int midLineWidth,
const QBrush * fill )

Definition at line 215 of file qquickdrawutil.cpp.

References QBrush::color(), QPalette::dark(), fill(), i, j, QPalette::light(), QPalette::mid(), Qt::NoPen, Q_UNLIKELY, qFuzzyCompare(), qRound(), and qWarning.

Referenced by QQC2::QCommonStyle::drawControl(), QQC2::QWindowsStyle::drawControl(), QQC2::QCommonStyle::drawPrimitive(), QQC2::QWindowsStyle::drawPrimitive(), and qDrawShadeRect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDrawWinButton() [1/2]

void QQC2::qDrawWinButton ( QPainter * p,
const QRect & r,
const QPalette & pal,
bool sunken,
const QBrush * fill )

Definition at line 759 of file qquickdrawutil.cpp.

References fill(), and qDrawWinButton().

+ Here is the call graph for this function:

◆ qDrawWinButton() [2/2]

void QQC2::qDrawWinButton ( QPainter * p,
int x,
int y,
int w,
int h,
const QPalette & pal,
bool sunken,
const QBrush * fill )

Definition at line 502 of file qquickdrawutil.cpp.

References QPalette::button(), QBrush::color(), QPalette::dark(), fill(), QPalette::light(), qDrawWinShades(), and QPalette::shadow().

Referenced by QQC2::QWindowsStyle::drawComplexControl(), QQC2::QWindowsStyle::drawControl(), QQC2::QWindowsStyle::drawPrimitive(), and qDrawWinButton().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDrawWinPanel() [1/2]

void QQC2::qDrawWinPanel ( QPainter * p,
const QRect & r,
const QPalette & pal,
bool sunken,
const QBrush * fill )

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Draws the Windows-style panel at the rectangle specified by rect using the given painter with a line width of 2 pixels.

The button's interior is filled with the fill brush unless fill is 0.

The given palette specifies the shading colors. The panel appears sunken if sunken is true, otherwise raised.

Warning
This function does not look at QWidget::style() or QApplication::style(). Use the drawing functions in QStyle to make widgets that follow the current GUI style.

Alternatively you can use a QFrame widget and apply the QFrame::setFrameStyle() function to display a shaded panel:

See also
qDrawShadePanel(), qDrawWinButton(), QStyle

Definition at line 789 of file qquickdrawutil.cpp.

References fill(), and qDrawWinPanel().

+ Here is the call graph for this function:

◆ qDrawWinPanel() [2/2]

void QQC2::qDrawWinPanel ( QPainter * p,
int x,
int y,
int w,
int h,
const QPalette & pal,
bool sunken,
const QBrush * fill )

Definition at line 542 of file qquickdrawutil.cpp.

References QBrush::color(), QPalette::dark(), fill(), QPalette::light(), QPalette::midlight(), qDrawWinShades(), and QPalette::shadow().

Referenced by QQC2::QCommonStyle::drawComplexControl(), QQC2::QWindowsStyle::drawComplexControl(), QQC2::QCommonStyle::drawControl(), QQC2::QCommonStyle::drawPrimitive(), QQC2::QWindowsStyle::drawPrimitive(), and qDrawWinPanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qDrawWinShades()

static void QQC2::qDrawWinShades ( QPainter * p,
int x,
int y,
int w,
int h,
const QColor & c1,
const QColor & c2,
const QColor & c3,
const QColor & c4,
const QBrush * fill )
static

This function draws a rectangle with two pixel line width. It is called from qDrawWinButton() and qDrawWinPanel().

c1..c4 and fill are used:

1 1 1 1 1 2 1 3 3 3 4 2 1 3 F F 4 2 1 3 F F 4 2 1 4 4 4 4 2 2 2 2 2 2 2

Definition at line 430 of file qquickdrawutil.cpp.

References c2, d, fill(), qFuzzyCompare(), and qRound().

Referenced by qDrawWinButton(), and qDrawWinPanel().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qHash()

size_t QQC2::qHash ( const ThemeMapKey & key)
inline

Definition at line 121 of file qquickwindowsxpstyle_p_p.h.

◆ qstyleoption_cast() [1/4]

template<typename T >
T QQC2::qstyleoption_cast ( const QStyleHintReturn * hint)

Definition at line 742 of file qquickstyleoption.h.

References hint(), and QQC2::QStyleHintReturn::SH_Default.

+ Here is the call graph for this function:

◆ qstyleoption_cast() [2/4]

template<typename T >
T QQC2::qstyleoption_cast ( const QStyleOption * opt)

◆ qstyleoption_cast() [3/4]

template<typename T >
T QQC2::qstyleoption_cast ( QStyleHintReturn * hint)

Definition at line 752 of file qquickstyleoption.h.

References hint(), and QQC2::QStyleHintReturn::SH_Default.

+ Here is the call graph for this function:

◆ qstyleoption_cast() [4/4]

template<typename T >
T QQC2::qstyleoption_cast ( QStyleOption * opt)

◆ qt_add_rect()

static void QQC2::qt_add_rect ( HRGN & winRegion,
QRect r )
static

Definition at line 90 of file qquickwindowsxpstyle.cpp.

Referenced by qt_hrgn_from_qregion().

+ Here is the caller graph for this function:

◆ qt_hrgn_from_qregion()

static HRGN QQC2::qt_hrgn_from_qregion ( const QRegion & region)
static

Definition at line 104 of file qquickwindowsxpstyle.cpp.

References QRegion::boundingRect(), qt_add_rect(), rect, and QRegion::rectCount().

Referenced by QQC2::QWindowsXPStylePrivate::drawBackgroundDirectly().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_intensity()

static uint QQC2::qt_intensity ( uint r,
uint g,
uint b )
inlinestatic

Definition at line 5985 of file qquickcommonstyle.cpp.

Referenced by QQC2::QCommonStyle::generatedIconPixmap().

+ Here is the caller graph for this function:

◆ scaleRect()

static QRectF QQC2::scaleRect ( const QRectF & r,
qreal factor )
inlinestatic

Definition at line 624 of file qquickwindowsxpstyle.cpp.

Referenced by QQC2::QWindowsXPStylePrivate::drawBackgroundDirectly(), and QQC2::QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer().

+ Here is the caller graph for this function:

◆ scaleRegion()

static QRegion QQC2::scaleRegion ( const QRegion & region,
qreal factor )
static

Definition at line 631 of file qquickwindowsxpstyle.cpp.

References QRegion::isEmpty(), qFuzzyCompare(), and rect.

Referenced by QQC2::QWindowsXPStylePrivate::drawBackgroundDirectly(), and QQC2::QWindowsXPStylePrivate::drawBackgroundThruNativeBuffer().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ screenOf()

static QScreen * QQC2::screenOf ( const QWindow * w)
static

Definition at line 288 of file qquickwindowsstyle.cpp.

References QGuiApplication::primaryScreen, and screen.

Referenced by QQC2::QWindowsStylePrivate::nativeMetricScaleFactor().

+ Here is the caller graph for this function:

◆ styleCacheImage()

QImage QQC2::styleCacheImage ( const QSize & size)
inline

Definition at line 39 of file qquickstyle_p.h.

References QImage::Format_ARGB32_Premultiplied, and qApp.

◆ styleCachePixmap()

QPixmap QQC2::styleCachePixmap ( const QSize & size)
inline

Definition at line 47 of file qquickstyle_p.h.

References qApp.

◆ viewItemTextLayout()

static QSizeF QQC2::viewItemTextLayout ( QTextLayout & textLayout,
int lineWidth,
int maxHeight = -1,
int * lastVisibleLine = nullptr )
static

Definition at line 711 of file qquickcommonstyle.cpp.

References QTextLayout::beginLayout(), QTextLayout::createLine(), QTextLayout::endLayout(), i, QTextLine::isValid(), line, and qMax().

Referenced by QQC2::QCommonStylePrivate::calculateElidedText().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ check_list_controller_xpm

const char* const QQC2::check_list_controller_xpm[]
static
Initial value:
= {
"16 16 4 1",
" c None",
". c #000000000000",
"X c #FFFFFFFF0000",
"o c #C71BC30BC71B",
" ",
" ",
" .......... ",
" .XXXXXXXX. ",
" .XXXXXXXX.oo ",
" .XXXXXXXX.oo ",
" .XXXXXXXX.oo ",
" .XXXXXXXX.oo ",
" .XXXXXXXX.oo ",
" .XXXXXXXX.oo ",
" .XXXXXXXX.oo ",
" ..........oo ",
" oooooooooo ",
" oooooooooo ",
" ",
" "}

Definition at line 23 of file qquickcommonstylepixmaps_p.h.

◆ critical_xpm

const char* const QQC2::critical_xpm[]
static

Definition at line 418 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ dock_widget_close_xpm

const char* const QQC2::dock_widget_close_xpm[]
static
Initial value:
= {
"8 8 2 1",
"# c #000000",
". c None",
"........",
".##..##.",
"..####..",
"...##...",
"..####..",
".##..##.",
"........",
"........"}

Definition at line 325 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ filedialog_end_xpm

const char* const QQC2::filedialog_end_xpm[]
static
Initial value:
={
"16 15 9 1",
"d c #a0a0a0",
"c c #c3c3c3",
"# c #cec6bd",
". c #000000",
"f c #ffff00",
"e c #999999",
"g c #cccccc",
"b c #ffffff",
"a c None",
"......####aaaaaa",
".bbbb..###aaaaaa",
".bbbb.c.##aaaaaa",
".bbbb....ddeeeea",
".bbbbbbb.bbbbbe.",
".bbbbbbb.bcfgfe.",
"eeeeeeeeeeeeefe.",
"ebbbbbbbbbbeege.",
"ebfgfgfgfgff.ee.",
"aebfgfgfgfgfg.e.",
"aebgfgfgfgfgf.e.",
"aaebgfgfgfgffe..",
"aaeeeeeeeeeeeee.",
"aaa.............",
"aaaaaaaaaaaaaaaa"}

Definition at line 100 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ filedialog_start_xpm

const char* const QQC2::filedialog_start_xpm[]
static
Initial value:
={
"16 15 8 1",
"a c #cec6bd",
"# c #000000",
"e c #ffff00",
"b c #999999",
"f c #cccccc",
"d c #dcdcdc",
"c c #ffffff",
". c None",
".....######aaaaa",
"...bb#cccc##aaaa",
"..bcc#cccc#d#aaa",
".bcef#cccc#dd#aa",
".bcfe#cccc#####a",
".bcef#ccccccccc#",
"bbbbbbbbbbbbccc#",
"bccccccccccbbcc#",
"bcefefefefee#bc#",
".bcefefefefef#c#",
".bcfefefefefe#c#",
"..bcfefefefeeb##",
"..bbbbbbbbbbbbb#",
"...#############",
"................"}

Definition at line 74 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ information_xpm

const char* const QQC2::information_xpm[]
static

Definition at line 339 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ QStyleOptionDockWidgetV2

Q_DECL_DEPRECATED typedef QStyleOptionDockWidget QQC2::QStyleOptionDockWidgetV2

Definition at line 380 of file qquickstyleoption.h.

◆ QStyleOptionFrameV2

Q_DECL_DEPRECATED typedef QStyleOptionFrame QQC2::QStyleOptionFrameV2

Definition at line 126 of file qquickstyleoption.h.

◆ QStyleOptionFrameV3

Q_DECL_DEPRECATED typedef QStyleOptionFrame QQC2::QStyleOptionFrameV3

Definition at line 127 of file qquickstyleoption.h.

◆ QStyleOptionTabV2

Q_DECL_DEPRECATED typedef QStyleOptionTab QQC2::QStyleOptionTabV2

Definition at line 278 of file qquickstyleoption.h.

◆ QStyleOptionTabV3

Q_DECL_DEPRECATED typedef QStyleOptionTab QQC2::QStyleOptionTabV3

Definition at line 279 of file qquickstyleoption.h.

◆ QStyleOptionTabWidgetFrameV2

Q_DECL_DEPRECATED typedef QStyleOptionTabWidgetFrame QQC2::QStyleOptionTabWidgetFrameV2

Definition at line 191 of file qquickstyleoption.h.

◆ QStyleOptionToolBoxV2

Q_DECL_DEPRECATED typedef QStyleOptionToolBox QQC2::QStyleOptionToolBoxV2

Definition at line 461 of file qquickstyleoption.h.

◆ qt_close_xpm

const char* const QQC2::qt_close_xpm[]
static
Initial value:
= {
"10 10 2 1",
"# c #000000",
". c None",
"..........",
".##....##.",
"..##..##..",
"...####...",
"....##....",
"...####...",
"..##..##..",
".##....##.",
"..........",
".........."}

Definition at line 220 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ qt_help_xpm

const char* const QQC2::qt_help_xpm[]
static
Initial value:
= {
"10 10 2 1",
". c None",
"# c #000000",
"..........",
"..######..",
".##....##.",
"......##..",
".....##...",
"....##....",
"....##....",
"..........",
"....##....",
".........."}

Definition at line 280 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ qt_maximize_xpm

const char* const QQC2::qt_maximize_xpm[]
static
Initial value:
={
"10 10 2 1",
"# c #000000",
". c None",
"#########.",
"#########.",
"#.......#.",
"#.......#.",
"#.......#.",
"#.......#.",
"#.......#.",
"#.......#.",
"#########.",
".........."}

Definition at line 235 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ qt_menu_xpm

const char* const QQC2::qt_menu_xpm[]
static

Definition at line 129 of file qquickcommonstylepixmaps_p.h.

◆ qt_minimize_xpm

const char* const QQC2::qt_minimize_xpm[]
static
Initial value:
= {
"10 10 2 1",
"# c #000000",
". c None",
"..........",
"..........",
"..........",
"..........",
"..........",
"..........",
"..........",
".#######..",
".#######..",
".........."}

Definition at line 250 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ qt_normalizeup_xpm

const char* const QQC2::qt_normalizeup_xpm[]
static
Initial value:
= {
"10 10 2 1",
"# c #000000",
". c None",
"...######.",
"...######.",
"...#....#.",
".######.#.",
".######.#.",
".#....###.",
".#....#...",
".#....#...",
".######...",
".........."}

Definition at line 265 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ qt_shade_xpm

const char* const QQC2::qt_shade_xpm[]
static
Initial value:
= {
"10 10 2 1",
"# c #000000",
". c None",
"..........",
"..........",
"..........",
"..........",
"....#.....",
"...###....",
"..#####...",
".#######..",
"..........",
".........."}

Definition at line 295 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ qt_unshade_xpm

const char* const QQC2::qt_unshade_xpm[]
static
Initial value:
= {
"10 10 2 1",
"# c #000000",
". c None",
"..........",
"..........",
"..........",
".#######..",
"..#####...",
"...###....",
"....#.....",
"..........",
"..........",
".........."}

Definition at line 310 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ question_xpm

const char* const QQC2::question_xpm[]
static

Definition at line 457 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ tb_extension_arrow_h_xpm

const char* const QQC2::tb_extension_arrow_h_xpm[]
static
Initial value:
= {
"8 5 3 1",
" c None",
". c #000000",
"+ c none",
"..++..++",
"+..++..+",
"++..++..",
"+..++..+",
"..++..++",
}

Definition at line 62 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ tb_extension_arrow_v_xpm

const char* const QQC2::tb_extension_arrow_v_xpm[]
static
Initial value:
= {
"5 8 3 1",
" c None",
". c #000000",
"+ c none",
".+++.",
"..+..",
"+...+",
"++.++",
".+++.",
"..+..",
"+...+",
"++.++"
}

Definition at line 47 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ themeNames

const wchar_t* QQC2::themeNames[QWindowsXPStylePrivate::NThemes]
static
Initial value:
=
{
L"BUTTON", L"COMBOBOX", L"EDIT", L"HEADER", L"LISTVIEW",
L"MENU", L"PROGRESS", L"REBAR", L"SCROLLBAR", L"SPIN",
L"TAB", L"TASKDIALOG", L"TOOLBAR", L"TOOLTIP", L"TRACKBAR",
L"TREEVIEW", L"WINDOW", L"STATUS", L"TREEVIEW"
}

Definition at line 32 of file qquickwindowsxpstyle.cpp.

Referenced by QQC2::QWindowsXPStylePrivate::createTheme(), and QQC2::QWindowsXPStylePrivate::themeName().

◆ warning_xpm

const char* const QQC2::warning_xpm[]
static

Definition at line 379 of file qquickcommonstylepixmaps_p.h.

Referenced by QQC2::QCommonStyle::standardPixmap().

◆ windowsArrowHMargin

const int QQC2::windowsArrowHMargin = 6
static

Definition at line 28 of file qquickwindowsxpstyle.cpp.

Referenced by QQC2::QWindowsXPStyle::drawControl().

◆ windowsItemFrame

const int QQC2::windowsItemFrame = 2
static

Definition at line 25 of file qquickwindowsxpstyle.cpp.

Referenced by QQC2::QWindowsXPStyle::drawControl().

◆ windowsItemHMargin

const int QQC2::windowsItemHMargin = 3
static

◆ windowsItemVMargin

const int QQC2::windowsItemVMargin = 0
static

Definition at line 27 of file qquickwindowsxpstyle.cpp.

Referenced by QQC2::QWindowsXPStyle::drawControl().

◆ windowsRightBorder

const int QQC2::windowsRightBorder = 12
static

Definition at line 29 of file qquickwindowsxpstyle.cpp.

Referenced by QQC2::QWindowsXPStyle::drawControl().