4#ifndef QCOMMONSTYLE_P_H
5#define QCOMMONSTYLE_P_H
7#include <QtWidgets/private/qtwidgetsglobal_p.h>
11#if QT_CONFIG(animation)
45#if QT_CONFIG(animation)
48#if QT_CONFIG(itemviews)
56 bool lastVisibleLineShouldBeElided,
QPointF *paintStartPosition)
const;
57#if QT_CONFIG(itemviews)
59 void viewItemLayout(
const QStyleOptionViewItem *
opt,
QRect *checkRect,
61 QSize viewItemSize(
const QStyleOptionViewItem *
option,
int role)
const;
63 mutable QRect decorationRect, displayRect, checkRect;
64 mutable QStyleOptionViewItem *cachedOption;
65 bool isViewItemCached(
const QStyleOptionViewItem &
option)
const {
66 return cachedOption && (
option.widget == cachedOption->widget
67 &&
option.index == cachedOption->index
68 &&
option.state == cachedOption->state
69 &&
option.rect == cachedOption->rect
70 &&
option.text == cachedOption->text
71 &&
option.direction == cachedOption->direction
72 &&
option.displayAlignment == cachedOption->displayAlignment
73 &&
option.decorationAlignment == cachedOption->decorationAlignment
74 &&
option.decorationPosition == cachedOption->decorationPosition
75 &&
option.decorationSize == cachedOption->decorationSize
76 &&
option.features == cachedOption->features
77 &&
option.icon.isNull() == cachedOption->icon.isNull()
78 &&
option.font == cachedOption->font
79 &&
option.viewItemPosition == cachedOption->viewItemPosition
80 &&
option.showDecorationSelected == cachedOption->showDecorationSelected);
83#if QT_CONFIG(toolbutton)
94#if QT_CONFIG(animation)
95 void _q_removeAnimation();
QIcon tabBarcloseButtonIcon
The QCommonStyle class encapsulates the common Look and Feel of a GUI.
The QIcon class provides scalable icons in different modes and states.
The QPainter class performs low-level painting on widgets and other paint devices.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
qDeleteAll(list.begin(), list.end())
Combined button and popup list for selecting options.
static void stopAnimation(QObject *object)
#define QT_CONFIG(feature)
if(qFloatDistance(a, b)<(1<< 7))
[0]