Ignore:
Timestamp:
Dec 16, 2009, 1:52:19 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Implemented QSessionManager and removed the QT_NO_SESSIONMANAGER define (closes #100).

Location:
trunk/src/corelib/kernel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/kernel/qcoreapplication.h

    r327 r428  
    207207
    208208    friend class QEventDispatcherUNIXPrivate;
     209
    209210    friend class QApplication;
    210211    friend class QApplicationPrivate;
  • trunk/src/corelib/kernel/qcoreapplication_p.h

    r2 r428  
    8282    static void removePostedTimerEvent(QObject *object, int timerId);
    8383#endif
     84
     85
     86
    8487
    8588#ifdef Q_OS_MAC
  • trunk/src/corelib/kernel/qeventdispatcher_pm.cpp

    r302 r428  
    12531253            if (haveMessage) {
    12541254                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                    }
    12571264                    return false;
    12581265                }
Note: See TracChangeset for help on using the changeset viewer.