Ignore:
Timestamp:
Feb 19, 2010, 12:29:57 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Removed qmime.h dependency on private qpmobjectwindow_pm_p.h and on qt_os2.h (which drags in non-portable OS/2 API).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qmime.h

    r561 r580  
    115115*/
    116116
    117 QT_END_NAMESPACE
    118 #include "qt_os2.h"
    119 #if !defined(QT_NO_DRAGANDDROP)
    120 # include "private/qpmobjectwindow_pm_p.h"
    121 #endif
    122 QT_BEGIN_NAMESPACE
     117QT_BEGIN_INCLUDE_NAMESPACE
     118
     119#include "qwindowdefs_pm.h"
     120typedef LHANDLE HSTR;
     121typedef struct _DRAGINFO DRAGINFO;
     122typedef struct _DRAGITEM DRAGITEM;
     123
     124QT_END_INCLUDE_NAMESPACE
    123125
    124126class QPMDragData;
     
    162164    };
    163165
    164     class DefaultDragWorker : public DragWorker, public QPMObjectWindow
     166    class DefaultDragWorker : public DragWorker
    165167    {
    166168    private:
     
    173175        bool isExclusive() const;
    174176        ULONG itemCount() const;
    175         HWND hwnd() const { return QPMObjectWindow::hwnd(); }
     177        HWND hwnd() const;
    176178        QByteArray composeFormatString();
    177179        bool prepare(const char *drm, const char *drf, DRAGITEM *item,
    178180                     ULONG itemIndex);
    179181        void defaultFileType(QString &type, QString &ext);
    180 
    181         // QPMObjectWindow interface
    182         MRESULT message(ULONG msg, MPARAM mp1, MPARAM mp2);
    183182
    184183        class Provider
     
    224223    };
    225224
    226     class DefaultDropWorker : public DropWorker, public QPMObjectWindow
     225    class DefaultDropWorker : public DropWorker
    227226    {
    228227    private:
     
    238237        QVariant retrieveData(const QString &mimeType,
    239238                              QVariant::Type preferredType) const;
    240 
    241         // QPMObjectWindow interface
    242         MRESULT message(ULONG msg, MPARAM mp1, MPARAM mp2);
    243239
    244240        class Provider
Note: See TracChangeset for help on using the changeset viewer.