diff options
Diffstat (limited to 'doc/session.doc')
-rw-r--r-- | doc/session.doc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/session.doc b/doc/session.doc index dfa27492c..8837b8431 100644 --- a/doc/session.doc +++ b/doc/session.doc @@ -79,13 +79,13 @@ management for applications yet, i.e. no restoring of previous sessions. They do support graceful logouts where applications have the opportunity to cancel the process after getting confirmation from the user. This is the functionality that corresponds to the \l -QApplication::commitData() method. +TQApplication::commitData() method. X11 has supported complete session management since X11R6. \section1 Getting session management to work with TQt -Start by reimplementing \l QApplication::commitData() to +Start by reimplementing \l TQApplication::commitData() to enable your application to take part in the graceful logout process. If you are only targeting the MS-Windows platform, this is all you can and must provide. Ideally, your application should provide a shutdown @@ -100,17 +100,17 @@ For complete session management (only supported on X11R6 at present), you must also take care of saving the application's state, and potentially of restoring the state in the next life cycle of the session. This saving is done by reimplementing \l -QApplication::saveState(). All state data you are saving in this +TQApplication::saveState(). All state data you are saving in this function, should be marked with the session identifier \l -QApplication::sessionId(). This application specific identifier is +TQApplication::sessionId(). This application specific identifier is globally unique, so no clashes will occur. (See \l TQSessionManager for information on saving/restoring the state of a particular Qt application.) Restoration is usually done in the application's main() -function. Check if \l QApplication::isSessionRestored() is \c TRUE. If +function. Check if \l TQApplication::isSessionRestored() is \c TRUE. If that's the case, use the session identifier \l -QApplication::sessionId() again to access your state data and restore +TQApplication::sessionId() again to access your state data and restore the state of the application. <strong>Important:</strong> In order to allow the window manager to @@ -164,10 +164,10 @@ crash. \i Use the session manager's \e Checkpoint and \e Shutdown buttons with different settings and see how your application behaves. The save type \e local means that the clients should save their state. It -corresponds to the \l QApplication::saveState() function. The \e +corresponds to the \l TQApplication::saveState() function. The \e global save type asks applications to save their unsaved changes in permanent, globally accessible storage. It invokes \l -QApplication::commitData(). +TQApplication::commitData(). \i Whenever something crashes, blame \c xsm and not Qt. \c xsm is far from being a usable session manager on a user's desktop. It is, however, stable and useful enough to serve as testing environment. |