summaryrefslogtreecommitdiffstats
path: root/tests/manual/diaglib/qwidgetdump.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-06-08 11:24:06 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-06-11 07:55:08 +0000
commit0b8cb39d341eee30f806a8bf7bb2b77650086d8a (patch)
treea31376e815fc7a74e52379202c03c4edc7f83d88 /tests/manual/diaglib/qwidgetdump.cpp
parent2cb4b7e947f64580592afaf221d4b261d980bb45 (diff)
Diaglib: Output window/widget state(s).
Change-Id: I0f27027c95ed70a0b2992c58df7e12eddfad17e3 Task-number: QTBUG-46416 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Diffstat (limited to 'tests/manual/diaglib/qwidgetdump.cpp')
-rw-r--r--tests/manual/diaglib/qwidgetdump.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/diaglib/qwidgetdump.cpp b/tests/manual/diaglib/qwidgetdump.cpp
index 432e651678..f057a58ff0 100644
--- a/tests/manual/diaglib/qwidgetdump.cpp
+++ b/tests/manual/diaglib/qwidgetdump.cpp
@@ -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 << ' ';