qt5base-lts/tests/manual/diaglib
Friedemann Kleint 9720efbd10 Diaglib: Add class DebugProxyStyle.
Add a debug proxy style that wraps around an existing style and outputs
the parameters and return values of its function calls, for debugging
QStyle.

Task-number: QTBUG-47084
Task-number: QTBUG-45055
Change-Id: I638618e83bbac8ca4fdce31441bf4c913e911154
Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
2015-10-23 07:47:44 +00:00
..
debugproxystyle.cpp Diaglib: Add class DebugProxyStyle. 2015-10-23 07:47:44 +00:00
debugproxystyle.h Diaglib: Add class DebugProxyStyle. 2015-10-23 07:47:44 +00:00
diaglib.pri Diaglib: Add class DebugProxyStyle. 2015-10-23 07:47:44 +00:00
eventfilter.cpp Diaglib: Output QGuiApplication::focusObject() in focus changes, too. 2015-09-15 13:24:14 +00:00
eventfilter.h Diaglib: Add gesture events to event filter. 2015-03-20 12:27:21 +00:00
glinfo.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
glinfo.h Update copyright headers 2015-02-11 06:49:51 +00:00
nativewindowdump_win.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
nativewindowdump.cpp Update copyright headers 2015-02-11 06:49:51 +00:00
nativewindowdump.h Update copyright headers 2015-02-11 06:49:51 +00:00
qwidgetdump.cpp Diaglib: Output window/widget state(s). 2015-06-11 07:55:08 +00:00
qwidgetdump.h Update copyright headers 2015-02-11 06:49:51 +00:00
qwindowdump.cpp Diaglib: Output window/widget state(s). 2015-06-11 07:55:08 +00:00
qwindowdump.h Update copyright headers 2015-02-11 06:49:51 +00:00
README.txt Diaglib: Add class DebugProxyStyle. 2015-10-23 07:47:44 +00:00
textdump.cpp [DiagLib] Sync QChar enums 2015-05-01 05:35:46 +00:00
textdump.h Update copyright headers 2015-02-11 06:49:51 +00:00

This is a collection of functions and classes helpful for diagnosing bugs
in Qt 4 and Qt 5. It can be included in the application's .pro file by
adding:

include([path to Qt sources]/tests/manual/diaglib/diaglib.pri)

For Qt 4, the environment variable QTDIR may be used:
include($$(QTDIR)/tests/manual/diaglib/diaglib.pri)

The .pri file adds the define QT_DIAG_LIB, so, diagnostic
code can be enlosed within #ifdef to work without it as well.

All functions and classes are in the QtDiag namespace.

function dumpText() (textdump.h)
  Returns a string containing the input text split up in characters
  listing category, script, direction etc.
  Useful for analyzing non-Latin text.

function  dumpTextAsCode() (textdump.h)
   Returns a string containing a code snippet creating a QString
   by appending the unicode value of character of the input.
   This is useful for constructing non-Latin strings with purely ASCII
   source code.

class EventFilter (eventfilter.h):
  An event filter that logs Qt events to qDebug() depending on
  configured categories (for example mouse, keyboard, etc).

class DebugProxyStyle (debugproxystyle.h)
  A proxy style that wraps around an existing style and outputs
  the parameters and return values of its function calls, useful
  for debugging QStyle.

function glInfo() (glinfo.h):
  Returns a string describing the Open GL configuration (obtained
  by querying GL_VENDOR and GL_RENDERER). Available only
  when the QT qmake variable contains opengl.

functions dumpNativeWindows(), dumpNativeQtTopLevels():
  These functions du,p out the hierarchy of native Windows. Currently
  implemented for Windows only.

function dumpAllWidgets() (qwidgetdump.h):
  Dumps the hierarchy of QWidgets including information about flags,
  visibility, geometry, etc.

function dumpAllWindows() (qwindowdump.h):
  Dumps the hierarchy of QWindows including information about flags,
  visibility, geometry, etc.