diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-25 14:05:14 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-25 14:05:14 -0600 |
commit | bd87b2af9dde0633e56a792665cdec7a9675da95 (patch) | |
tree | 372fc8bc287d9712646388e9543b291a30b9cbd6 /doc/html/ntqapplication.html | |
parent | c5e69959c9eeb6a1396f1a60d7cf4f9781a2d47c (diff) | |
download | tqt3-bd87b2af9dde0633e56a792665cdec7a9675da95.tar.gz tqt3-bd87b2af9dde0633e56a792665cdec7a9675da95.zip |
Automated update from Qt3
Diffstat (limited to 'doc/html/ntqapplication.html')
-rw-r--r-- | doc/html/ntqapplication.html | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/doc/html/ntqapplication.html b/doc/html/ntqapplication.html index f0df8f7d..4577524a 100644 --- a/doc/html/ntqapplication.html +++ b/doc/html/ntqapplication.html @@ -170,13 +170,13 @@ flow and main settings. </ul> <h2>Related Functions</h2> <ul> -<li class=fn>void <a href="#qAddPostRoutine"><b>qAddPostRoutine</b></a> ( TQtCleanUpFunction p )</li> -<li class=fn>const char * <a href="#qVersion"><b>qVersion</b></a> ()</li> -<li class=fn>bool <a href="#qSysInfo"><b>qSysInfo</b></a> ( int * wordSize, bool * bigEndian )</li> -<li class=fn>void <a href="#qDebug"><b>qDebug</b></a> ( const char * msg, ... )</li> -<li class=fn>void <a href="#qWarning"><b>qWarning</b></a> ( const char * msg, ... )</li> -<li class=fn>void <a href="#qFatal"><b>qFatal</b></a> ( const char * msg, ... )</li> -<li class=fn>void <a href="#qSystemWarning"><b>qSystemWarning</b></a> ( const char * msg, int code )</li> +<li class=fn>void <a href="#qAddPostRoutine"><b>tqAddPostRoutine</b></a> ( TQtCleanUpFunction p )</li> +<li class=fn>const char * <a href="#qVersion"><b>tqVersion</b></a> ()</li> +<li class=fn>bool <a href="#qSysInfo"><b>tqSysInfo</b></a> ( int * wordSize, bool * bigEndian )</li> +<li class=fn>void <a href="#qDebug"><b>tqDebug</b></a> ( const char * msg, ... )</li> +<li class=fn>void <a href="#qWarning"><b>tqWarning</b></a> ( const char * msg, ... )</li> +<li class=fn>void <a href="#qFatal"><b>tqFatal</b></a> ( const char * msg, ... )</li> +<li class=fn>void <a href="#qSystemWarning"><b>tqSystemWarning</b></a> ( const char * msg, int code )</li> <li class=fn>void <a href="#Q_ASSERT"><b>Q_ASSERT</b></a> ( bool test )</li> <li class=fn>void <a href="#TQ_CHECK_PTR"><b>TQ_CHECK_PTR</b></a> ( void * p )</li> <li class=fn>TQtMsgHandler <a href="#qInstallMsgHandler"><b>qInstallMsgHandler</b></a> ( TQtMsgHandler h )</li> @@ -196,7 +196,7 @@ application-wide settings. <p> For any GUI application that uses TQt, there is precisely one TQApplication object, no matter whether the application has 0, 1, 2 or more windows at any time. -<p> The TQApplication object is accessible through the global pointer <tt>qApp</tt>. Its main areas of responsibility are: +<p> The TQApplication object is accessible through the global pointer <tt>tqApp</tt>. Its main areas of responsibility are: <ul> <p> <li> It initializes the application with the user's desktop settings such as <a href="#palette">palette</a>(), <a href="#font">font</a>() and <a href="#doubleClickInterval">doubleClickInterval</a>(). It keeps track @@ -390,13 +390,13 @@ arguments to <a href="#translate">translate</a>(): </h3> Initializes the window system and constructs an application object with <em>argc</em> command line arguments in <em>argv</em>. -<p> The global <tt>qApp</tt> pointer refers to this application object. Only +<p> The global <tt>tqApp</tt> pointer refers to this application object. Only one application object should be created. <p> This application object must be constructed before any <a href="ntqpaintdevice.html">paint devices</a> (including widgets, pixmaps, bitmaps etc.). <p> Note that <em>argc</em> and <em>argv</em> might be changed. TQt removes command line arguments that it recognizes. The modified <em>argc</em> and <em>argv</em> -can also be accessed later with <tt>qApp->argc()</tt> and <tt>qApp->argv()</tt>. +can also be accessed later with <tt>tqApp->argc()</tt> and <tt>tqApp->argv()</tt>. The documentation for <a href="#argv">argv</a>() contains a detailed description of how to process command line arguments. <p> TQt debugging options (not available if TQt was compiled with the @@ -517,7 +517,7 @@ bits-per-pixel. <h3 class=fn><a name="~TQApplication"></a>TQApplication::~TQApplication ()<tt> [virtual]</tt> </h3> Cleans up any window system resources that were allocated by this -application. Sets the global variable <tt>qApp</tt> to 0. +application. Sets the global variable <tt>tqApp</tt> to 0. <h3 class=fn>void <a name="aboutTQt"></a>TQApplication::aboutTQt ()<tt> [slot]</tt> </h3> @@ -672,7 +672,7 @@ and a few more options. <p> If you run <tt>showargs -display unix:0 -font 9x15bold hello world</tt> under X11, the list box contains the three strings "showargs", "hello" and "world". -<p> TQt provides a global pointer, <tt>qApp</tt>, that points to the +<p> TQt provides a global pointer, <tt>tqApp</tt>, that points to the TQApplication object, and through which you can access <a href="#argc">argc</a>() and <a href="#argv">argv</a>() in functions other than main(). <p> <p>See also <a href="#argc">argc</a>() and <a href="#TQApplication">TQApplication::TQApplication</a>(). @@ -1801,12 +1801,12 @@ line number if <em>test</em> is FALSE. </pre> <p> If <tt>b</tt> is zero, the Q_ASSERT statement will output the following -message using the <a href="#qWarning">qWarning</a>() function: +message using the <a href="#qWarning">tqWarning</a>() function: <pre> ASSERT: "b != 0" in div.cpp (9) </pre> -<p> <p>See also <a href="#qWarning">qWarning</a>() and <a href="debug.html">Debugging</a>. +<p> <p>See also <a href="#qWarning">tqWarning</a>() and <a href="debug.html">Debugging</a>. <h3 class=fn>void <a name="TQ_CHECK_PTR"></a>TQ_CHECK_PTR ( void * p ) </h3> @@ -1825,9 +1825,9 @@ name and line number, saying that the program ran out of memory. <a href="#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( a ); </pre> -<p> <p>See also <a href="#qWarning">qWarning</a>() and <a href="debug.html">Debugging</a>. +<p> <p>See also <a href="#qWarning">tqWarning</a>() and <a href="debug.html">Debugging</a>. -<h3 class=fn>void <a name="qAddPostRoutine"></a>qAddPostRoutine ( TQtCleanUpFunction p ) +<h3 class=fn>void <a name="qAddPostRoutine"></a>tqAddPostRoutine ( TQtCleanUpFunction p ) </h3> <p> Adds a global routine that will be called from the TQApplication @@ -1847,12 +1847,12 @@ nothing, like this: void init_ptr() { global_ptr = new int[100]; // allocate data - <a href="#qAddPostRoutine">qAddPostRoutine</a>( cleanup_ptr ); // delete later + <a href="#qAddPostRoutine">tqAddPostRoutine</a>( cleanup_ptr ); // delete later } </pre> <p> Note that for an application- or module-wide cleanup, -<a href="#qAddPostRoutine">qAddPostRoutine</a>() is often not suitable. People have a tendency to +<a href="#qAddPostRoutine">tqAddPostRoutine</a>() is often not suitable. People have a tendency to make such modules dynamically loaded, and then unload those modules long before the TQApplication destructor is called, for example. <p> For modules and libraries, using a reference-counted initialization @@ -1883,7 +1883,7 @@ to call a cleanup function at the right time: <p> By selecting the right parent widget/object, this can often be made to clean up the module's data at the exact right moment. -<h3 class=fn>void <a name="qDebug"></a>qDebug ( const char * msg, ... ) +<h3 class=fn>void <a name="qDebug"></a>tqDebug ( const char * msg, ... ) </h3> <p> @@ -1893,7 +1893,7 @@ has been installed). similar to the C printf() function. <p> Example: <pre> - <a href="#qDebug">qDebug</a>( "my window handle = %x", myWidget->id() ); + <a href="#qDebug">tqDebug</a>( "my window handle = %x", myWidget->id() ); </pre> <p> Under X11, the text is printed to stderr. Under Windows, the text @@ -1902,9 +1902,9 @@ is sent to the debugger. the '\0'-terminator). <p> <b>Warning:</b> Passing (const char *)0 as argument to tqDebug might lead to crashes on certain platforms due to the platforms printf implementation. -<p> <p>See also <a href="#qWarning">qWarning</a>(), <a href="#qFatal">qFatal</a>(), <a href="#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging</a>. +<p> <p>See also <a href="#qWarning">tqWarning</a>(), <a href="#qFatal">tqFatal</a>(), <a href="#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging</a>. -<h3 class=fn>void <a name="qFatal"></a>qFatal ( const char * msg, ... ) +<h3 class=fn>void <a name="qFatal"></a>tqFatal ( const char * msg, ... ) </h3> <p> @@ -1917,7 +1917,7 @@ similar to the C printf() function. int divide( int a, int b ) { if ( b == 0 ) // program error - <a href="#qFatal">qFatal</a>( "divide: cannot divide by zero" ); + <a href="#qFatal">tqFatal</a>( "divide: cannot divide by zero" ); return a/b; } </pre> @@ -1928,7 +1928,7 @@ is sent to the debugger. the '\0'-terminator). <p> <b>Warning:</b> Passing (const char *)0 as argument to tqFatal might lead to crashes on certain platforms due to the platforms printf implementation. -<p> <p>See also <a href="#qDebug">qDebug</a>(), <a href="#qWarning">qWarning</a>(), <a href="#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging</a>. +<p> <p>See also <a href="#qDebug">tqDebug</a>(), <a href="#qWarning">tqWarning</a>(), <a href="#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging</a>. <h3 class=fn>TQtMsgHandler <a name="qInstallMsgHandler"></a>qInstallMsgHandler ( TQtMsgHandler h ) </h3> @@ -1977,19 +1977,19 @@ done on an application-wide basis to control debug output. } </pre> -<p> <p>See also <a href="#qDebug">qDebug</a>(), <a href="#qWarning">qWarning</a>(), <a href="#qFatal">qFatal</a>(), and <a href="debug.html">Debugging</a>. +<p> <p>See also <a href="#qDebug">tqDebug</a>(), <a href="#qWarning">tqWarning</a>(), <a href="#qFatal">tqFatal</a>(), and <a href="debug.html">Debugging</a>. -<h3 class=fn>bool <a name="qSysInfo"></a>qSysInfo ( int * wordSize, bool * bigEndian ) +<h3 class=fn>bool <a name="qSysInfo"></a>tqSysInfo ( int * wordSize, bool * bigEndian ) </h3> <p> Obtains information about the system. <p> The system's word size in bits (typically 32) is returned in <em>*wordSize</em>. The <em>*bigEndian</em> is set to TRUE if this is a big-endian machine, or to FALSE if this is a little-endian machine. -<p> In debug mode, this function calls <a href="#qFatal">qFatal</a>() with a message if the +<p> In debug mode, this function calls <a href="#qFatal">tqFatal</a>() with a message if the computer is truly weird (i.e. different endianness for 16 bit and 32 bit integers); in release mode it returns FALSE. -<h3 class=fn>void <a name="qSystemWarning"></a>qSystemWarning ( const char * msg, int code ) +<h3 class=fn>void <a name="qSystemWarning"></a>tqSystemWarning ( const char * msg, int code ) </h3> <p> Prints the message <em>msg</em> and uses <em>code</em> to get a system specific @@ -1999,7 +1999,7 @@ failures in platform specific API calls. <p> This function does nothing when TQt is built with <tt>QT_NO_DEBUG</tt> defined. -<h3 class=fn>const char * <a name="qVersion"></a>qVersion () +<h3 class=fn>const char * <a name="qVersion"></a>tqVersion () </h3> <p> Returns the TQt version number as a string, for example, "2.3.0" or @@ -2008,7 +2008,7 @@ defined. 0xmmiibb (m = major, i = minor, b = bugfix). For example, TQt 3.0.5's <tt>TQT_VERSION</tt> is 0x030005. -<h3 class=fn>void <a name="qWarning"></a>qWarning ( const char * msg, ... ) +<h3 class=fn>void <a name="qWarning"></a>tqWarning ( const char * msg, ... ) </h3> <p> @@ -2021,7 +2021,7 @@ similar to the C printf() function. void f( int c ) { if ( c > 200 ) - <a href="#qWarning">qWarning</a>( "f: bad argument, c == %d", c ); + <a href="#qWarning">tqWarning</a>( "f: bad argument, c == %d", c ); } </pre> @@ -2031,7 +2031,7 @@ is sent to the debugger. the '\0'-terminator). <p> <b>Warning:</b> Passing (const char *)0 as argument to tqWarning might lead to crashes on certain platforms due to the platforms printf implementation. -<p> <p>See also <a href="#qDebug">qDebug</a>(), <a href="#qFatal">qFatal</a>(), <a href="#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging</a>. +<p> <p>See also <a href="#qDebug">tqDebug</a>(), <a href="#qFatal">tqFatal</a>(), <a href="#qInstallMsgHandler">qInstallMsgHandler</a>(), and <a href="debug.html">Debugging</a>. <!-- eof --> <hr><p> |