- Timestamp:
- Dec 16, 2009, 1:52:19 AM (15 years ago)
- Location:
- trunk/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/kernel/qcoreapplication.h
r327 r428 207 207 208 208 friend class QEventDispatcherUNIXPrivate; 209 209 210 friend class QApplication; 210 211 friend class QApplicationPrivate; -
trunk/src/corelib/kernel/qcoreapplication_p.h
r2 r428 82 82 static void removePostedTimerEvent(QObject *object, int timerId); 83 83 #endif 84 85 86 84 87 85 88 #ifdef Q_OS_MAC -
trunk/src/corelib/kernel/qeventdispatcher_pm.cpp
r302 r428 1253 1253 if (haveMessage) { 1254 1254 if (msg.msg == WM_QUIT) { 1255 if (QCoreApplication::instance()) 1256 QCoreApplication::instance()->quit(); 1255 if (QCoreApplication::instance()) { 1256 if (QCoreApplication::instance()->d_func()->canQuit()) { 1257 QCoreApplication::instance()->quit(); 1258 return true; 1259 } else { 1260 WinCancelShutdown(d->hmq, FALSE); 1261 return true; 1262 } 1263 } 1257 1264 return false; 1258 1265 } -
trunk/src/gui/kernel/qapplication.cpp
r182 r428 4369 4369 *****************************************************************************/ 4370 4370 #ifndef QT_NO_SESSIONMANAGER 4371 #if defined(Q_WS_WIN) || defined(Q_WS_ MAC) || defined(Q_WS_QWS)4371 #if defined(Q_WS_WIN) || defined(Q_WS_MAC) || defined(Q_WS_QWS) 4372 4372 4373 4373 #if defined(Q_OS_WINCE) … … 4451 4451 #endif 4452 4452 4453 #if !defined(Q_WS_WIN) 4453 #if !defined(Q_WS_WIN) 4454 4454 bool QSessionManager::allowsInteraction() 4455 4455 { -
trunk/src/gui/kernel/qapplication_p.h
r95 r428 425 425 void sendSyntheticEnterLeave(QWidget *widget); 426 426 #endif 427 428 429 427 430 428 431 private: -
trunk/src/gui/kernel/qapplication_pm.cpp
r412 r428 54 54 #include "qpixmapcache.h" 55 55 #include "qdesktopwidget.h" 56 56 57 57 58 #include "qset.h" … … 77 78 #if !defined (QT_NO_SESSIONMANAGER) 78 79 80 81 79 82 // Session management 80 static bool sm_blockUserInput = FALSE; 81 82 //#define DEBUG_SESSIONMANAGER 83 static bool sm_blockUserInput = false; 84 static bool sm_smActive = false; 85 static bool sm_cancel = false; 86 static bool sm_gracefulShutdown = false; 87 static bool sm_quitSkipped = false; 88 89 extern QSessionManager *qt_session_manager_self; // defined in qapplication.cpp 90 extern bool qt_about_to_destroy_wnd; // defined in qwidget_pm.cpp 83 91 84 92 #endif … … 765 773 switch(msg) { 766 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 767 827 case WM_SYSVALUECHANGED: { 768 828 // This message is sent to all top-level widgets, handle only once … … 785 845 } 786 846 #undef MY_IS_SV 847 848 849 850 851 852 853 854 855 856 857 858 859 787 860 break; 788 861 } … … 2222 2295 } 2223 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2224 2397 2225 2398 /*! … … 2254 2427 return QString(QLatin1String("<no-widget>")); 2255 2428 } 2256 2257 /*****************************************************************************2258 PM struct/message debug helpers2259 *****************************************************************************/2260 2429 2261 2430 typedef QLatin1String QCStr; -
trunk/src/gui/kernel/qwidget_pm.cpp
r309 r428 71 71 extern PFNWP QtOldFrameProc; 72 72 extern MRESULT EXPENTRY QtFrameProc(HWND, ULONG, MPARAM, MPARAM); 73 74 75 76 73 77 74 78 typedef QSet<QString> WinClassNameHash;
Note:
See TracChangeset
for help on using the changeset viewer.