4#ifndef QGRAPHICSWIDGET_P_H
5#define QGRAPHICSWIDGET_P_H
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
19#include <private/qobject_p.h>
22#include <QtGui/qfont.h>
23#include <QtGui/qpalette.h>
24#include <QtWidgets/qsizepolicy.h>
25#include <QtWidgets/qstyle.h>
34class QStyleOptionTitleBar;
38 Q_DECLARE_PUBLIC(QGraphicsWidget)
43 void init(QGraphicsItem *parentItem, Qt::WindowFlags wFlags);
97 case Qt::WA_SetLayoutDirection: bit = 0;
break;
98 case Qt::WA_RightToLeft: bit = 1;
break;
99 case Qt::WA_SetStyle: bit = 2;
break;
100 case Qt::WA_Resized: bit = 3;
break;
101 case Qt::WA_DeleteOnClose: bit = 4;
break;
102 case Qt::WA_NoSystemBackground: bit = 5;
break;
103 case Qt::WA_OpaquePaintEvent: bit = 6;
break;
104 case Qt::WA_SetPalette: bit = 7;
break;
105 case Qt::WA_SetFont: bit = 8;
break;
106 case Qt::WA_WindowPropagation: bit = 9;
break;
113 int bit = attributeToBitIndex(att);
115 qWarning(
"QGraphicsWidget::setAttribute: unsupported attribute %d",
int(att));
119 attributes |= (1 << bit);
121 attributes &= ~(1 << bit);
125 int bit = attributeToBitIndex(att);
128 return (attributes & (1 << bit)) != 0;
static bool g_instantInvalidatePropagation
QT_REQUIRE_CONFIG(graphicsview)