Changeset 1006
- Timestamp:
- Aug 19, 2011, 12:27:58 AM (14 years ago)
- Location:
- trunk/src/gui/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qapplication_pm.cpp
r938 r1006 2639 2639 *****************************************************************************/ 2640 2640 2641 QDebug operator<<(QDebug debug, const QDebugHWND &d) 2642 { 2643 debug << qDebugFmtHex(d.hwnd) << qt_widget_from_hwnd(d.hwnd); 2641 Q_GUI_EXPORT QDebug operator<<(QDebug debug, const QDebugHWND &d) 2642 { 2643 QETWidget *w = (QETWidget *)qt_widget_from_hwnd(d.hwnd); 2644 debug << qDebugFmtHex(d.hwnd) << w; 2645 if (w && w->internalWinId() != w->frameWinId()) { 2646 if (w->internalWinId() == d.hwnd) 2647 debug.nospace() << "(frame " << qDebugFmtHex(w->frameWinId()) << ")"; 2648 else if (w->frameWinId() == d.hwnd) 2649 debug.nospace() << "(client " << qDebugFmtHex(w->internalWinId()) << ")"; 2650 } 2644 2651 return debug; 2645 2652 } 2646 2653 2647 Q Debug operator<<(QDebug debug, const QDebugHRGN &d)2654 QDebug operator<<(QDebug debug, const QDebugHRGN &d) 2648 2655 { 2649 2656 RGNRECT ctl; … … 2666 2673 } 2667 2674 2668 Q Debug operator<<(QDebug debug, const RECTL &rcl)2675 QDebug operator<<(QDebug debug, const RECTL &rcl) 2669 2676 { 2670 2677 debug.nospace() << "RECTL(" << rcl.xLeft << "," << rcl.yBottom … … 2680 2687 #define myDefFlagCut(var,fl,varstr,pos) myDefFlagEx(var,fl,varstr,#fl + pos) 2681 2688 2682 Q Debug operator<<(QDebug debug, const SWP &swp)2689 QDebug operator<<(QDebug debug, const SWP &swp) 2683 2690 { 2684 2691 QByteArray fl; … … 2707 2714 } 2708 2715 2709 Q Debug operator<<(QDebug debug, const QMSG &qmsg)2716 QDebug operator<<(QDebug debug, const QMSG &qmsg) 2710 2717 { 2711 2718 #define myCaseBegin(a) case a: { \ -
trunk/src/gui/kernel/qwindowdefs_pm.h
r750 r1006 111 111 struct QDebugHWND { HWND hwnd; }; 112 112 inline QDebugHWND qDebugHWND(HWND hwnd) { QDebugHWND d = { hwnd }; return d; } 113 Q Debug operator<<(QDebug debug, const QDebugHWND &d);113 QDebug operator<<(QDebug debug, const QDebugHWND &d); 114 114 115 115 struct QDebugHRGN { HRGN hrgn; }; 116 116 inline QDebugHRGN qDebugHRGN(HRGN hrgn) { QDebugHRGN d = { hrgn }; return d; } 117 Q Debug operator<<(QDebug debug, const QDebugHRGN &d);117 QDebug operator<<(QDebug debug, const QDebugHRGN &d); 118 118 119 119 // the following declarations require OS/2 types not defined here, … … 121 121 #if defined(QT_OS2_H) 122 122 123 Q Debug operator<<(QDebug debug, const RECTL &rcl);124 Q Debug operator<<(QDebug debug, const SWP &swp);125 Q Debug operator<<(QDebug debug, const QMSG &qmsg);123 QDebug operator<<(QDebug debug, const RECTL &rcl); 124 QDebug operator<<(QDebug debug, const SWP &swp); 125 QDebug operator<<(QDebug debug, const QMSG &qmsg); 126 126 127 127 #endif // defined(QT_OS2_H)
Note:
See TracChangeset
for help on using the changeset viewer.