Changeset 92 for trunk/src/gui/kernel
- Timestamp:
- Jul 28, 2009, 11:08:37 PM (16 years ago)
- Location:
- trunk/src/gui/kernel
- Files:
-
- 2 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/kernel.pri
r2 r92 91 91 } 92 92 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.h 100 SOURCES = \ 101 kernel/qapplication.cpp \ 102 kernel/qwidget.cpp 103 104 SOURCES += \ 105 kernel/qapplication_pm.cpp \ 106 kernel/qwidget_pm.cpp 107 } 108 93 109 unix:x11 { 94 110 INCLUDEPATH += ../3rdparty/xorg … … 190 206 kernel/qeventdispatcher_mac_p.h 191 207 192 MENU_NIB.files = mac/qt_menu.nib 193 MENU_NIB.path = Resources 208 MENU_NIB.files = mac/qt_menu.nib 209 MENU_NIB.path = Resources 194 210 MENU_NIB.version = Versions 195 QMAKE_BUNDLE_DATA += MENU_NIB 211 QMAKE_BUNDLE_DATA += MENU_NIB 196 212 RESOURCES += mac/maccursors.qrc 197 213 -
trunk/src/gui/kernel/qapplication.cpp
r2 r92 2579 2579 w = leaveList.at(i); 2580 2580 if (!qApp->activeModalWidget() || QApplicationPrivate::tryModalHelper(w, 0)) { 2581 #if defined(Q_WS_WIN) || defined(Q_WS_ X11)2581 #if defined(Q_WS_WIN) || defined(Q_WS_PM) || defined(Q_WS_X11) 2582 2582 if (leaveAfterRelease == w) 2583 2583 leaveAfterRelease = 0; … … 2952 2952 } 2953 2953 2954 #if defined(Q_WS_WIN) || defined(Q_WS_ X11)2954 #if defined(Q_WS_WIN) || defined(Q_WS_PM) || defined(Q_WS_X11) 2955 2955 /* 2956 2956 This function should only be called when the widget changes visibility, i.e. … … 3008 3008 #endif // QT_NO_CURSOR 3009 3009 } 3010 #endif // Q_WS_WIN || Q_WS_ X113010 #endif // Q_WS_WIN || Q_WS_PM || Q_WS_X11 3011 3011 3012 3012 /*! … … 3498 3498 event loop receives events from the window system and dispatches these to 3499 3499 the application widgets. 3500 3500 3501 3501 Generally, no user interaction can take place before calling exec(). As a 3502 3502 special case, modal widgets like QMessageBox can be used before calling -
trunk/src/gui/kernel/qapplication_p.h
r2 r92 421 421 static bool sendMouseEvent(QWidget *receiver, QMouseEvent *event, QWidget *alienWidget, 422 422 QWidget *native, QWidget **buttonDown, QPointer<QWidget> &lastMouseReceiver); 423 #if defined(Q_WS_WIN) || defined(Q_WS_ X11)423 #if defined(Q_WS_WIN) || defined(Q_WS_PM) || defined(Q_WS_X11) 424 424 void sendSyntheticEnterLeave(QWidget *widget); 425 425 #endif -
trunk/src/gui/kernel/qwidget.cpp
r2 r92 1346 1346 if (isWindow() && isVisible() && internalWinId()) 1347 1347 hide(); 1348 #if defined(Q_WS_WIN) || defined(Q_WS_ X11)1348 #if defined(Q_WS_WIN) || defined(Q_WS_PM) || defined(Q_WS_X11) 1349 1349 else if (!internalWinId() && isVisible()) 1350 1350 qApp->d_func()->sendSyntheticEnterLeave(this); … … 6818 6818 // hidden. 6819 6819 if (wasVisible) { 6820 #if defined(Q_WS_WIN) || defined(Q_WS_ X11)6820 #if defined(Q_WS_WIN) || defined(Q_WS_PM) || defined(Q_WS_X11) 6821 6821 qApp->d_func()->sendSyntheticEnterLeave(q); 6822 6822 #endif … … 6947 6947 d->show_helper(); 6948 6948 6949 #if defined(Q_WS_WIN) || defined(Q_WS_ X11)6949 #if defined(Q_WS_WIN) || defined(Q_WS_PM) || defined(Q_WS_X11) 6950 6950 qApp->d_func()->sendSyntheticEnterLeave(this); 6951 6951 #endif … … 7062 7062 } 7063 7063 } 7064 #if defined(Q_WS_WIN) || defined(Q_WS_ X11)7064 #if defined(Q_WS_WIN) || defined(Q_WS_PM) || defined(Q_WS_X11) 7065 7065 qApp->d_func()->sendSyntheticEnterLeave(widget); 7066 7066 #endif … … 8645 8645 */ 8646 8646 bool QWidget::winEvent(MSG *message, long *result) 8647 { 8648 Q_UNUSED(message); 8649 Q_UNUSED(result); 8650 return false; 8651 } 8652 8653 #endif 8654 #if defined(Q_WS_PM) 8655 8656 /*! 8657 This special event handler can be reimplemented in a subclass to 8658 receive native OS/2 Presentation Manager events which are passed in 8659 the \a message parameter. 8660 8661 In your reimplementation of this function, if you want to stop the 8662 event being handled by Qt, return true and set \a result to the value 8663 that the window procedure should return. If you return false, this 8664 native event is passed back to Qt, which translates the event into 8665 a Qt event and sends it to the widget. 8666 8667 \warning This function is not portable. 8668 8669 \sa QApplication::pmEventFilter() 8670 */ 8671 bool QWidget::pmEvent(QMSG *message, MRESULT *result) 8647 8672 { 8648 8673 Q_UNUSED(message); -
trunk/src/gui/kernel/qwidget.h
r2 r92 658 658 #if defined(Q_WS_WIN) 659 659 virtual bool winEvent(MSG *message, long *result); 660 #endif 661 #if defined(Q_WS_PM) 662 virtual bool pmEvent(QMSG *message, MRESULT *result); 660 663 #endif 661 664 #if defined(Q_WS_X11) -
trunk/src/gui/kernel/qwidget_p.h
r2 r92 594 594 #endif 595 595 596 #if defined(Q_WS_X11) || defined (Q_WS_WIN) || 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/qwindowdefs_pm.h
r89 r92 58 58 typedef unsigned long LHANDLE; 59 59 typedef LHANDLE HWND; 60 typedef struct _QMSG QMSG; 61 typedef void *MRESULT; 60 62 61 63 typedef HWND WId; 64 65 // constants to address extra window data 66 #define QWL_QTCLIPRGN (QWL_USER) 67 #define QWL_QTMODAL (QWL_USER + sizeof(ULONG)) 68 #define QT_EXTRAWINDATASIZE (sizeof(LONG) * 2) 62 69 63 70 QT_BEGIN_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.