5#ifndef QGRAPHICSWIDGET_P_H
6#define QGRAPHICSWIDGET_P_H
19#include <QtWidgets/private/qtwidgetsglobal_p.h>
20#include <private/qobject_p.h>
23#include <QtGui/qfont.h>
24#include <QtGui/qpalette.h>
25#include <QtWidgets/qsizepolicy.h>
26#include <QtWidgets/qstyle.h>
35class QStyleOptionTitleBar;
39 Q_DECLARE_PUBLIC(QGraphicsWidget)
44 void init(QGraphicsItem *parentItem, Qt::WindowFlags wFlags);
98 case Qt::WA_SetLayoutDirection: bit = 0;
break;
99 case Qt::WA_RightToLeft: bit = 1;
break;
100 case Qt::WA_SetStyle: bit = 2;
break;
101 case Qt::WA_Resized: bit = 3;
break;
102 case Qt::WA_DeleteOnClose: bit = 4;
break;
103 case Qt::WA_NoSystemBackground: bit = 5;
break;
104 case Qt::WA_OpaquePaintEvent: bit = 6;
break;
105 case Qt::WA_SetPalette: bit = 7;
break;
106 case Qt::WA_SetFont: bit = 8;
break;
107 case Qt::WA_WindowPropagation: bit = 9;
break;
114 int bit = attributeToBitIndex(att);
116 qWarning(
"QGraphicsWidget::setAttribute: unsupported attribute %d",
int(att));
120 attributes |= (1 << bit);
122 attributes &= ~(1 << bit);
126 int bit = attributeToBitIndex(att);
129 return (attributes & (1 << bit)) != 0;
static bool g_instantInvalidatePropagation
QT_REQUIRE_CONFIG(graphicsview)