Changeset 120 for trunk/src/gui/kernel/qwindowdefs_pm.h
- Timestamp:
- Aug 18, 2009, 4:30:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwindowdefs_pm.h
r113 r120 68 68 #define NULLHANDLE ((LHANDLE)0) 69 69 70 Q_GUI_EXPORT HPS qt_display_ps();71 72 70 // constants to address extra window data 73 71 #define QWL_QTCLIPRGN (QWL_USER) … … 77 75 QT_BEGIN_NAMESPACE 78 76 77 class QWidget; 78 79 Q_GUI_EXPORT HPS qt_display_ps(); 80 81 Q_GUI_EXPORT QWidget *qWidgetFromHWND(HWND hwnd); 82 83 // For printing non-quoted QString's with QDebug 84 struct Q_CORE_EXPORT QDbgStr: public QString 85 { 86 inline QDbgStr(const QString &str) : QString(str) {} 87 }; 88 89 Q_GUI_EXPORT QDbgStr qWidgetName(QWidget *w); 90 inline QDbgStr qWidgetName(HWND hwnd) 91 { return qWidgetName(qWidgetFromHWND(hwnd)); } 92 93 Q_CORE_EXPORT QDbgStr qStrHWND(HWND hwnd); 94 Q_CORE_EXPORT QDbgStr qStrHPS(HPS hps); 95 Q_CORE_EXPORT QDbgStr qStrHPOINTER(HPOINTER hptr); 96 Q_CORE_EXPORT QDbgStr qStrHRGN(HRGN hrgn); 97 98 Q_CORE_EXPORT QDbgStr qStrQMSG(const QMSG &qmsg); 99 100 // the following declarations require OS/2 types not defined here, 101 // we don't drag them in but require qt_os2.h to be included before 102 #if defined(QT_OS2_H) 103 104 Q_CORE_EXPORT QDbgStr qStrRECTL(const RECTL &rcl); 105 106 #endif // defined(QT_OS2_H) 107 108 // don't drag qdebug.h as well but require it to be included before 109 #if defined(QDEBUG_H) && !defined(QT_NO_DEBUG_STREAM) 110 111 // Prints a non-quoted QString 112 inline QDebug operator<<(QDebug dbg, const QDbgStr &str) 113 { dbg << str.utf8().constData(); return dbg; } 114 115 inline QDebug operator<<(QDebug dbg, const RECTL &rcl) 116 { dbg << qStrRECTL(rcl); return dbg; } 117 118 #endif // defined(QDEBUG_H) && !defined(QT_NO_DEBUG_STREAM) 119 79 120 QT_END_NAMESPACE 80 121
Note:
See TracChangeset
for help on using the changeset viewer.