Diaglib: Output window/widget state(s).
Change-Id: I0f27027c95ed70a0b2992c58df7e12eddfad17e3 Task-number: QTBUG-46416 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
This commit is contained in:
parent
2cb4b7e947
commit
0b8cb39d34
@ -58,6 +58,8 @@ static void dumpWidgetRecursion(QTextStream &str, const QWidget *w,
|
||||
str << (w->testAttribute(Qt::WA_Mapped) ? "[mapped] " : "[not mapped] ");
|
||||
if (w->testAttribute(Qt::WA_DontCreateNativeAncestors))
|
||||
str << "[NoNativeAncestors] ";
|
||||
if (const int states = w->windowState())
|
||||
str << "windowState=" << hex << showbase << states << dec << noshowbase << ' ';
|
||||
formatRect(str, w->geometry());
|
||||
if (!(options & DontPrintWindowFlags)) {
|
||||
str << ' ';
|
||||
|
@ -131,6 +131,8 @@ void formatWindow(QTextStream &str, const QWindow *w, FormatWindowOptions option
|
||||
str << "[top] ";
|
||||
if (w->isExposed())
|
||||
str << "[exposed] ";
|
||||
if (const Qt::WindowState state = w->windowState())
|
||||
str << "windowState=" << state << ' ';
|
||||
formatRect(str, w->geometry());
|
||||
if (!(options & DontPrintWindowFlags)) {
|
||||
str << ' ';
|
||||
|
Loading…
Reference in New Issue
Block a user