Ignore:
Timestamp:
Aug 19, 2011, 12:27:58 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

OS/2: Export platform-specific qDebug() helpers.

This lets them be used in application code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qapplication_pm.cpp

    r938 r1006  
    26392639 *****************************************************************************/
    26402640
    2641 QDebug operator<<(QDebug debug, const QDebugHWND &d)
    2642 {
    2643     debug << qDebugFmtHex(d.hwnd) << qt_widget_from_hwnd(d.hwnd);
     2641Q_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    }
    26442651    return debug;
    26452652}
    26462653
    2647 QDebug operator<<(QDebug debug, const QDebugHRGN &d)
     2654QDebug operator<<(QDebug debug, const QDebugHRGN &d)
    26482655{
    26492656    RGNRECT ctl;
     
    26662673}
    26672674
    2668 QDebug operator<<(QDebug debug, const RECTL &rcl)
     2675QDebug operator<<(QDebug debug, const RECTL &rcl)
    26692676{
    26702677    debug.nospace() << "RECTL(" << rcl.xLeft << "," << rcl.yBottom
     
    26802687#define myDefFlagCut(var,fl,varstr,pos) myDefFlagEx(var,fl,varstr,#fl + pos)
    26812688
    2682 QDebug operator<<(QDebug debug, const SWP &swp)
     2689QDebug operator<<(QDebug debug, const SWP &swp)
    26832690{
    26842691    QByteArray fl;
     
    27072714}
    27082715
    2709 QDebug operator<<(QDebug debug, const QMSG &qmsg)
     2716QDebug operator<<(QDebug debug, const QMSG &qmsg)
    27102717{
    27112718    #define myCaseBegin(a) case a: { \
Note: See TracChangeset for help on using the changeset viewer.