Changeset 438 for trunk/src/gui


Ignore:
Timestamp:
Dec 24, 2009, 3:29:44 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: First DnD bits.

Location:
trunk/src/gui/kernel
Files:
4 edited

Legend:

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

    r437 r438  
    701701#define SV_WORKAREA_XRIGHT  53
    702702#define SV_WORKAREA_XLEFT   54
     703
     704
     705
     706
    703707
    704708/*!
  • trunk/src/gui/kernel/qdnd.cpp

    r2 r438  
    100100"........aa."};
    101101
    102 #ifdef Q_WS_WIN
     102#if
    103103/* XPM */
    104104static const char * const ignore_xpm[] = {
    105105"24 30 3 1",
    106106".        c None",
     107
    107108"a        c #000000",
    108 "X        c #FFFFFF",
     109"X        c #FFFFFF", // Windows cursor is traditionally white
     110#else
     111"a        c #FFFFFF",
     112"X        c #000000", // OS/2 cursor is traditionally black
     113#endif
    109114"aa......................",
    110115"aXa.....................",
     
    327332    Q_ASSERT(!instance);
    328333
    329 #ifdef Q_WS_WIN
     334#if
    330335    n_cursor = 4;
    331336#else
     
    340345    pm_cursor[1] = QPixmap((const char **)copy_xpm);
    341346    pm_cursor[2] = QPixmap((const char **)link_xpm);
    342 #ifdef Q_WS_WIN
     347#if
    343348    pm_cursor[3] = QPixmap((const char **)ignore_xpm);
    344349#endif
     
    487492    : QInternalMimeData()
    488493{
     494
     495
     496
    489497}
    490498
  • trunk/src/gui/kernel/qdnd_p.h

    r2 r438  
    185185};
    186186
     187
     188
     189
     190
    187191class QDropData : public QInternalMimeData
    188192{
     
    200204public:
    201205    LPDATAOBJECT currentDataObject;
     206
     207
     208
    202209#endif
    203210};
  • trunk/src/gui/kernel/qdnd_pm.cpp

    r107 r438  
    5151#include "qdatastream.h"
    5252#include "qcursor.h"
    53 #include "qt_os2.h"
     53#include "q.h"
    5454#include "qdnd_p.h"
    5555#include "qdebug.h"
    5656
     57
     58
    5759QT_BEGIN_NAMESPACE
    5860
    5961#if !defined(QT_NO_DRAGANDDROP) && !defined(QT_NO_CLIPBOARD)
     62
     63
     64
     65
     66
     67
     68
     69
     70
     71
     72
     73
     74
     75
     76
     77
     78
     79
     80
     81
     82
     83
     84
     85
     86
     87
     88
     89
     90
     91
     92
     93
     94
     95
     96
     97
     98
     99
     100
     101
     102
     103
     104
     105
     106
     107
     108
     109
     110
     111
     112
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
     161
     162
     163
     164
     165
     166
     167
     168
     169
     170
     171
     172
     173
     174
     175