diff options
| author | Friedemann Kleint <[email protected]> | 2015-06-08 11:24:06 +0200 |
|---|---|---|
| committer | Friedemann Kleint <[email protected]> | 2015-06-11 07:55:08 +0000 |
| commit | 0b8cb39d341eee30f806a8bf7bb2b77650086d8a (patch) | |
| tree | a31376e815fc7a74e52379202c03c4edc7f83d88 /tests/manual/diaglib/qwidgetdump.cpp | |
| parent | 2cb4b7e947f64580592afaf221d4b261d980bb45 (diff) | |
Diaglib: Output window/widget state(s).
Change-Id: I0f27027c95ed70a0b2992c58df7e12eddfad17e3
Task-number: QTBUG-46416
Reviewed-by: Friedemann Kleint <[email protected]>
Diffstat (limited to 'tests/manual/diaglib/qwidgetdump.cpp')
| -rw-r--r-- | tests/manual/diaglib/qwidgetdump.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/manual/diaglib/qwidgetdump.cpp b/tests/manual/diaglib/qwidgetdump.cpp index 432e6516780..f057a58ff02 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 << ' '; |
