diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-23 12:42:20 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-23 12:42:20 +0900 |
commit | b35e0845dc9b3c8b9a5e52a682c769f383933fae (patch) | |
tree | e4eeca8f6fe0ca87e774be98eabf89b4c7fca347 /doc/man/man3/tqapplication.3qt | |
parent | 1ba13366a7a377d50b9e8df9044ce11d8209f98c (diff) | |
download | tqt3-b35e0845dc9b3c8b9a5e52a682c769f383933fae.tar.gz tqt3-b35e0845dc9b3c8b9a5e52a682c769f383933fae.zip |
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqapplication.3qt')
-rw-r--r-- | doc/man/man3/tqapplication.3qt | 184 |
1 files changed, 92 insertions, 92 deletions
diff --git a/doc/man/man3/tqapplication.3qt b/doc/man/man3/tqapplication.3qt index a01de9e42..2ec4512ba 100644 --- a/doc/man/man3/tqapplication.3qt +++ b/doc/man/man3/tqapplication.3qt @@ -11,7 +11,7 @@ QApplication \- Manages the GUI application's control flow and main settings .SH SYNOPSIS \fC#include <ntqapplication.h>\fR .PP -Inherits QObject. +Inherits TQObject. .PP .SS "Public Members" .in +1c @@ -49,19 +49,19 @@ Inherits QObject. .BI "enum \fBColorSpec\fR { NormalColor = 0, CustomColor = 1, ManyColor = 2 }" .br .ti -1c -.BI "QWidget * \fBmainWidget\fR () const" +.BI "TQWidget * \fBmainWidget\fR () const" .br .ti -1c -.BI "virtual void \fBsetMainWidget\fR ( QWidget * mainWidget )" +.BI "virtual void \fBsetMainWidget\fR ( TQWidget * mainWidget )" .br .ti -1c -.BI "virtual void \fBpolish\fR ( QWidget * w )" +.BI "virtual void \fBpolish\fR ( TQWidget * w )" .br .ti -1c -.BI "QWidget * \fBfocusWidget\fR () const" +.BI "TQWidget * \fBfocusWidget\fR () const" .br .ti -1c -.BI "QWidget * \fBactiveWindow\fR () const" +.BI "TQWidget * \fBactiveWindow\fR () const" .br .ti -1c .BI "int \fBexec\fR ()" @@ -88,7 +88,7 @@ Inherits QObject. .BI "int loopLevel () const \fI(obsolete)\fR" .br .ti -1c -.BI "virtual bool \fBnotify\fR ( QObject * receiver, QEvent * e )" +.BI "virtual bool \fBnotify\fR ( TQObject * receiver, QEvent * e )" .br .ti -1c .BI "void setDefaultCodec ( QTextCodec * codec ) \fI(obsolete)\fR" @@ -106,13 +106,13 @@ Inherits QObject. .BI "enum \fBEncoding\fR { DefaultCodec, UnicodeUTF8 }" .br .ti -1c -.BI "QString \fBtranslate\fR ( const char * context, const char * sourceText, const char * comment = 0, Encoding encoding = DefaultCodec ) const" +.BI "TQString \fBtranslate\fR ( const char * context, const char * sourceText, const char * comment = 0, Encoding encoding = DefaultCodec ) const" .br .ti -1c -.BI "QString \fBapplicationDirPath\fR ()" +.BI "TQString \fBapplicationDirPath\fR ()" .br .ti -1c -.BI "QString \fBapplicationFilePath\fR ()" +.BI "TQString \fBapplicationFilePath\fR ()" .br .ti -1c .BI "virtual bool \fBmacEventFilter\fR ( EventHandlerCallRef, EventRef )" @@ -130,19 +130,19 @@ Inherits QObject. .BI "virtual bool \fBqwsEventFilter\fR ( QWSEvent * )" .br .ti -1c -.BI "void \fBqwsSetCustomColors\fR ( QRgb * colorTable, int start, int numColors )" +.BI "void \fBqwsSetCustomColors\fR ( TQRgb * colorTable, int start, int numColors )" .br .ti -1c -.BI "void \fBwinFocus\fR ( QWidget * widget, bool gotFocus )" +.BI "void \fBwinFocus\fR ( TQWidget * widget, bool gotFocus )" .br .ti -1c .BI "bool \fBisSessionRestored\fR () const" .br .ti -1c -.BI "QString \fBsessionId\fR () const" +.BI "TQString \fBsessionId\fR () const" .br .ti -1c -.BI "QString \fBsessionKey\fR () const" +.BI "TQString \fBsessionKey\fR () const" .br .ti -1c .BI "virtual void \fBcommitData\fR ( QSessionManager & sm )" @@ -199,7 +199,7 @@ Inherits QObject. .BI "void \fBsetStyle\fR ( QStyle * style )" .br .ti -1c -.BI "QStyle * \fBsetStyle\fR ( const QString & style )" +.BI "QStyle * \fBsetStyle\fR ( const TQString & style )" .br .ti -1c .BI "int \fBcolorSpec\fR ()" @@ -223,13 +223,13 @@ Inherits QObject. .BI "void \fBsetGlobalMouseTracking\fR ( bool enable )" .br .ti -1c -.BI "QPalette \fBpalette\fR ( const QWidget * w = 0 )" +.BI "QPalette \fBpalette\fR ( const TQWidget * w = 0 )" .br .ti -1c .BI "void \fBsetPalette\fR ( const QPalette & palette, bool informWidgets = FALSE, const char * className = 0 )" .br .ti -1c -.BI "QFont \fBfont\fR ( const QWidget * w = 0 )" +.BI "QFont \fBfont\fR ( const TQWidget * w = 0 )" .br .ti -1c .BI "void \fBsetFont\fR ( const QFont & font, bool informWidgets = FALSE, const char * className = 0 )" @@ -247,19 +247,19 @@ Inherits QObject. .BI "QDesktopWidget * \fBdesktop\fR ()" .br .ti -1c -.BI "QWidget * \fBactivePopupWidget\fR ()" +.BI "TQWidget * \fBactivePopupWidget\fR ()" .br .ti -1c -.BI "QWidget * \fBactiveModalWidget\fR ()" +.BI "TQWidget * \fBactiveModalWidget\fR ()" .br .ti -1c .BI "QClipboard * \fBclipboard\fR ()" .br .ti -1c -.BI "QWidget * \fBwidgetAt\fR ( int x, int y, bool child = FALSE )" +.BI "TQWidget * \fBwidgetAt\fR ( int x, int y, bool child = FALSE )" .br .ti -1c -.BI "QWidget * \fBwidgetAt\fR ( const QPoint & pos, bool child = FALSE )" +.BI "TQWidget * \fBwidgetAt\fR ( const QPoint & pos, bool child = FALSE )" .br .ti -1c .BI "QEventLoop * \fBeventLoop\fR ()" @@ -268,19 +268,19 @@ Inherits QObject. .BI "void \fBexit\fR ( int retcode = 0 )" .br .ti -1c -.BI "bool \fBsendEvent\fR ( QObject * receiver, QEvent * event )" +.BI "bool \fBsendEvent\fR ( TQObject * receiver, QEvent * event )" .br .ti -1c -.BI "void \fBpostEvent\fR ( QObject * receiver, QEvent * event )" +.BI "void \fBpostEvent\fR ( TQObject * receiver, QEvent * event )" .br .ti -1c -.BI "void \fBsendPostedEvents\fR ( QObject * receiver, int event_type )" +.BI "void \fBsendPostedEvents\fR ( TQObject * receiver, int event_type )" .br .ti -1c .BI "void \fBsendPostedEvents\fR ()" .br .ti -1c -.BI "void \fBremovePostedEvents\fR ( QObject * receiver )" +.BI "void \fBremovePostedEvents\fR ( TQObject * receiver )" .br .ti -1c .BI "bool \fBstartingUp\fR ()" @@ -301,10 +301,10 @@ Inherits QObject. .BI "void \fBbeep\fR ()" .br .ti -1c -.BI "void setWinStyleHighlightColor ( const QColor & c ) \fI(obsolete)\fR" +.BI "void setWinStyleHighlightColor ( const TQColor & c ) \fI(obsolete)\fR" .br .ti -1c -.BI "const QColor & winStyleHighlightColor () \fI(obsolete)\fR" +.BI "const TQColor & winStyleHighlightColor () \fI(obsolete)\fR" .br .ti -1c .BI "void \fBsetDesktopSettingsAware\fR ( bool on )" @@ -343,10 +343,10 @@ Inherits QObject. .BI "QStringList \fBlibraryPaths\fR ()" .br .ti -1c -.BI "void \fBaddLibraryPath\fR ( const QString & path )" +.BI "void \fBaddLibraryPath\fR ( const TQString & path )" .br .ti -1c -.BI "void \fBremoveLibraryPath\fR ( const QString & path )" +.BI "void \fBremoveLibraryPath\fR ( const TQString & path )" .br .ti -1c .BI "void \fBsetStartDragTime\fR ( int ms )" @@ -491,7 +491,7 @@ This enum type defines the 8-bit encoding of character string arguments to trans .TP \fCQApplication::UnicodeUTF8\fR - UTF-8 .PP -See also QObject::tr(), QObject::trUtf8(), and QString::fromUtf8(). +See also TQObject::tr(), TQObject::trUtf8(), and TQString::fromUtf8(). .SH "QApplication::Type" .TP \fCQApplication::Tty\fR - a console application @@ -634,7 +634,7 @@ This signal is emitted when the application is about to quit the main event loop The signal is particularly useful if your application has to do some last-second cleanup. Note that no user interaction is possible in this state. .PP See also quit(). -.SH "QWidget * QApplication::activeModalWidget ()\fC [static]\fR" +.SH "TQWidget * QApplication::activeModalWidget ()\fC [static]\fR" Returns the active modal widget. .PP A modal widget is a special top level widget which is a subclass of QDialog that specifies the modal parameter of the constructor as TRUE. A modal widget must be closed before the user can continue with other parts of the program. @@ -642,7 +642,7 @@ A modal widget is a special top level widget which is a subclass of QDialog that Modal widgets are organized in a stack. This function returns the active modal widget at the top of the stack. .PP See also activePopupWidget() and topLevelWidgets(). -.SH "QWidget * QApplication::activePopupWidget ()\fC [static]\fR" +.SH "TQWidget * QApplication::activePopupWidget ()\fC [static]\fR" Returns the active popup widget. .PP A popup widget is a special top level widget that sets the WType_Popup widget flag, e.g. the QPopupMenu widget. When the application opens a popup widget, all events are sent to the popup. Normal widgets and modal widgets cannot be accessed before the popup widget is closed. @@ -650,13 +650,13 @@ A popup widget is a special top level widget that sets the WType_Popup widget fl Only other popup widgets may be opened when a popup widget is shown. The popup widgets are organized in a stack. This function returns the active popup widget at the top of the stack. .PP See also activeModalWidget() and topLevelWidgets(). -.SH "QWidget * QApplication::activeWindow () const" +.SH "TQWidget * QApplication::activeWindow () const" Returns the application top-level window that has the keyboard input focus, or 0 if no application window has the focus. Note that there might be an activeWindow() even if there is no focusWidget(), for example if no widget in that window accepts key events. .PP -See also QWidget::setFocus(), QWidget::focus, and focusWidget(). +See also TQWidget::setFocus(), TQWidget::focus, and focusWidget(). .PP Example: network/mail/smtp.cpp. -.SH "void QApplication::addLibraryPath ( const QString & path )\fC [static]\fR" +.SH "void QApplication::addLibraryPath ( const TQString & path )\fC [static]\fR" Append \fIpath\fR to the end of the library path list. If \fIpath\fR is empty or already in the path list, the path list is not changed. .PP The default path list consists of a single entry, the installation directory for plugins. The default installation directory for plugins is \fCINSTALL/plugins\fR, where \fCINSTALL\fR is the directory where TQt was installed. @@ -679,7 +679,7 @@ Example that updates all widgets: .br QWidgetListIt it( *list ); // iterate over the widgets .br - QWidget * w; + TQWidget * w; .br while ( (w=it.current()) != 0 ) { // for each widget... .br @@ -697,8 +697,8 @@ The QWidgetList class is defined in the \fCntqwidgetlist.h\fR header file. .PP \fBWarning:\fR Delete the list as soon as you have finished using it. The widgets in the list may be deleted by someone else at any time. .PP -See also topLevelWidgets(), QWidget::visible, and QPtrList::isEmpty(). -.SH "QString QApplication::applicationDirPath ()" +See also topLevelWidgets(), TQWidget::visible, and QPtrList::isEmpty(). +.SH "TQString QApplication::applicationDirPath ()" Returns the directory that contains the application executable. .PP For example, if you have installed TQt in the \fCC:\Trolltech\Qt\fR directory, and you run the \fCdemo\fR example, this function will return "C:/Trolltech/Qt/examples/demo". @@ -708,7 +708,7 @@ On Mac OS X this will point to the directory actually containing the executable, \fBWarning:\fR On Unix, this function assumes that argv[0] contains the file name of the executable (which it normally does). It also assumes that the current directory hasn't been changed by the application. .PP See also applicationFilePath(). -.SH "QString QApplication::applicationFilePath ()" +.SH "TQString QApplication::applicationFilePath ()" Returns the file path of the application executable. .PP For example, if you have installed TQt in the \fCC:\Trolltech\Qt\fR directory, and you run the \fCdemo\fR example, this function will return "C:/Trolltech/Qt/examples/demo/demo.exe". @@ -803,7 +803,7 @@ This function is particularly useful for applications with many top-level window .PP The windows are closed in random order, until one window does not accept the close event. .PP -See also QWidget::close(), QWidget::closeEvent(), lastWindowClosed(), quit(), topLevelWidgets(), and QWidget::isTopLevel. +See also TQWidget::close(), TQWidget::closeEvent(), lastWindowClosed(), quit(), topLevelWidgets(), and TQWidget::isTopLevel. .PP Examples: .)l action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, and qwerty/qwerty.cpp. @@ -926,21 +926,21 @@ Flushes the X event queue in the X11 implementation. This normally returns almos See also syncX(). .PP Example: xform/xform.cpp. -.SH "QWidget * QApplication::focusWidget () const" +.SH "TQWidget * QApplication::focusWidget () const" Returns the application widget that has the keyboard input focus, or 0 if no widget in this application has the focus. .PP -See also QWidget::setFocus(), QWidget::focus, and activeWindow(). -.SH "QFont QApplication::font ( const QWidget * w = 0 )\fC [static]\fR" +See also TQWidget::setFocus(), TQWidget::focus, and activeWindow(). +.SH "QFont QApplication::font ( const TQWidget * w = 0 )\fC [static]\fR" Returns the default font for the widget \fIw\fR, or the default application font if \fIw\fR is 0. .PP -See also setFont(), fontMetrics(), and QWidget::font. +See also setFont(), fontMetrics(), and TQWidget::font. .PP Examples: .)l qfd/fontdisplayer.cpp, themes/metal.cpp, and themes/themes.cpp. .SH "QFontMetrics QApplication::fontMetrics ()\fC [static]\fR" Returns display (screen) font metrics for the application font. .PP -See also font(), setFont(), QWidget::fontMetrics(), and QPainter::fontMetrics(). +See also font(), setFont(), TQWidget::fontMetrics(), and QPainter::fontMetrics(). .SH "QSize QApplication::globalStrut ()\fC [static]\fR" Returns the application's global strut. .PP @@ -986,7 +986,7 @@ The signal is very useful when your application has many top level widgets but n .PP For convenience, this signal is \fInot\fR emitted for transient top level widgets such as popup menus and dialogs. .PP -See also mainWidget(), topLevelWidgets(), QWidget::isTopLevel, and QWidget::close(). +See also mainWidget(), topLevelWidgets(), TQWidget::isTopLevel, and TQWidget::close(). .PP Examples: .)l addressbook/main.cpp, extension/main.cpp, helpviewer/main.cpp, mdi/main.cpp, network/archivesearch/main.cpp, qwerty/main.cpp, and regexptester/main.cpp. @@ -1036,11 +1036,11 @@ This virtual function is only implemented under Macintosh. If you create an application that inherits QApplication and reimplement this function, you get direct access to all Carbon Events that are received from the MacOS. .PP Return TRUE if you want to stop the event from being processed. Return FALSE for normal event dispatching. -.SH "QWidget * QApplication::mainWidget () const" +.SH "TQWidget * QApplication::mainWidget () const" Returns the main application widget, or 0 if there is no main widget. .PP See also setMainWidget(). -.SH "bool QApplication::notify ( QObject * receiver, QEvent * e )\fC [virtual]\fR" +.SH "bool QApplication::notify ( TQObject * receiver, QEvent * e )\fC [virtual]\fR" Sends event \fIe\fR to \fIreceiver\fR: \fIreceiver\fR->event(\fIe\fR). Returns the value that is returned from the receiver's event handler. .PP For certain types of events (e.g. mouse and key events), the event will be propagated to the receiver's parent and so on up to the top-level object if the receiver is not interested in the event (i.e., it returns FALSE). @@ -1053,7 +1053,7 @@ Reimplementing this function. This is very powerful, providing complete control; Installing an event filter on tqApp. Such an event filter is able to process all events for all widgets, so it's just as powerful as reimplementing notify(); furthermore, it's possible to have more than one application-global event filter. Global event filters even see mouse events for disabled widgets, and if global mouse tracking is enabled, as well as mouse move events for all widgets. .IP .TP -Reimplementing QObject::event() (as QWidget does). If you do this you get Tab key presses, and you get to see the events before any widget-specific event filters. +Reimplementing TQObject::event() (as TQWidget does). If you do this you get Tab key presses, and you get to see the events before any widget-specific event filters. .IP .TP Installing an event filter on the object. Such an event filter gets all the events except Tab and Shift-Tab key presses. @@ -1061,31 +1061,31 @@ Installing an event filter on the object. Such an event filter gets all the even .TP Reimplementing paintEvent(), mousePressEvent() and so on. This is the commonest, easiest and least powerful way. .PP -See also QObject::event() and installEventFilter(). +See also TQObject::event() and installEventFilter(). .SH "QCursor * QApplication::overrideCursor ()\fC [static]\fR" Returns the active application override cursor. .PP This function returns 0 if no application cursor has been defined (i.e. the internal cursor stack is empty). .PP See also setOverrideCursor() and restoreOverrideCursor(). -.SH "QPalette QApplication::palette ( const QWidget * w = 0 )\fC [static]\fR" +.SH "QPalette QApplication::palette ( const TQWidget * w = 0 )\fC [static]\fR" Returns the application palette. .PP If a widget is passed in \fIw\fR, the default palette for the widget's class is returned. This may or may not be the application palette. In most cases there isn't a special palette for certain types of widgets, but one notable exception is the popup menu under Windows, if the user has defined a special background color for menus in the display settings. .PP -See also setPalette() and QWidget::palette. +See also setPalette() and TQWidget::palette. .PP Examples: .)l desktop/desktop.cpp, themes/metal.cpp, and themes/wood.cpp. -.SH "void QApplication::polish ( QWidget * w )\fC [virtual]\fR" +.SH "void QApplication::polish ( TQWidget * w )\fC [virtual]\fR" Initialization of the appearance of the widget \fIw\fR \fIbefore\fR it is first shown. .PP Usually widgets call this automatically when they are polished. It may be used to do some style-based central customization of widgets. .PP -Note that you are not limited to the public functions of QWidget. Instead, based on meta information like QObject::className() you are able to customize any kind of widget. +Note that you are not limited to the public functions of TQWidget. Instead, based on meta information like TQObject::className() you are able to customize any kind of widget. .PP -See also QStyle::polish(), QWidget::polish(), setPalette(), and setFont(). -.SH "void QApplication::postEvent ( QObject * receiver, QEvent * event )\fC [static]\fR" +See also QStyle::polish(), TQWidget::polish(), setPalette(), and setFont(). +.SH "void QApplication::postEvent ( TQObject * receiver, QEvent * event )\fC [static]\fR" \fBNote:\fR This function is thread-safe when TQt is built withthread support.</p> Adds the event \fIevent\fR with the object \fIreceiver\fR as the receiver of the event, to an event queue and returns immediately. .PP The event must be allocated on the heap since the post event queue will take ownership of the event and delete it once it has been posted. @@ -1151,7 +1151,7 @@ This virtual function is only implemented under Qt/Embedded. If you create an application that inherits QApplication and reimplement this function, you get direct access to all QWS (Q Window System) events that the are received from the QWS master process. .PP Return TRUE if you want to stop the event from being processed. Return FALSE for normal event dispatching. -.SH "void QApplication::qwsSetCustomColors ( QRgb * colorTable, int start, int numColors )" +.SH "void QApplication::qwsSetCustomColors ( TQRgb * colorTable, int start, int numColors )" Set Qt/Embedded custom color table. .PP Qt/Embedded on 8-bpp displays allocates a standard 216 color cube. The remaining 40 colors may be used by setting a custom color table in the QWS master process before any clients connect. @@ -1165,18 +1165,18 @@ Set the QWSDecoration derived class to use for decorating the Qt/Embedded window This method is non-portable. It is available \fIonly\fR in Qt/Embedded. .PP See also QWSDecoration. -.SH "void QApplication::removeLibraryPath ( const QString & path )\fC [static]\fR" +.SH "void QApplication::removeLibraryPath ( const TQString & path )\fC [static]\fR" Removes \fIpath\fR from the library path list. If \fIpath\fR is empty or not in the path list, the list is not changed. .PP See also addLibraryPath(), libraryPaths(), and setLibraryPaths(). -.SH "void QApplication::removePostedEvents ( QObject * receiver )\fC [static]\fR" +.SH "void QApplication::removePostedEvents ( TQObject * receiver )\fC [static]\fR" \fBNote:\fR This function is thread-safe when TQt is built withthread support.</p> Removes all events posted using postEvent() for \fIreceiver\fR. .PP The events are \fInot\fR dispatched, instead they are removed from the queue. You should never need to call this function. If you do call it, be aware that killing events may cause \fIreceiver\fR to break one or more invariants. .SH "void QApplication::removeTranslator ( QTranslator * mf )" Removes the message file \fImf\fR from the list of message files used by this application. (It does not delete the message file from the file system.) .PP -See also installTranslator(), translate(), and QObject::tr(). +See also installTranslator(), translate(), and TQObject::tr(). .PP Example: i18n/main.cpp. .SH "void QApplication::restoreOverrideCursor ()\fC [static]\fR" @@ -1202,7 +1202,7 @@ Note that you should never exit the application within this function. Instead, t \fBWarning:\fR Within this function, no user interaction is possible, \fIunless\fR you ask the session manager \fIsm\fR for explicit permission. See QSessionManager::allowsInteraction() and QSessionManager::allowsErrorInteraction() for details. .PP See also isSessionRestored(), sessionId(), commitData(), and the Session Management overview. -.SH "bool QApplication::sendEvent ( QObject * receiver, QEvent * event )\fC [static]\fR" +.SH "bool QApplication::sendEvent ( TQObject * receiver, QEvent * event )\fC [static]\fR" Sends event \fIevent\fR directly to receiver \fIreceiver\fR, using the notify() function. Returns the value that was returned from the event handler. .PP The event is \fInot\fR deleted when the event has been sent. The normal approach is to create the event on the stack, e.g. @@ -1219,7 +1219,7 @@ If you create the event on the heap you must delete it. See also postEvent() and notify(). .PP Example: popup/popup.cpp. -.SH "void QApplication::sendPostedEvents ( QObject * receiver, int event_type )\fC [static]\fR" +.SH "void QApplication::sendPostedEvents ( TQObject * receiver, int event_type )\fC [static]\fR" Immediately dispatches all events which have been previously queued with QApplication::postEvent() and which are for the object \fIreceiver\fR and have the event type \fIevent_type\fR. .PP Note that events from the window system are \fInot\fR dispatched by this function, but by processEvents(). @@ -1229,7 +1229,7 @@ If \fIreceiver\fR is null, the events of \fIevent_type\fR are sent for all objec This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Dispatches all posted events, i.e. empties the event queue. -.SH "QString QApplication::sessionId () const" +.SH "TQString QApplication::sessionId () const" Returns the current session's identifier. .PP If the application has been restored from an earlier session, this identifier is the same as it was in that previous session. @@ -1237,7 +1237,7 @@ If the application has been restored from an earlier session, this identifier is The session identifier is guaranteed to be unique both for different applications and for different instances of the same application. .PP See also isSessionRestored(), sessionKey(), commitData(), and saveState(). -.SH "QString QApplication::sessionKey () const" +.SH "TQString QApplication::sessionKey () const" Returns the session key in the current session. .PP If the application has been restored from an earlier session, this key is the same as it was when the previous session ended. @@ -1284,13 +1284,13 @@ Example: .br .fi .PP -QColor provides more functionality for controlling color allocation and freeing up certain colors. See QColor::enterAllocContext() for more information. +TQColor provides more functionality for controlling color allocation and freeing up certain colors. See TQColor::enterAllocContext() for more information. .PP -To check what mode you end up with, call QColor::numBitPlanes() once the QApplication object exists. A value greater than 8 (typically 16, 24 or 32) means true color. +To check what mode you end up with, call TQColor::numBitPlanes() once the QApplication object exists. A value greater than 8 (typically 16, 24 or 32) means true color. .PP <sup>*</sup> The color cube used by TQt has 216 colors whose red, green, and blue components always have one of the following values: 0x00, 0x33, 0x66, 0x99, 0xCC, or 0xFF. .PP -See also colorSpec(), QColor::numBitPlanes(), and QColor::enterAllocContext(). +See also colorSpec(), TQColor::numBitPlanes(), and TQColor::enterAllocContext(). .PP Examples: .)l helpviewer/main.cpp, opengl/main.cpp, showimg/main.cpp, t9/main.cpp, tetrax/tetrax.cpp, tetrix/tetrix.cpp, and themes/main.cpp. @@ -1337,11 +1337,11 @@ Note: All effects are disabled on screens running at less than 16-bit color dept .PP See also isEffectEnabled(), Qt::UIEffect, and setDesktopSettingsAware(). .SH "void QApplication::setFont ( const QFont & font, bool informWidgets = FALSE, const char * className = 0 )\fC [static]\fR" -Changes the default application font to \fIfont\fR. If \fIinformWidgets\fR is TRUE, then existing widgets are informed about the change and may adjust themselves to the new application setting. If \fIinformWidgets\fR is FALSE, the change only affects newly created widgets. If \fIclassName\fR is passed, the change applies only to classes that inherit \fIclassName\fR (as reported by QObject::inherits()). +Changes the default application font to \fIfont\fR. If \fIinformWidgets\fR is TRUE, then existing widgets are informed about the change and may adjust themselves to the new application setting. If \fIinformWidgets\fR is FALSE, the change only affects newly created widgets. If \fIclassName\fR is passed, the change applies only to classes that inherit \fIclassName\fR (as reported by TQObject::inherits()). .PP On application start-up, the default font depends on the window system. It can vary depending on both the window system version and the locale. This function lets you override the default font; but overriding may be a bad idea because, for example, some locales need extra-large fonts to support their special characters. .PP -See also font(), fontMetrics(), and QWidget::font. +See also font(), fontMetrics(), and TQWidget::font. .PP Examples: .)l desktop/desktop.cpp, themes/metal.cpp, and themes/themes.cpp. @@ -1350,7 +1350,7 @@ Enables global mouse tracking if \fIenable\fR is TRUE, or disables it if \fIenab .PP Enabling global mouse tracking makes it possible for widget event filters or application event filters to get all mouse move events, even when no button is depressed. This is useful for special GUI elements, e.g. tooltips. .PP -Global mouse tracking does not affect widgets and their mouseMoveEvent(). For a widget to get mouse move events when no button is depressed, it must do QWidget::setMouseTracking(TRUE). +Global mouse tracking does not affect widgets and their mouseMoveEvent(). For a widget to get mouse move events when no button is depressed, it must do TQWidget::setMouseTracking(TRUE). .PP This function uses an internal counter. Each setGlobalMouseTracking(TRUE) must have a corresponding setGlobalMouseTracking(FALSE): .PP @@ -1372,7 +1372,7 @@ This function uses an internal counter. Each setGlobalMouseTracking(TRUE) must h .br .fi .PP -See also hasGlobalMouseTracking() and QWidget::mouseTracking. +See also hasGlobalMouseTracking() and TQWidget::mouseTracking. .SH "void QApplication::setGlobalStrut ( const QSize & strut )\fC [static]\fR" Sets the application's global strut to \fIstrut\fR. .PP @@ -1399,14 +1399,14 @@ See also globalStrut(). Sets the list of directories to search when loading libraries to \fIpaths\fR. All existing paths will be deleted and the path list will consist of the paths given in \fIpaths\fR. .PP See also libraryPaths(), addLibraryPath(), removeLibraryPath(), and QLibrary. -.SH "void QApplication::setMainWidget ( QWidget * mainWidget )\fC [virtual]\fR" +.SH "void QApplication::setMainWidget ( TQWidget * mainWidget )\fC [virtual]\fR" Sets the application's main widget to \fImainWidget\fR. .PP In most respects the main widget is like any other widget, except that if it is closed, the application exits. Note that QApplication does \fInot\fR take ownership of the \fImainWidget\fR, so if you create your main widget on the heap you must delete it yourself. .PP You need not have a main widget; connecting lastWindowClosed() to quit() is an alternative. .PP -For X11, this function also resizes and moves the main widget according to the \fI-geometry\fR command-line option, so you should set the default geometry (using QWidget::setGeometry()) before calling setMainWidget(). +For X11, this function also resizes and moves the main widget according to the \fI-geometry\fR command-line option, so you should set the default geometry (using TQWidget::setGeometry()) before calling setMainWidget(). .PP See also mainWidget(), exec(), and quit(). .PP @@ -1435,18 +1435,18 @@ Example: .br .fi .PP -See also overrideCursor(), restoreOverrideCursor(), and QWidget::cursor. +See also overrideCursor(), restoreOverrideCursor(), and TQWidget::cursor. .PP Examples: .)l distributor/distributor.ui.h, network/archivesearch/archivedialog.ui.h, network/ftpclient/ftpmainwindow.ui.h, and showimg/showimg.cpp. .SH "void QApplication::setPalette ( const QPalette & palette, bool informWidgets = FALSE, const char * className = 0 )\fC [static]\fR" Changes the default application palette to \fIpalette\fR. If \fIinformWidgets\fR is TRUE, then existing widgets are informed about the change and may adjust themselves to the new application setting. If \fIinformWidgets\fR is FALSE, the change only affects newly created widgets. .PP -If \fIclassName\fR is passed, the change applies only to widgets that inherit \fIclassName\fR (as reported by QObject::inherits()). If \fIclassName\fR is left 0, the change affects all widgets, thus overriding any previously set class specific palettes. +If \fIclassName\fR is passed, the change applies only to widgets that inherit \fIclassName\fR (as reported by TQObject::inherits()). If \fIclassName\fR is left 0, the change affects all widgets, thus overriding any previously set class specific palettes. .PP The palette may be changed according to the current GUI style in QStyle::polish(). .PP -See also QWidget::palette, palette(), and QStyle::polish(). +See also TQWidget::palette, palette(), and QStyle::polish(). .PP Examples: .)l i18n/main.cpp, themes/metal.cpp, themes/themes.cpp, and themes/wood.cpp. @@ -1480,7 +1480,7 @@ When switching application styles, the color palette is set back to the initial See also style(), QStyle, setPalette(), and desktopSettingsAware(). .PP Example: themes/themes.cpp. -.SH "QStyle * QApplication::setStyle ( const QString & style )\fC [static]\fR" +.SH "QStyle * QApplication::setStyle ( const TQString & style )\fC [static]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Requests a QStyle object for \fIstyle\fR from the QStyleFactory. @@ -1496,7 +1496,7 @@ Sets the number of lines to scroll when the mouse wheel is rotated to \fIn\fR. If this number exceeds the number of visible lines in a certain widget, the widget should interpret the scroll operation as a single page up / page down operation instead. .PP See also wheelScrollLines(). -.SH "void QApplication::setWinStyleHighlightColor ( const QColor & c )\fC [static]\fR" +.SH "void QApplication::setWinStyleHighlightColor ( const TQColor & c )\fC [static]\fR" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Sets the color used to mark selections in windows style for all widgets in the application. Will repaint all widgets if the color is changed. @@ -1563,7 +1563,7 @@ Example: .br QWidgetListIt it( *list ); // iterate over the widgets .br - QWidget * w; + TQWidget * w; .br while ( (w=it.current()) != 0 ) { // for each top level widget... .br @@ -1581,11 +1581,11 @@ Example: .PP \fBWarning:\fR Delete the list as soon you have finished using it. The widgets in the list may be deleted by someone else at any time. .PP -See also allWidgets(), QWidget::isTopLevel, QWidget::visible, and QPtrList::isEmpty(). -.SH "QString QApplication::translate ( const char * context, const char * sourceText, const char * comment = 0, Encoding encoding = DefaultCodec ) const" +See also allWidgets(), TQWidget::isTopLevel, TQWidget::visible, and QPtrList::isEmpty(). +.SH "TQString QApplication::translate ( const char * context, const char * sourceText, const char * comment = 0, Encoding encoding = DefaultCodec ) const" \fBNote:\fR This function is reentrant when TQt is built with thread support.</p> Returns the translation text for \fIsourceText\fR, by querying the installed messages files. The message files are searched from the most recently installed message file back to the first installed message file. .PP -QObject::tr() and QObject::trUtf8() provide this functionality more conveniently. +TQObject::tr() and TQObject::trUtf8() provide this functionality more conveniently. .PP \fIcontext\fR is typically a class name (e.g., "MyDialog") and \fIsourceText\fR is either English text or a short identifying text, if the output text will be very long (as for help texts). .PP @@ -1593,13 +1593,13 @@ QObject::tr() and QObject::trUtf8() provide this functionality more conveniently .PP See the QTranslator documentation for more information about contexts and comments. .PP -If none of the message files contain a translation for \fIsourceText\fR in \fIcontext\fR, this function returns a QString equivalent of \fIsourceText\fR. The encoding of \fIsourceText\fR is specified by \fIencoding\fR; it defaults to DefaultCodec. +If none of the message files contain a translation for \fIsourceText\fR in \fIcontext\fR, this function returns a TQString equivalent of \fIsourceText\fR. The encoding of \fIsourceText\fR is specified by \fIencoding\fR; it defaults to DefaultCodec. .PP This function is not virtual. You can use alternative translation techniques by subclassing QTranslator. .PP \fBWarning:\fR This method is reentrant only if all translators are installed \fIbefore\fR calling this method. Installing or removing translators while performing translations is not supported. Doing so will most likely result in crashes or other undesirable behavior. .PP -See also QObject::tr(), installTranslator(), and defaultCodec(). +See also TQObject::tr(), installTranslator(), and defaultCodec(). .SH "bool QApplication::tryLock ()" Attempts to lock the TQt Library Mutex, and returns immediately. If the lock was obtained, this function returns TRUE. If another thread has locked the mutex, this function returns FALSE, instead of waiting for the lock to become available. .PP @@ -1620,15 +1620,15 @@ See also guiThreadAwake() and Thread Support in Qt. Returns the number of lines to scroll when the mouse wheel is rotated. .PP See also setWheelScrollLines(). -.SH "QWidget * QApplication::widgetAt ( int x, int y, bool child = FALSE )\fC [static]\fR" +.SH "TQWidget * QApplication::widgetAt ( int x, int y, bool child = FALSE )\fC [static]\fR" Returns a pointer to the widget at global screen position \fI(x, y)\fR, or 0 if there is no TQt widget there. .PP If \fIchild\fR is FALSE and there is a child widget at position \fI(x, y)\fR, the top-level widget containing it is returned. If \fIchild\fR is TRUE the child widget at position \fI(x, y)\fR is returned. .PP This function is normally rather slow. .PP -See also QCursor::pos(), QWidget::grabMouse(), and QWidget::grabKeyboard(). -.SH "QWidget * QApplication::widgetAt ( const QPoint & pos, bool child = FALSE )\fC [static]\fR" +See also QCursor::pos(), TQWidget::grabMouse(), and TQWidget::grabKeyboard(). +.SH "TQWidget * QApplication::widgetAt ( const QPoint & pos, bool child = FALSE )\fC [static]\fR" This is an overloaded member function, provided for convenience. It behaves essentially like the above function. .PP Returns a pointer to the widget at global screen position \fIpos\fR, or 0 if there is no TQt widget there. @@ -1638,11 +1638,11 @@ If \fIchild\fR is FALSE and there is a child widget at position \fIpos\fR, the t This virtual function is only implemented under Windows. .PP The message procedure calls this function for every message received. Reimplement this function if you want to process window messages that are not processed by Qt. If you don't want the event to be processed by Qt, then return TRUE; otherwise return FALSE. -.SH "void QApplication::winFocus ( QWidget * widget, bool gotFocus )" +.SH "void QApplication::winFocus ( TQWidget * widget, bool gotFocus )" This function is available only on Windows. .PP If \fIgotFocus\fR is TRUE, \fIwidget\fR will become the active window. Otherwise the active window is reset to NULL. -.SH "const QColor & QApplication::winStyleHighlightColor ()\fC [static]\fR" +.SH "const TQColor & QApplication::winStyleHighlightColor ()\fC [static]\fR" \fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code. .PP Returns the color used to mark selections in windows style. @@ -1766,11 +1766,11 @@ For modules and libraries, using a reference-counted initialization manager or Q .PP .nf .br - class MyPrivateInitStuff: public QObject { + class MyPrivateInitStuff: public TQObject { .br private: .br - MyPrivateInitStuff( QObject * parent ): QObject( parent) { + MyPrivateInitStuff( TQObject * parent ): TQObject( parent) { .br // initialization goes here .br @@ -1781,7 +1781,7 @@ For modules and libraries, using a reference-counted initialization manager or Q .br public: .br - static MyPrivateInitStuff * initStuff( QObject * parent ) { + static MyPrivateInitStuff * initStuff( TQObject * parent ) { .br if ( !p ) .br |