Changeset 89 for trunk/src


Ignore:
Timestamp:
Jul 27, 2009, 10:25:33 PM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

OS/2: Move QPMObjectWindow declaration to QtCore/private/qpmobjectwindow_pm_p.h (to avoid qwindowdefs_pm.h misuse). Refer to qwindowdefs_pm.h from qwindowdefs.h.

Location:
trunk/src
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/kernel/qeventdispatcher_pm.cpp

    r85 r89  
    5656#include "qabstracteventdispatcher_p.h"
    5757#include "qcoreapplication_p.h"
     58
    5859
    5960#include <private/qthread_p.h>
    6061#include <private/qmutexpool_p.h>
    61 
    62 #include <Qt/qwindowdefs_pm.h> // for QPMObjectWindow declaration
    6362
    6463#include <sys/socket.h>
     
    7271/*****************************************************************************
    7372  Auxiliary object window class for dedicated message processing.
    74   Declared in qwindowdefs_pm.h
     73  Declared in q.h
    7574 *****************************************************************************/
    7675
    7776/*!
    78     \class QPMObjectWindow qwindowdefs.h
     77    \class QPMObjectWindow
    7978
    8079    The QPMObjectWindow class is an auxiliary class for dedicated message
  • trunk/src/corelib/kernel/qeventdispatcher_pm_p.h

    r84 r89  
    5757
    5858#include "QtCore/qabstracteventdispatcher.h"
    59 #include "QtCore/qt_os2.h"
    6059
    6160QT_BEGIN_NAMESPACE
  • trunk/src/gui/kernel/qwindowdefs.h

    r2 r89  
    111111#endif // Q_WS_WIN
    112112
     113
     114
     115
     116
    113117#if defined(Q_WS_X11)
    114118
  • trunk/src/gui/kernel/qwindowdefs_pm.h

    r67 r89  
    5555QT_END_NAMESPACE
    5656
     57
     58
     59
     60
    5761typedef HWND WId;
    5862
    5963QT_BEGIN_NAMESPACE
    60 
    61 class Q_CORE_EXPORT QPMObjectWindow
    62 {
    63 public:
    64     QPMObjectWindow(bool deferred = false);
    65     virtual ~QPMObjectWindow();
    66 
    67     bool create();
    68     bool destroy();
    69     HWND hwnd() const { return w; }
    70 
    71     MRESULT send(ULONG msg, MPARAM mp1, MPARAM mp2) const {
    72         return WinSendMsg(w, msg, mp1, mp2);
    73     }
    74 
    75     bool post(ULONG msg, MPARAM mp1, MPARAM mp2) const {
    76         return WinPostMsg(w, msg, mp1, mp2);
    77     }
    78 
    79     virtual MRESULT message(ULONG msg, MPARAM mp1, MPARAM mp2) = 0;
    80 
    81 private:
    82     static MRESULT EXPENTRY windowProc(HWND, ULONG, MPARAM, MPARAM);
    83 
    84     HWND w;
    85 };
    8664
    8765QT_END_NAMESPACE
Note: See TracChangeset for help on using the changeset viewer.