Changeset 95 for trunk/src/gui
- Timestamp:
- Jul 31, 2009, 1:13:57 AM (16 years ago)
- Location:
- trunk/src/gui
- Files:
-
- 13 added
- 18 edited
-
gui.pro (modified) (2 diffs)
-
image/image.pri (modified) (1 diff)
-
image/qpixmap.cpp (modified) (1 diff)
-
image/qpixmap_pm.cpp (added)
-
image/qpixmapdatafactory.cpp (modified) (2 diffs)
-
kernel/kernel.pri (modified) (1 diff)
-
kernel/qapplication.cpp (modified) (9 diffs)
-
kernel/qapplication_p.h (modified) (1 diff)
-
kernel/qapplication_pm.cpp (modified) (5 diffs)
-
kernel/qclipboard.cpp (modified) (8 diffs)
-
kernel/qclipboard_pm.cpp (added)
-
kernel/qcursor_pm.cpp (added)
-
kernel/qdesktopwidget_pm.cpp (added)
-
kernel/qdnd_pm.cpp (added)
-
kernel/qkeymapper_pm.cpp (added)
-
kernel/qsound_pm.cpp (added)
-
kernel/qwidget.cpp (modified) (6 diffs)
-
kernel/qwidget_p.h (modified) (1 diff)
-
kernel/qwidget_pm.cpp (modified) (1 diff)
-
painting/painting.pri (modified) (2 diffs)
-
painting/qcolormap_pm.cpp (added)
-
painting/qgraphicssystem.cpp (modified) (2 diffs)
-
painting/qpaintdevice_pm.cpp (added)
-
painting/qregion.cpp (modified) (2 diffs)
-
painting/qregion_pm.cpp (added)
-
text/qfont_pm.cpp (added)
-
text/qfontdatabase.cpp (modified) (2 diffs)
-
text/qfontdatabase_pm.cpp (added)
-
text/qfontengine_p.h (modified) (1 diff)
-
text/text.pri (modified) (1 diff)
-
util/qdesktopservices_pm.cpp (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/gui.pro
r92 r95 5 5 win32-msvc*|win32-icc:QMAKE_LFLAGS += /BASE:0x65000000 6 6 7 !win32:! embedded:!mac:CONFIG += x117 !win32:!embedded:!mac:CONFIG += x11 8 8 9 9 unix:QMAKE_PKGCONFIG_REQUIRES = QtCore … … 20 20 21 21 #modules 22 # @todo on OS/2, temporarily disable some modules until implemented 23 os2 { 24 include(kernel/kernel.pri) 25 } else { 26 include(kernel/kernel.pri) 27 include(image/image.pri) 28 include(painting/painting.pri) 29 include(text/text.pri) 30 include(styles/styles.pri) 31 include(widgets/widgets.pri) 32 include(dialogs/dialogs.pri) 33 include(accessible/accessible.pri) 34 include(itemviews/itemviews.pri) 35 include(inputmethod/inputmethod.pri) 36 include(graphicsview/graphicsview.pri) 37 include(util/util.pri) 38 } 22 include(kernel/kernel.pri) 23 include(image/image.pri) 24 include(painting/painting.pri) 25 include(text/text.pri) 26 include(styles/styles.pri) 27 include(widgets/widgets.pri) 28 include(dialogs/dialogs.pri) 29 include(accessible/accessible.pri) 30 include(itemviews/itemviews.pri) 31 include(inputmethod/inputmethod.pri) 32 include(graphicsview/graphicsview.pri) 33 include(util/util.pri) 39 34 40 35 embedded: QT += network -
trunk/src/gui/image/image.pri
r2 r95 50 50 win32 { 51 51 SOURCES += image/qpixmap_win.cpp 52 53 54 52 55 } 53 56 embedded { -
trunk/src/gui/image/qpixmap.cpp
r2 r95 1844 1844 #elif defined(Q_WS_WIN) 1845 1845 return 32; // XXX 1846 1847 1846 1848 #elif defined(Q_WS_MAC) 1847 1849 return 32; -
trunk/src/gui/image/qpixmapdatafactory.cpp
r2 r95 51 51 # include <private/qpixmap_raster_p.h> 52 52 #endif 53 54 55 53 56 #ifdef Q_WS_MAC 54 57 # include <private/qpixmap_mac_p.h> … … 78 81 #elif defined(Q_WS_WIN) 79 82 return new QRasterPixmapData(type); 83 84 80 85 #elif defined(Q_WS_MAC) 81 86 return new QMacPixmapData(type); -
trunk/src/gui/kernel/kernel.pri
r92 r95 92 92 93 93 os2 { 94 # @todo override everything since most things are not ready...95 HEADERS = \96 kernel/qapplication.h \97 kernel/qapplication_p.h \98 kernel/qwidget.h \99 kernel/qwidget_p.h100 SOURCES = \101 kernel/qapplication.cpp \102 kernel/qwidget.cpp103 104 94 SOURCES += \ 105 95 kernel/qapplication_pm.cpp \ 96 97 98 99 100 101 106 102 kernel/qwidget_pm.cpp 107 103 } -
trunk/src/gui/kernel/qapplication.cpp
r92 r95 127 127 QApplicationPrivate *QApplicationPrivate::self = 0; 128 128 129 129 130 QInputContext *QApplicationPrivate::inputContext; 131 130 132 131 133 bool QApplicationPrivate::quitOnLastWindowClosed = true; … … 2056 2058 focus_widget = focus; 2057 2059 2060 2058 2061 if (prev && ((reason != Qt::PopupFocusReason && reason != Qt::MenuBarFocusReason 2059 2062 && prev->testAttribute(Qt::WA_InputMethodEnabled)) … … 2068 2071 } 2069 2072 } 2073 2070 2074 2071 2075 if(focus_widget) … … 2089 2093 } 2090 2094 if(focus && QApplicationPrivate::focus_widget == focus) { 2095 2091 2096 if (focus->testAttribute(Qt::WA_InputMethodEnabled)) { 2092 2097 QInputContext *qic = focus->inputContext(); … … 2094 2099 qic->setFocusWidget( focus_widget ); 2095 2100 } 2101 2096 2102 QFocusEvent in(QEvent::FocusIn, reason); 2097 2103 QPointer<QWidget> that = focus; … … 4903 4909 void QApplication::setInputContext(QInputContext *inputContext) 4904 4910 { 4911 4905 4912 Q_D(QApplication); 4906 4913 Q_UNUSED(d);// only static members being used. … … 4912 4919 delete d->inputContext; 4913 4920 d->inputContext = inputContext; 4921 4914 4922 } 4915 4923 … … 4921 4929 QInputContext *QApplication::inputContext() const 4922 4930 { 4931 4923 4932 Q_D(const QApplication); 4924 4933 Q_UNUSED(d);// only static members being used. … … 4936 4945 #endif 4937 4946 return d->inputContext; 4947 4948 4949 4938 4950 } 4939 4951 -
trunk/src/gui/kernel/qapplication_p.h
r92 r95 317 317 } 318 318 #endif 319 319 320 static QInputContext *inputContext; 320 321 #endif 321 322 static Qt::MouseButtons mouse_buttons; 322 323 static Qt::KeyboardModifiers modifier_buttons; -
trunk/src/gui/kernel/qapplication_pm.cpp
r92 r95 82 82 static bool qt_try_modal(QWidget *, QMSG *, int& ret); 83 83 84 static QWidget *qt_button_down = 0; // widget got last button-down 84 QWidget *qt_button_down = 0; // widget got last button-down 85 QPointer<QWidget> qt_last_mouse_receiver = 0; 85 86 86 87 static HWND autoCaptureWnd = NULLHANDLE; … … 273 274 *****************************************************************************/ 274 275 276 277 278 279 280 275 281 /***************************************************************************** 276 282 Platform specific QApplication members … … 286 292 } 287 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 288 363 /***************************************************************************** 289 364 QApplication cursor stack 290 365 *****************************************************************************/ 291 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 292 381 /***************************************************************************** 293 382 Routines to find a Qt widget from a screen position 294 383 *****************************************************************************/ 295 384 385 386 387 388 389 390 296 391 /***************************************************************************** 297 392 Main event loop 298 393 *****************************************************************************/ 394 395 396 397 398 399 400 401 402 299 403 300 404 /***************************************************************************** … … 315 419 *****************************************************************************/ 316 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 317 437 /***************************************************************************** 318 438 Popup widget mechanism … … 329 449 *****************************************************************************/ 330 450 451 452 453 454 455 456 457 458 459 460 331 461 /***************************************************************************** 332 462 Event translation; translates PM events to Qt events -
trunk/src/gui/kernel/qclipboard.cpp
r2 r95 160 160 #endif 161 161 162 #if ndef Q_WS_WIN32162 #if 163 163 /*! 164 164 \internal … … 230 230 231 231 \value Selection indicates that data should be stored and retrieved from 232 the global mouse selection. Support for \c Selection is provided only on 232 the global mouse selection. Support for \c Selection is provided only on 233 233 systems with a global mouse selection (e.g. X11). 234 234 … … 346 346 image is retrieved from the global clipboard. If \a mode is 347 347 QClipboard::Selection, the image is retrieved from the global 348 mouse selection. 348 mouse selection. 349 349 350 350 \sa setImage() pixmap() mimeData(), QImage::isNull() … … 461 461 */ 462 462 463 /*! 463 /*! 464 464 \fn void QClipboard::clear(Mode mode) 465 465 Clear the clipboard contents. … … 469 469 function clears the the global clipboard contents. If \a mode is 470 470 QClipboard::Selection, this function clears the global mouse 471 selection contents. If \a mode is QClipboard::FindBuffer, this 471 selection contents. If \a mode is QClipboard::FindBuffer, this 472 472 function clears the search string buffer. 473 473 … … 562 562 } 563 563 564 /*! 564 /*! 565 565 \internal 566 566 \fn bool QClipboard::supportsMode(Mode mode) const; … … 569 569 */ 570 570 571 /*! 571 /*! 572 572 \internal 573 573 \fn bool QClipboard::ownsMode(Mode mode) const; … … 576 576 */ 577 577 578 /*! 578 /*! 579 579 \internal 580 580 Emits the appropriate changed signal for \a mode. -
trunk/src/gui/kernel/qwidget.cpp
r92 r95 298 298 void QWidget::setInputContext(QInputContext *context) 299 299 { 300 300 301 Q_D(QWidget); 301 302 if (!testAttribute(Qt::WA_InputMethodEnabled)) 302 303 return; 303 #ifndef QT_NO_IM304 304 if (d->ic) 305 305 delete d->ic; … … 323 323 void QWidget::resetInputContext() 324 324 { 325 325 326 if (!hasFocus()) 326 327 return; 327 #ifndef QT_NO_IM328 328 QInputContext *qic = this->inputContext(); 329 329 if(qic) … … 9822 9822 #endif 9823 9823 case Qt::WA_NativeWindow: { 9824 9824 9825 QInputContext *ic = 0; 9825 9826 if (on && !internalWinId() && testAttribute(Qt::WA_InputMethodEnabled) && hasFocus()) { … … 9828 9829 ic->setFocusWidget(0); 9829 9830 } 9831 9830 9832 if (!qApp->testAttribute(Qt::AA_DontCreateNativeWidgetSiblings) && parentWidget()) 9831 9833 parentWidget()->d_func()->enforceNativeChildren(); 9832 9834 if (on && !internalWinId() && testAttribute(Qt::WA_WState_Created)) 9833 9835 d->createWinId(); 9836 9834 9837 if (ic) 9835 9838 ic->setFocusWidget(this); 9839 9836 9840 break; 9837 9841 } … … 9867 9871 QInputContextPrivate::updateImeStatus(this, true); 9868 9872 #endif 9873 9869 9874 QInputContext *ic = d->ic; 9870 9875 if (!ic) { … … 9881 9886 } 9882 9887 } 9888 9883 9889 break; 9884 9890 } -
trunk/src/gui/kernel/qwidget_p.h
r92 r95 594 594 #endif 595 595 596 #if defined(Q_WS_X11) || defined (Q_WS_WIN) || defined (Q_WS_PM) || defined(Q_WS_MAC)596 #if defined(Q_WS_X11) || defined (Q_WS_WIN) || defined (Q_WS_PM) || defined(Q_WS_MAC) 597 597 #ifdef Q_WS_MAC 598 598 void setWSGeometry(bool dontShow=false, const QRect &oldRect = QRect()); -
trunk/src/gui/kernel/qwidget_pm.cpp
r92 r95 64 64 *****************************************************************************/ 65 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 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 66 297 QT_END_NAMESPACE -
trunk/src/gui/painting/painting.pri
r2 r95 112 112 } 113 113 114 115 116 117 118 119 120 114 121 embedded { 115 122 HEADERS += \ … … 170 177 } 171 178 172 win32| x11|mac|embedded {179 win32|x11|mac|embedded { 173 180 SOURCES += painting/qbackingstore.cpp 174 181 HEADERS += painting/qbackingstore_p.h -
trunk/src/gui/painting/qgraphicssystem.cpp
r2 r95 48 48 # include <private/qpixmap_raster_p.h> 49 49 #endif 50 51 52 50 53 #ifdef Q_WS_MAC 51 54 # include <private/qpixmap_mac_p.h> … … 67 70 #elif defined(Q_WS_WIN) 68 71 return new QRasterPixmapData(type); 72 73 69 74 #elif defined(Q_WS_MAC) 70 75 return new QMacPixmapData(type); -
trunk/src/gui/painting/qregion.cpp
r2 r95 566 566 \sa intersected() 567 567 */ 568 #if !defined(Q_WS_WIN) || defined(Q_OS_WINCE)568 #if ) 569 569 QRegion& QRegion::operator&=(const QRegion &r) 570 570 { return *this = *this & r; } … … 596 596 \sa subtracted() 597 597 */ 598 #if !defined(Q_WS_WIN) || defined(Q_OS_WINCE)598 #if ) 599 599 QRegion& QRegion::operator-=(const QRegion &r) 600 600 { return *this = *this - r; } -
trunk/src/gui/text/qfontdatabase.cpp
r2 r95 876 876 #elif defined(Q_WS_WIN) 877 877 # include "qfontdatabase_win.cpp" 878 879 878 880 #elif defined(Q_WS_QWS) 879 881 # include "qfontdatabase_qws.cpp" … … 2419 2421 */ 2420 2422 2421 /*! 2423 /*! 2422 2424 \fn bool QFontDatabase::supportsThreadedFontRendering() 2423 2425 \since 4.4 -
trunk/src/gui/text/qfontengine_p.h
r2 r95 323 323 virtual void recalcAdvances(QGlyphLayout *, QTextEngine::ShaperFlags) const; 324 324 325 #if !defined(Q_WS_X11) && !defined(Q_WS_WIN) && !defined(Q_WS_ MAC)325 #if !defined(Q_WS_X11) && !defined(Q_WS_WIN) && !defined(Q_WS_MAC) 326 326 void draw(QPaintEngine *p, qreal x, qreal y, const QTextItemInt &si); 327 327 #endif -
trunk/src/gui/text/text.pri
r2 r95 74 74 text/qfontengine_win.cpp 75 75 HEADERS += text/qfontengine_win_p.h 76 77 78 79 80 76 81 } 77 82
Note:
See TracChangeset
for help on using the changeset viewer.
