Fix native TQt3 accidental conversion to tquit

pull/1/head
Timothy Pearson 13 years ago
parent d796c9dd93
commit 0f92dd542b

@ -95,7 +95,7 @@ system caption to "Document 1", and \e show() it.
\target close
\printline connect
When the application's last window is closed, it should tquit. Both
When the application's last window is closed, it should quit. Both
the signal and the slot are predefined members of QApplication.
\printline exec
@ -111,7 +111,7 @@ that QApplication returns when it leaves the event loop.
\quotefile application/application.cpp
Since the implementation is tquite large (almost 300 lines) we
Since the implementation is quite large (almost 300 lines) we
won't list the whole thing. (The source code is included in the
examples/application directory.) Before we start with the constructor
there are three \c{#include}s worth mentioning:

@ -122,7 +122,7 @@ Qtopia. You can find a partial list here:
<hr width="30%">
\section2 Are there any books about Qt programming?
Yes, there are tquite a few books on Qt, most of them
Yes, there are quite a few books on Qt, most of them
available from amazon.com. You can find a partial list at
\l http://www.trolltech.com/developer/books.html.

@ -141,7 +141,7 @@ void <a name="f264"></a>ABMainWindow::setupMenuBar()
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( TQPixmap( "fileprint.xpm" ), "Print...", this, SLOT( filePrint() ), CTRL + Key_P );
file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Close", this, SLOT( closeWindow() ), CTRL + Key_W );
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT( <a href="qapplication.html#tquit">tquit</a>() ), CTRL + Key_Q );
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT( <a href="qapplication.html#quit">quit</a>() ), CTRL + Key_Q );
}
void <a name="f265"></a>ABMainWindow::setupFileTools()
@ -647,7 +647,7 @@ int main( int argc, char ** argv )
a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( mw );
<a name="x611"></a> mw-&gt;<a href="qwidget.html#show">show</a>();
<a name="x609"></a><a name="x608"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL( <a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>() ), &amp;a, SLOT( <a href="qapplication.html#tquit">tquit</a>() ) );
<a name="x609"></a><a name="x608"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL( <a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>() ), &amp;a, SLOT( <a href="qapplication.html#quit">quit</a>() ) );
int result = a.<a href="qapplication.html#exec">exec</a>();
delete mw;
return result;

@ -165,7 +165,7 @@ int main(int argc, char **argv)
ad.show();
<a name="x489"></a><a name="x487"></a> TQObject::<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()),
<a name="x488"></a> &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a name="x488"></a> &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
<a name="x486"></a> return a.<a href="qapplication.html#exec">exec</a>();
}

@ -372,7 +372,7 @@ const <a href="qstring.html">TQString</a> APP_KEY = "/Chart/";
<a href="qobject.html#connect">connect</a>( optionsSetOptionsAction, SIGNAL( <a href="qaction.html#activated">activated</a>() ),
this, SLOT( optionsSetOptions() ) );
fileQuitAction = new <a href="qaction.html">TQAction</a>( "Quit", "&amp;Quit", CTRL+Key_Q, this, "tquit" );
fileQuitAction = new <a href="qaction.html">TQAction</a>( "Quit", "&amp;Quit", CTRL+Key_Q, this, "quit" );
<a href="qobject.html#connect">connect</a>( fileQuitAction, SIGNAL( <a href="qaction.html#activated">activated</a>() ), this, SLOT( fileQuit() ) );

@ -454,7 +454,7 @@ static TQImage *logoimg;
file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>("&amp;Print...", this, SLOT(print()), CTRL+Key_P);
file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>("E&amp;xit", qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()), CTRL+Key_Q);
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>("E&amp;xit", qApp, SLOT(<a href="qapplication.html#quit">quit</a>()), CTRL+Key_Q);
menu-&gt;<a href="qmenudata.html#insertItem">insertItem</a>("&amp;File", file);
<a href="qpopupmenu.html">TQPopupMenu</a>* edit = new <a href="qpopupmenu.html">TQPopupMenu</a>( menu );
@ -922,7 +922,7 @@ int main(int argc, char** argv)
else
<a name="x2968"></a> m.<a href="qwidget.html#showMaximized">showMaximized</a>();
TQObject::<a href="qobject.html#connect">connect</a>( qApp, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
TQObject::<a href="qobject.html#connect">connect</a>( qApp, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
return app.<a href="qapplication.html#exec">exec</a>();
}

@ -160,7 +160,7 @@ const <a href="qstring.html">TQString</a> APP_KEY = "/Chart/";
<a href="qobject.html#connect">connect</a>( optionsSetOptionsAction, SIGNAL( <a href="qaction.html#activated">activated</a>() ),
this, SLOT( optionsSetOptions() ) );
fileQuitAction = new <a href="qaction.html">TQAction</a>( "Quit", "&amp;Quit", CTRL+Key_Q, this, "tquit" );
fileQuitAction = new <a href="qaction.html">TQAction</a>( "Quit", "&amp;Quit", CTRL+Key_Q, this, "quit" );
<a href="qobject.html#connect">connect</a>( fileQuitAction, SIGNAL( <a href="qaction.html#activated">activated</a>() ), this, SLOT( fileQuit() ) );

@ -166,12 +166,12 @@ public:
<a href="qlabel.html">TQLabel</a> *lb = new <a href="qlabel.html">TQLabel</a>( itext, this );
<a name="x784"></a> lb-&gt;<a href="qlabel.html#setAlignment">setAlignment</a>( AlignHCenter );
infoText = new <a href="qtextview.html">TQTextView</a>( this );
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( tr("Quit") , this );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( tr("Quit") , this );
connect( server, SIGNAL(newConnect(ClientSocket*)),
SLOT(newConnect(ClientSocket*)) );
connect( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp,
SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
connect( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp,
SLOT(<a href="qapplication.html#quit">quit</a>()) );
}
~ServerInfo()
@ -245,11 +245,11 @@ public:
inputText = new <a href="qlineedit.html">TQLineEdit</a>( hb );
<a href="qpushbutton.html">TQPushButton</a> *send = new <a href="qpushbutton.html">TQPushButton</a>( tr("Send") , hb );
<a href="qpushbutton.html">TQPushButton</a> *close = new <a href="qpushbutton.html">TQPushButton</a>( tr("Close connection") , this );
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( tr("Quit") , this );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( tr("Quit") , this );
<a name="x792"></a> connect( send, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), SLOT(sendToServer()) );
connect( close, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), SLOT(closeConnection()) );
connect( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
connect( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
// create the socket and connect various of its signals
socket = new <a href="qsocket.html">TQSocket</a>( this );

@ -778,7 +778,7 @@ int main( int argc, char **argv )
b1-&gt;<a href="qlayout.html#add">add</a>( new <a href="qpushbutton.html">TQPushButton</a>( "More text", f ) );
b1-&gt;<a href="qlayout.html#add">add</a>( new <a href="qpushbutton.html">TQPushButton</a>( "Even longer button text", f ) );
<a href="qpushbutton.html">TQPushButton</a>* qb = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", f );
a.<a href="qobject.html#connect">connect</a>( qb, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), SLOT( tquit() ) );
a.<a href="qobject.html#connect">connect</a>( qb, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), SLOT( quit() ) );
b1-&gt;<a href="qlayout.html#add">add</a>( qb );
<a href="qwidget.html">TQWidget</a> *wid = new <a href="qwidget.html">TQWidget</a>( f );

@ -108,7 +108,7 @@ body { background: #ffffff; color: black; }
</ul><p>We will change a few properties for each of the push buttons in the <em>Property Editor</em> window.</p>
<ul><li><p>Click the left-most push button, and change its name to "clearPushButton", and its text to "&amp;Clear".</p>
<li><p>Click the middle push button and change its name to "calculatePushButton", its text to "Calculate", and its default property to "True".</p>
<li><p>Click the right-most push button, change its name to "tquitPushButton", and change its text to "&amp;Quit".</p>
<li><p>Click the right-most push button, change its name to "quitPushButton", and change its text to "&amp;Quit".</p>
</ul><p align="center"><img align="middle" src="qs-pushbutt.png" width="428" height="232">
</p>
<h5><a name="3-1-4"></a>Adding Spacers</h5>
@ -179,9 +179,9 @@ body { background: #ffffff; color: black; }
<li><p>Select clearPushButton for the Sender, clicked() for the Signal, numberLineEdit for the Receiver, and setFocus() for the Slot.</p>
</ul><p align="center"><img align="middle" src="qs-editconn1.png" width="608" height="391">
</p>
<p>We also need to connect the tquit button to the form:</p>
<p>We also need to connect the quit button to the form:</p>
<ul><li><p>Click <b>New</b>.</p>
<li><p>Select tquitPushButton for Sender, clicked() for Signal, ConversionForm for Receiver, and close() for Slot.</p>
<li><p>Select quitPushButton for Sender, clicked() for Signal, ConversionForm for Receiver, and close() for Slot.</p>
</ul><p>We want to connect the calculate button and the other widgets, but the slot we want to use is not listed in the combobox. We will need to create a new slot so that we can select it from the list to complete our connections.</p>
<ul><li><p>Click <b>New</b>.</p>
<li><p>Select calculatePushButton for the Sender, clicked() for the Signal, and ConversionForm for the Receiver.</p>

@ -126,7 +126,7 @@ body { background: #ffffff; color: black; }
<p align="center"><img align="middle" src="mw-objexplor.png" width="328" height="465">
</p>
<blockquote><p align="center"><em>Object Explorer</em></p></blockquote>
<!-- index Code Editing --><!-- index Subclassing --><!-- index Forward declarations --><!-- index Includes --><!-- index Adding!Code --><!-- index Adding!Forward declarations --><!-- index Adding!Includes --><!-- index Adding!Class variables --><!-- index Class variables --><!-- index Deleting!Forward declarations --><!-- index Deleting!Includes --><!-- index Deleting!Class variables --><!-- index Forms!Forward declarations --><!-- index Forms!Class variables --><!-- index Forms!Code editing --><!-- index Forms!destructor --><!-- index Forms!constructor --><p>In the original version of <em>TQt Designer</em> if you wanted to provide code for a form you had to subclass the form and put your code in the subclass. This version fully supports the subclassing approach, but now provides an alternative: placing your code directly into forms. Writing code in <em>TQt Designer</em> is not tquite the same as subclassing, for example you cannot get direct access to the form's constructor or destructor. If you need code to be executed by the constructor create a slot called<!-- index init() --> <tt>void init()</tt>; if it exists it will be called from the constructor. Similarly, if you need code to be executed before destruction create a slot called<!-- index destroy() --> <tt>void destroy()</tt>. You can also add your own class variables which will be put in the generated constructor's code, and you can add forward declarations and any includes you retquire. To add a variable or declaration, right click the appropriate item, e.g. Class Variables, then click <b>New</b> then enter your text, e.g. <tt>TQString m_filename</tt>. If one or more items exist, right click to pop up a menu that has New, Edit and Delete options. If you want to enter multiple items, e.g. multiple include files or multiple data members, it is easiest to right click in the relevant section, then click <b>Edit</b> to invoke an Edit dialog. To edit code, just click the name of a function to invoke the code editor. Code editing and creating slots are covered later in the chapter.</p>
<!-- index Code Editing --><!-- index Subclassing --><!-- index Forward declarations --><!-- index Includes --><!-- index Adding!Code --><!-- index Adding!Forward declarations --><!-- index Adding!Includes --><!-- index Adding!Class variables --><!-- index Class variables --><!-- index Deleting!Forward declarations --><!-- index Deleting!Includes --><!-- index Deleting!Class variables --><!-- index Forms!Forward declarations --><!-- index Forms!Class variables --><!-- index Forms!Code editing --><!-- index Forms!destructor --><!-- index Forms!constructor --><p>In the original version of <em>TQt Designer</em> if you wanted to provide code for a form you had to subclass the form and put your code in the subclass. This version fully supports the subclassing approach, but now provides an alternative: placing your code directly into forms. Writing code in <em>TQt Designer</em> is not quite the same as subclassing, for example you cannot get direct access to the form's constructor or destructor. If you need code to be executed by the constructor create a slot called<!-- index init() --> <tt>void init()</tt>; if it exists it will be called from the constructor. Similarly, if you need code to be executed before destruction create a slot called<!-- index destroy() --> <tt>void destroy()</tt>. You can also add your own class variables which will be put in the generated constructor's code, and you can add forward declarations and any includes you retquire. To add a variable or declaration, right click the appropriate item, e.g. Class Variables, then click <b>New</b> then enter your text, e.g. <tt>TQString m_filename</tt>. If one or more items exist, right click to pop up a menu that has New, Edit and Delete options. If you want to enter multiple items, e.g. multiple include files or multiple data members, it is easiest to right click in the relevant section, then click <b>Edit</b> to invoke an Edit dialog. To edit code, just click the name of a function to invoke the code editor. Code editing and creating slots are covered later in the chapter.</p>
<!-- index Subclassing --><p>If you subclass the form you create your own<!-- index .cpp --> <tt>.cpp</tt> files which can contain your own constructor, destructor, functions, slots, declarations and variables as your retquirements dictate. (See <a href="designer-manual-6.html#1">Subclassing</a> for more information.)</p>
</blockquote>
<h4><a name="4-3"></a>Adding Custom Actions</h4>
@ -301,7 +301,7 @@ body { background: #ffffff; color: black; }
<p align="center"><img align="middle" src="mw-conn4.png" width="600" height="407">
</p>
<h4><a name="6-5"></a>Editing the Code: Setting Up</h4>
<p>There is tquite a lot of code to include in the application, but this does not mean that a lot of typing is retquired! All the code is reproduced here so, if you're reading an electronic copy, you can simply cut and paste. If you're reading a print copy, all the code is provided in <tt>/tools/designer/examples/colortool</tt>; simply open the relevant <tt>.ui.h</tt> files and copy and paste from there into your own version of the project.</p>
<p>There is quite a lot of code to include in the application, but this does not mean that a lot of typing is retquired! All the code is reproduced here so, if you're reading an electronic copy, you can simply cut and paste. If you're reading a print copy, all the code is provided in <tt>/tools/designer/examples/colortool</tt>; simply open the relevant <tt>.ui.h</tt> files and copy and paste from there into your own version of the project.</p>
<blockquote>
<p align="center"><b> Cutting &amp; Pasting Into the Code Editor</b></p>
<p>If you cut and paste code from this manual, because we've indented the code for readability, the code will be over-indented in <em>TQt Designer</em>. This is easily solved. Simply select the function containing the pasted code (either with the mouse, or <b>Shift+Arrow</b>s) and press <b>Tab</b>: this will make <em>TQt Designer</em> fix the indentation. Note that you must select the <em>entire</em> function, including its name and parameters.</p>
@ -474,7 +474,7 @@ body { background: #ffffff; color: black; }
</pre>
<p>When <em>TQt Designer</em> generates a <tt>main.cpp</tt> file it includes this line:</p>
<pre>
a.connect( &amp;a, SIGNAL( lastWindowClosed() ), &amp;a, SLOT( tquit() ) );
a.connect( &amp;a, SIGNAL( lastWindowClosed() ), &amp;a, SLOT( quit() ) );
</pre>
<p>If we left this code as-is, the user could by-pass our own termination code by clicking the main window's close (X) button. Since we want to give the user the option to save any unsaved changes we need to ensure that we intercept any attempt to close the application. To achieve this we delete the connection and add a new slot, <tt>closeEvent()</tt> which will intercept attempts to close the application and call our <tt>fileExit()</tt> function.</p>
<p>Click <tt>main.cpp</tt> in the Project Overview window. The file will appear in an editing window. Delete the connect line.</p>

@ -201,7 +201,7 @@ body { background: #ffffff; color: black; }
}
}
</pre>
<p>The code for this function is tquite long, but it isn't difficult. We start by setting a default color to white. If there are any colors in the <tt>m_colors</tt> map we set the default color to be the current color showing in the current view. We then invoke TQt's static <a href="qcolordialog.html#getColor">getColor()</a> dialog, passing it the default color. (If the user cancels an invalid color is returned.)</p>
<p>The code for this function is quite long, but it isn't difficult. We start by setting a default color to white. If there are any colors in the <tt>m_colors</tt> map we set the default color to be the current color showing in the current view. We then invoke TQt's static <a href="qcolordialog.html#getColor">getColor()</a> dialog, passing it the default color. (If the user cancels an invalid color is returned.)</p>
<p>If the user chose a color we want to show their chosen color in our custom dialog, so we create a pixmap and fill it with their chosen color. We create an instance of our ColorNameForm as a modal dialog (third argument is TRUE). We then call its <tt>setColors()</tt> function to set the colors in the <tt>m_colors</tt> map (so that the <tt>validate()</tt> function will work correctly). We set its colorLabel's pixmap to the pixmap we've just created, i.e. to a rectangle in the user's chosen color.</p>
<p>We execute (<tt>exec()</tt>) the dialog. If the user clicks OK (and the color name they've entered is valid), the call will return a true value. In this case we retrieve the name they've entered from the line edit and create a new entry in the <tt>m_colors</tt> map using the name the user has given and the color they chose.</p>
<p>At this point we could simply mark the views "dirty" and call repopulate. Instead we'll add the new color to each view directly and save the overhead of a full update (which might be considerable if we have thousands of colors).</p>

@ -66,7 +66,7 @@ body { background: #ffffff; color: black; }
<p align="center"><img align="middle" src="designer1.jpg">
</p>
<p><em>TQt Designer</em> reads and writes <tt>.ui</tt> files, e.g. <tt>form.ui</tt>. The user interface compiler, <tt>uic</tt>, creates both a header file, e.g. <tt>form.h</tt>, and an implementation file, e.g. <tt>form.cpp</tt>, from the <tt>.ui</tt> file. The application code in <tt>main.cpp</tt> <tt>#include</tt>s <tt>form.h</tt>. Typically <tt>main.cpp</tt> is used to instantiate the TQApplication object and start off the event loop.</p>
<p>While this approach is simple, it isn't sufficient for more complex dialogs. Complex dialogs tend to have tquite a lot of logic attached to the form's widgets, more logic than can usually be expressed with predefined signals and slots. One way of handling this extra logic is to write a controller class in the application code that adds functionality to the form. This is possible because <tt>uic</tt> generated classes expose a form's controls and their signals to the public space. The big disadvantage of this method is that it's not exactly TQt-style. If you were not using <em>TQt Designer</em>, you would almost always add the logic to the form itself, where it belongs.</p>
<p>While this approach is simple, it isn't sufficient for more complex dialogs. Complex dialogs tend to have quite a lot of logic attached to the form's widgets, more logic than can usually be expressed with predefined signals and slots. One way of handling this extra logic is to write a controller class in the application code that adds functionality to the form. This is possible because <tt>uic</tt> generated classes expose a form's controls and their signals to the public space. The big disadvantage of this method is that it's not exactly TQt-style. If you were not using <em>TQt Designer</em>, you would almost always add the logic to the form itself, where it belongs.</p>
<p>This is why the capability of adding custom slots and member variables to a form was added to <em>TQt Designer</em> early on. The big additional benefit with this approach is that you can use <em>TQt Designer</em> to connect signals to those custom slots, in the same elegant graphical way that is used to connect signals to predefined slots. The <tt>uic</tt> then adds an empty stub for each custom slot to the generated <tt>form.cpp</tt> implementation file.</p>
<p>The big question now is how to add custom implementation code to those custom slots. Adding code to the generated <tt>form.cpp</tt> is not an option, as this file gets recreated by the <tt>uic</tt> whenever the form changes -- and we don't want a combination of generated and handwritten code. There are two possible solutions, which we'll cover next.</p>
<h4><a name="3-1"></a>The subclassing approach</h4>

@ -176,7 +176,7 @@ INCLUDEPATH += $(QTDIR)/tools/designer/uilib
</pre>
<p>We do <em>not</em> include the <tt>creditformbase.ui</tt> file since this file will be read at runtime, as we'll see shortly. We must include the <tt>tqui</tt> library since the functionality we retquire is not part of the standard TQt library.</p>
<h4><a name="2-2"></a>Creating main.cpp</h4>
<p>The<!-- index main.cpp --> <tt>main.cpp</tt> is tquite standard. It will invoke the form we're going to create in <em>TQt Designer</em> as its main form. This form will then load and execute the dynamic dialog.</p>
<p>The<!-- index main.cpp --> <tt>main.cpp</tt> is quite standard. It will invoke the form we're going to create in <em>TQt Designer</em> as its main form. This form will then load and execute the dynamic dialog.</p>
<pre> #include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
#include "mainform.h"
@ -194,7 +194,7 @@ INCLUDEPATH += $(QTDIR)/tools/designer/uilib
<p>We create a new instance of our MainForm class, set it to be the main widget, show it and enter the event loop in the <tt>app.exec()</tt> call.</p>
<h4><a name="2-3"></a>Creating the Main Form</h4>
<h5><a name="2-3-1"></a>Designing the Form</h5>
<ol type=1><li><p>Open the<!-- index receiver.pro --> <tt>receiver.pro</tt> project file in <em>TQt Designer</em>. We'll create a dialog as our main window which we'll use to invoke the dynamic dialog. Press <b>Ctrl+N</b> to launch the <em>New File</em> dialog and click <b>OK</b> to get the default which is a dialog. Change the dialog's name to 'MainForm' and its caption to 'Main Form'. Add two buttons, one called 'creditPushButton' with the text '&amp;Credit Dialog', and the other called 'tquitPushButton' with the text '&amp;Quit'. (For each button click the <b>Push Button</b> toolbar button, then click the form. Change the properties in the property window to those we've just described.)</p>
<ol type=1><li><p>Open the<!-- index receiver.pro --> <tt>receiver.pro</tt> project file in <em>TQt Designer</em>. We'll create a dialog as our main window which we'll use to invoke the dynamic dialog. Press <b>Ctrl+N</b> to launch the <em>New File</em> dialog and click <b>OK</b> to get the default which is a dialog. Change the dialog's name to 'MainForm' and its caption to 'Main Form'. Add two buttons, one called 'creditPushButton' with the text '&amp;Credit Dialog', and the other called 'quitPushButton' with the text '&amp;Quit'. (For each button click the <b>Push Button</b> toolbar button, then click the form. Change the properties in the property window to those we've just described.)</p>
<li><p>We will now add a couple of labels so that we can show the settings the user chose in the dynamic dialog. Click the <b>Text Label</b> toolbar button, then click the form below the Credit Dialog button. Change the label's <em>text</em> to 'Credit Rating'. Add another text label below the Quit button. Change its <em>name</em> to 'ratingTextLabel' and its <em>text</em> to 'Unrated'.</p>
<li><p>We'll now lay out the widgets. Click the form then press <b>Ctrl+G</b> (lay out in a grid).</p>
<li><!-- index Signals and Slots!Connecting to Close a Dialog --><p>We'll now handle the signals and slots connections. Invoke the <em>View and Edit Connections</em> dialog and connect the credit dialog button's clicked() signal to a new creditDialog() custom slot (which is created by clicking the <b>Edit Slots...</b> button). Now connect the Quit button's<!-- index clicked() --> <tt>clicked()</tt> signal to the dialog's<!-- index accept() --> <tt>accept()</tt> function.</p>

@ -100,7 +100,7 @@ void MainForm::optionsDlg()
}
void MainForm::tquit()
void MainForm::quit()
{
<a name="x2865"></a> TQApplication::<a href="qapplication.html#exit">exit</a>( 0 );
}
@ -151,7 +151,7 @@ int main( int argc, char ** argv )
<a href="qapplication.html">TQApplication</a> a( argc, argv );
MainForm *w = new MainForm;
w-&gt;show();
<a name="x2868"></a><a name="x2867"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL( <a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>() ), w, SLOT( tquit() ) );
<a name="x2868"></a><a name="x2867"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL( <a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>() ), w, SLOT( quit() ) );
return a.<a href="qapplication.html#exec">exec</a>();
}
</pre>

@ -243,7 +243,7 @@ TQtopia. You can find a partial list here:
<p> <hr width="30%">
<h3> Are there any books about TQt programming?
</h3>
<a name="1-9"></a><p> Yes, there are tquite a few books on TQt, most of them
<a name="1-9"></a><p> Yes, there are quite a few books on TQt, most of them
available from amazon.com. You can find a partial list at
<a href="http://www.trolltech.com/developer/books.html">http://www.trolltech.com/developer/books.html</a>.
<p> The official TQt book is

@ -2129,8 +2129,8 @@ qAddPostRoutine:
<a href="qstyle.html#querySubControl">TQStyle</a><li>querySubControlMetrics:
<a href="qstyle.html#querySubControlMetrics">TQStyle</a><li>querySubObject:
<a href="qaxbase.html#querySubObject">TQAxBase</a> <a href="qaxbase.html#querySubObject">TQAxObject</a> <a href="qaxbase.html#querySubObject">TQAxWidget</a><li>question:
<a href="qmessagebox.html#question">TQMessageBox</a><li>tquit:
<a href="qapplication.html#tquit">TQApplication</a><li>qwsDecoration:
<a href="qmessagebox.html#question">TQMessageBox</a><li>quit:
<a href="qapplication.html#quit">TQApplication</a><li>qwsDecoration:
<a href="qapplication.html#qwsDecoration">TQApplication</a><li>qwsEvent:
<a href="qwidget.html#qwsEvent">TQWidget</a><li>qwsEventFilter:
<a href="qapplication.html#qwsEventFilter">TQApplication</a><li>qwsRenderToDisk:

@ -66,7 +66,7 @@ will complain to you.
TQt can do is to send certain hints to the window manager. The window
manager, a separate process, may either obey, ignore or misunderstand
them. Due to the partially unclear Inter-Client Communication
Conventions Manual (ICCCM), window placement is handled tquite
Conventions Manual (ICCCM), window placement is handled quite
differently in existing window managers.
<p> X11 provides no standard or easy way to get the frame geometry once
the window is decorated. TQt solves this problem with nifty heuristics

@ -67,7 +67,7 @@ Doing what it tells you to <em>do</em> helps, too.
OS 8 addendum.</a>
<p> <b>The Microsoft Windows User Experience</b>, ISBN 1-55615-679-0,
is Microsoft's look and feel Bible. Indispensable for everyone who
has customers that worship Microsoft, and it's tquite good, too.
has customers that worship Microsoft, and it's quite good, too.
<a href="http://www.amazon.com/exec/obidos/ASIN/0735605661/trolltech/t">(Read more or buy it.)</a>
<p> Microsoft's guidelines are often available on the web, but have
occasionally been hidden in an impenetrable maze of javascript.

@ -215,7 +215,7 @@ int main( int argc, char **argv )
#ifndef QT_NO_WIDGET_TOPEXTRA // for TQt/Embedded minimal build
h.<a href="qwidget.html#setCaption">setCaption</a>( "TQt says hello" );
#endif
TQObject::<a href="qobject.html#connect">connect</a>( &amp;h, SIGNAL(clicked()), &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
TQObject::<a href="qobject.html#connect">connect</a>( &amp;h, SIGNAL(clicked()), &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
<a name="x1650"></a> h.<a href="qwidget.html#setFont">setFont</a>( TQFont("times",32,TQFont::Bold) ); // default font
<a name="x1648"></a> h.<a href="qwidget.html#setBackgroundColor">setBackgroundColor</a>( TQt::white ); // default bg color
a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &amp;h );

@ -463,7 +463,7 @@ int main( int argc, char ** argv )
<a name="x1045"></a> help-&gt;<a href="qwidget.html#showMaximized">showMaximized</a>();
<a name="x1039"></a> TQObject::<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()),
&amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
&amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
return a.<a href="qapplication.html#exec">exec</a>();
}

@ -140,12 +140,12 @@ public:
<a href="qlabel.html">TQLabel</a> *lb = new <a href="qlabel.html">TQLabel</a>( itext, this );
lb-&gt;<a href="qlabel.html#setAlignment">setAlignment</a>( AlignHCenter );
infoText = new <a href="qtextview.html">TQTextView</a>( this );
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "tquit" , this );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "quit" , this );
connect( httpd, SIGNAL(newConnect()), SLOT(newConnect()) );
connect( httpd, SIGNAL(endConnect()), SLOT(endConnect()) );
connect( httpd, SIGNAL(wroteToClient()), SLOT(wroteToClient()) );
<a name="x724"></a> connect( tquit, SIGNAL(<a href="qbutton.html#pressed">pressed</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a name="x724"></a> connect( quit, SIGNAL(<a href="qbutton.html#pressed">pressed</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
}
~HttpInfo()

@ -112,7 +112,7 @@ private:
<a href="qmainwindow.html#setCentralWidget">setCentralWidget</a>(central);
<a href="qpopupmenu.html">TQPopupMenu</a>* file = new <a href="qpopupmenu.html">TQPopupMenu</a>(this);
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()),
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()),
<a name="x1921"></a> TQAccel::<a href="qaccel.html#stringToKey">stringToKey</a>(<a href="qobject.html#tr">tr</a>("Ctrl+Q")) );
<a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="qobject.html#tr">tr</a>("&amp;File"), file );
@ -293,7 +293,7 @@ int main( int argc, char** argv )
MyWidget* w = showLang((const char*)qm[i]);
if( w == 0 ) exit( 0 );
TQObject::<a href="qobject.html#connect">connect</a>(w, SIGNAL(closed()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()));
TQObject::<a href="qobject.html#connect">connect</a>(w, SIGNAL(closed()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()));
<a name="x1953"></a> w-&gt;<a href="qwidget.html#setGeometry">setGeometry</a>(x,y,197,356);
w-&gt;<a href="qwidget.html#show">show</a>();
if ( tight ) {

@ -263,7 +263,7 @@ your application, translators won't be able to override
it. The correct idiom is
<p> <pre>
<a href="qpopupmenu.html">TQPopupMenu</a> *file = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( tr("&amp;Quit"), this, SLOT(tquit()),
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( tr("&amp;Quit"), this, SLOT(quit()),
TQKeySequence(tr("Ctrl+Q", "File|Quit")) );
</pre>

@ -287,7 +287,7 @@
"QApplication::polish" qapplication.html#polish
"QApplication::postEvent" qapplication.html#postEvent
"QApplication::processEvents" qapplication.html#processEvents
"QApplication::tquit" qapplication.html#tquit
"QApplication::quit" qapplication.html#quit
"QApplication::qwsDecoration" qapplication.html#qwsDecoration
"QApplication::qwsEventFilter" qapplication.html#qwsEventFilter
"QApplication::qwsSetCustomColors" qapplication.html#qwsSetCustomColors

@ -76,7 +76,7 @@ public:
<a name="x540"></a> menubar-&gt;<a href="qmenubar.html#setSeparator">setSeparator</a>( TQMenuBar::InWindowsStyle );
<a href="qpopupmenu.html">TQPopupMenu</a>* popup;
popup = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
popup-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;Quit", qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
popup-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;Quit", qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
menubar-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;File", popup );
// ...and tell the layout about it.

@ -39,7 +39,7 @@ body { background: #ffffff; color: black; }
<p>To start, run <em>TQt Linguist</em>, either from the taskbar menu, or by double clicking the desktop icon, or type <tt>linguist</tt> (followed by <b>Enter</b>) at the command line. Once <em>TQt Linguist</em> has started choose <b>File|Open</b> from the menu bar and select a <tt>.ts</tt> translation source file to work on.</p>
<p><em>TQt Linguist</em>'s main window is divided into four main areas. The left hand side contains the Context list, the top right is the Source text area, the middle right is the translation area and the bottom right is the phrases and guesses area. We'll describe them in detail later.</p>
<p>Click on one of the contexts in the context list (left hand side) and then click on one of the phrases that appears in the Source text area (top right). The phrase will be copied into the translation area (middle right). Click under the word 'Translation' and type in the translation. Click <b>Ctrl+Enter</b> (Done &amp; Next) to confirm that you have completed the translation and to move on to the next phrase that retquires translation.</p>
<p>The cycle of entering a translation then pressing <b>Ctrl+Enter</b> can be repeated until all the translations are done or until you finish the session. Linguist will attempt to fill the "phrases and guesses" area with possible translations from any open phrase books and any previous translations. Each has a keyboard shortcut, e.g. <b>Ctrl+1</b>, <b>Ctrl+2</b>, etc., which you can use to copy the guess into the Translation area. (Mouse users can double click a phrase or guess to move it into the Translation area.) At the end of the session choose <b>File|Save</b> from the menu bar and then <b>File|Exit</b> to tquit.</p>
<p>The cycle of entering a translation then pressing <b>Ctrl+Enter</b> can be repeated until all the translations are done or until you finish the session. Linguist will attempt to fill the "phrases and guesses" area with possible translations from any open phrase books and any previous translations. Each has a keyboard shortcut, e.g. <b>Ctrl+1</b>, <b>Ctrl+2</b>, etc., which you can use to copy the guess into the Translation area. (Mouse users can double click a phrase or guess to move it into the Translation area.) At the end of the session choose <b>File|Save</b> from the menu bar and then <b>File|Exit</b> to quit.</p>
<h3><a name="2"></a>TQt Linguist's Main Window</h3>
<h4><a name="2-1"></a>Context List</h4>
<!-- index Contexts!for Translation --><p>This appears at the left hand side of the main window by default. The first column, 'Done', identifies whether or not the translations for the context have been done. A tick indicates that all the translations have been done and are valid. A question mark indicates that one or more translations have not been done or have failed validation. The second column, 'Context' is the name of the context in which the translation phrases appear. The third column, 'Items' shows two numbers, the first is the number of translations that have been done, and the second is the number of phrases that are in the context; if the numbers are equal then all the translations have been done. Note that a greyed out tick indicates an obsolete translation, i.e. a phrase that was translated in a previous version of the application but which does not occur in the new version.</p>

@ -102,7 +102,7 @@ body { background: #ffffff; color: black; }
rbh = new TQRadioButton( tr("Enabled", "Hue frame"), this );
</pre>
<!-- index Ctrl Key --><p>Ctrl key accelerators are also translatable:</p>
<pre> file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()),
<pre> file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()),
<a href="qobject.html#tr">tr</a>("Ctrl+Q", "Quit") );
</pre>
<p>It is strongly recommended that the two argument form of <tt>tr()</tt> is used for Ctrl key accelerators. The second argument is the only clue the translator has as to the function performed by the accelerator.</p>
@ -336,7 +336,7 @@ TRANSLATIONS = tt2_fr.ts \
<pre> ArrowPad *ap = new ArrowPad( this, "arrow pad" );
</pre>
<p>We also call <tt>MainWindow::tr()</tt> twice, once for the menu item and once for the accelerator.</p>
<!-- index Ctrl Key --><!-- index Alt Key --><pre> file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()),
<!-- index Ctrl Key --><!-- index Alt Key --><pre> file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()),
<a href="qobject.html#tr">tr</a>("Ctrl+Q", "Quit") );
</pre>
<p>Note the use of <tt>tr()</tt> to support different keys in other languages. "Ctrl+Q" is a good choice for Quit in English, but a Dutch translator might want to use "Ctrl+A" (for Afsluiten) and a German translator "Strg+E" (for Beenden). When using <tt>tr()</tt> for Ctrl key accelerators, the two argument form should be used with the second argument describing the function that the accelerator performs.</p>
@ -452,7 +452,7 @@ TRANSLATIONS = tt3_pt.ts
<pre> <a href="qwidget.html#setCaption">setCaption</a>( <a href="qobject.html#tr">tr</a>("Troll Print 1.0") );
</pre>
<p>We must translate the window's caption.</p>
<pre> file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()),
<pre> file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("E&amp;xit"), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()),
<a href="qobject.html#tr">tr</a>("Ctrl+Q", "Quit") );
<a href="qpopupmenu.html">TQPopupMenu</a> *help = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
help-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("&amp;About"), this, SLOT(about()), Key_F1 );
@ -489,7 +489,7 @@ TRANSLATIONS = tt3_pt.ts
<!-- index lupdate --><!-- index tt3_pt.ts --><p>Now run <a href="linguist-manual-2.html#2">lupdate</a> and open <tt>tt3_pt.ts</tt> with <em>TQt Linguist</em>. You should now see two changes.</p>
<p>First, the translation source file now contains <em>three</em> "Enabled", "Disabled" pairs. The first pair is marked "(obs.)" signifying that they are obsolete. This is because these texts appeared in <tt>tr()</tt> calls that have been replaced by new calls with two arguments. The second pair has "two-sided" as their comment, and the third pair has "colors" as their comment. The comments are shown in the <em>Source text and comments</em> area in <em>TQt Linguist</em>.</p>
<p>Second, the translation text "Ativado" and "Desativado" have been automatically used as translations for the new "Enabled" and "Disabled" texts, again to minimize the translator's work. Of course in this case these are not correct for the second occurrence of each word, but they provide a good starting point.</p>
<p>Change the second "Ativado" into "Ativadas" and the second "Desativado" into "Desativadas", then save and tquit. Run <a href="linguist-manual-2.html#3">lrelease</a> to obtain an up-to-date binary <tt>tt3_pt.qm</tt> file, and run Troll Print (or rather Troll Imprimir).</p>
<p>Change the second "Ativado" into "Ativadas" and the second "Desativado" into "Desativadas", then save and quit. Run <a href="linguist-manual-2.html#3">lrelease</a> to obtain an up-to-date binary <tt>tt3_pt.qm</tt> file, and run Troll Print (or rather Troll Imprimir).</p>
<p align="center"><img align="middle" src="tt3_10_pt_good.png" width="208" height="177">
</p>
<blockquote><p align="center"><em>Tutorial 3 Screenshot, "Troll Imprimir 1.0", (Good) Portuguese version</em></p></blockquote>
@ -537,7 +537,7 @@ TRANSLATIONS = tt3_pt.ts
<li><p>Two-sided - unmarked, i.e. untranslated.</p>
</ul></ul><p>Notice that <a href="linguist-manual-2.html#2">lupdate</a> works hard behind the scenes to make revisions easier, and it's pretty smart with numbers.</p>
<p>Go over the translations in <tt>MainWindow</tt> and mark these as "done". Translate "&lt;b&gt;TROLL PRINT&lt;/b&gt;" as "&lt;b&gt;TROLL IMPRIMIR&lt;/b&gt;". When you're translating "Two-sided", press the <em>Guess Again</em> button to translate "Two-sided", but change the "2" into "Dois".</p>
<p>Save and tquit, then run <a href="linguist-manual-2.html#3">lrelease</a>. The Portuguese version should look like this:</p>
<p>Save and quit, then run <a href="linguist-manual-2.html#3">lrelease</a>. The Portuguese version should look like this:</p>
<p align="center"><img align="middle" src="tt3_11_pt.png" width="198" height="187">
</p>
<blockquote><p align="center"><em>Tutorial 3 Screenshot, "Troll Imprimir 1.1", Portuguese version</em></p></blockquote>

@ -582,7 +582,7 @@ int main( int argc, char ** argv ) {
a.<a href="qapplication.html#setMainWidget">setMainWidget</a>(mw);
mw-&gt;<a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Multiple Documents Interface (MDI)" );
mw-&gt;<a href="qwidget.html#show">show</a>();
<a name="x2097"></a><a name="x2096"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a name="x2097"></a><a name="x2096"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
int res = a.<a href="qapplication.html#exec">exec</a>();
return res;
}

@ -242,7 +242,7 @@ private:
file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;Print", print, CTRL+Key_P );
file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "E&amp;xit", qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()), CTRL+Key_Q );
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "E&amp;xit", qApp, SLOT(<a href="qapplication.html#quit">quit</a>()), CTRL+Key_Q );
<a href="qpopupmenu.html">TQPopupMenu</a> *edit = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
<a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( edit );

@ -97,7 +97,7 @@ int main( int argc, char **argv )
: <a href="qmainwindow.html">TQMainWindow</a>( 0, "mainwindow" )
{
<a href="qpopupmenu.html">TQPopupMenu</a> *filemenu = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
filemenu-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("&amp;Quit"), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
filemenu-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( <a href="qobject.html#tr">tr</a>("&amp;Quit"), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
<a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( <a href="qobject.html#tr">tr</a>("&amp;File"), filemenu );
<a href="qmainwindow.html#statusBar">statusBar</a>()-&gt;message( <a href="qobject.html#tr">tr</a>("This is a TQMainWindow with an XmText widget.") );

@ -106,7 +106,7 @@ static void qtDialogCallback( Widget, XtPointer client_data, XtPointer )
mw-&gt;showTQtDialog();
}
static void tquitCallback( Widget, XtPointer client_data, XtPointer )
static void quitCallback( Widget, XtPointer client_data, XtPointer )
{
MainWindow *mw = (MainWindow *) client_data;
<a name="x2708"></a> mw-&gt;<a href="qwidget.html#close">close</a>();
@ -140,7 +140,7 @@ static void tquitCallback( Widget, XtPointer client_data, XtPointer )
xmPushButtonGadgetClass, filemenu,
XmNmnemonic, 'x',
NULL );
XtAddCallback( item, XmNactivateCallback, tquitCallback, this );
XtAddCallback( item, XmNactivateCallback, quitCallback, this );
XmString str = XmStringCreateLocalized( "File" );
item = XtVaCreateManagedWidget( "File",

@ -35,7 +35,7 @@ body { background: #ffffff; color: black; }
[ <a href="motif-walkthrough-9.html">Previous: Replacing the Print Dialog</a> ]
[ <a href="motif-walkthrough.html">Home</a> ]
<p> We have not tquite finished with the migration to TQt, even though our
<p> We have not quite finished with the migration to TQt, even though our
project does not use <a href="motif-extension.html#Motif">Motif</a> any more. TQt provides many useful features
that we can begin using immediately. Some of the most interesting
ones are presented below as a guide for where to start extending your

@ -69,7 +69,7 @@ existing callback functions found in <tt>todo.cpp</tt> and <tt>actions.cpp</tt>.
<tr bgcolor="#f0f0f0"> <td valign="top">Save <td valign="top"><tt>MainWindow::fileSave()</tt> <td valign="top">calls the <tt>SaveIt()</tt> callback
<tr bgcolor="#d0d0d0"> <td valign="top">Save As <td valign="top"><tt>MainWindow::fileSaveAs()</tt> <td valign="top">calls the <tt>Save()</tt> callback
<tr bgcolor="#f0f0f0"> <td valign="top">Print <td valign="top"><tt>MainWindow::filePrint()</tt> <td valign="top">calls the <tt>ShowPrintDialog()</tt> callback
<tr bgcolor="#d0d0d0"> <td valign="top">Exit <td valign="top"><tt>MainWindow::fileExit()</tt> <td valign="top">calls <a href="qapplication.html#tquit">TQApplication::tquit</a>()
<tr bgcolor="#d0d0d0"> <td valign="top">Exit <td valign="top"><tt>MainWindow::fileExit()</tt> <td valign="top">calls <a href="qapplication.html#quit">TQApplication::quit</a>()
<tr bgcolor="#a2c511"> <th valign="top" colspan="3" rowspan="1"> Selected menu
<tr bgcolor="#f0f0f0"> <td valign="top">Properties <td valign="top"><tt>MainWindow::selProperties()</tt> <td valign="top">calls the <tt>EditPage()</tt> callback
<tr bgcolor="#d0d0d0"> <td valign="top">New <td valign="top"><tt>MainWindow::selNewPage()</tt> <td valign="top">calls the <tt>NewPage()</tt> callback

@ -266,7 +266,7 @@ public:
public slots:
void startMovie(const <a href="qstring.html">TQString</a>&amp; filename);
// TQDialog's method - normally closes the file dialog.
// We want it left open, and we want Cancel to tquit everything.
// We want it left open, and we want Cancel to quit everything.
void done( int r );
};
@ -292,7 +292,7 @@ void <a name="f259"></a>MovieStarter::startMovie(const <a href="qstring.html">TQ
<a name="x495"></a>void MovieStarter::<a href="qdialog.html#done">done</a>( int r )
{
if (r != Accepted)
qApp-&gt;<a href="qapplication.html#tquit">tquit</a>(); // end on Cancel
qApp-&gt;<a href="qapplication.html#quit">quit</a>(); // end on Cancel
<a href="qdialog.html#setResult">setResult</a>( r );
// And don't hide.
@ -317,7 +317,7 @@ int main(int argc, char **argv)
(void)new MovieScreen(argv[arg], TQMovie(argv[arg]), 0, 0,
TQt::WDestructiveClose);
}
TQObject::<a href="qobject.html#connect">connect</a>(qApp, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()));
TQObject::<a href="qobject.html#connect">connect</a>(qApp, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()));
} else {
// "GUI" mode - open a chooser for movies
//

@ -75,7 +75,7 @@ This could be, for example, a protocol which can read pictures from a
digital camera using a serial connection.
<p> <h2> Working Network Protocol independently with <a href="qurloperator.html">TQUrlOperator</a> and <a href="qnetworkoperation.html">TQNetworkOperation</a>
</h2>
<a name="2"></a><p> It is tquite easy to just use existing network protocol implementations
<a name="2"></a><p> It is quite easy to just use existing network protocol implementations
and operate on URLs. For example, downloading a file from an FTP
server to the local filesystem can be done with following code:
<p> <pre>

@ -199,7 +199,7 @@ void <a name="f289"></a>Nntp::close()
{
// close the command socket
if ( commandSocket-&gt;<a href="qiodevice.html#isOpen">isOpen</a>() ) {
commandSocket-&gt;<a href="qsocket.html#writeBlock">writeBlock</a>( "tquit\r\n", strlen( "tquit\r\n" ) );
commandSocket-&gt;<a href="qsocket.html#writeBlock">writeBlock</a>( "quit\r\n", strlen( "quit\r\n" ) );
<a name="x679"></a> commandSocket-&gt;<a href="qsocket.html#close">close</a>();
}
}

@ -132,7 +132,7 @@ void PictureDisplay::<a href="qwidget.html#paintEvent">paintEvent</a>( <a href="
pict-&gt;<a href="qpicture.html#load">load</a>( name );
<a href="qwidget.html#update">update</a>();
break;
case 'q': // tquit
case 'q': // quit
<a name="x106"></a> TQApplication::<a href="qapplication.html#exit">exit</a>();
break;
}

@ -74,16 +74,16 @@ public slots:
private:
<a href="qprocess.html">TQProcess</a> *proc;
<a href="qtextview.html">TQTextView</a> *output;
<a href="qpushbutton.html">TQPushButton</a> *tquitButton;
<a href="qpushbutton.html">TQPushButton</a> *quitButton;
};
<a name="f204"></a>UicManager::UicManager()
{
// Layout
output = new <a href="qtextview.html">TQTextView</a>( this );
tquitButton = new <a href="qpushbutton.html">TQPushButton</a>( <a href="qobject.html#tr">tr</a>("Quit"), this );
<a href="qobject.html#connect">connect</a>( tquitButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()),
qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
quitButton = new <a href="qpushbutton.html">TQPushButton</a>( <a href="qobject.html#tr">tr</a>("Quit"), this );
<a href="qobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()),
qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
<a href="qwidget.html#resize">resize</a>( 500, 500 );
// TQProcess related code

@ -192,7 +192,7 @@ public:
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( drawItemText(i), i );
<a name="x67"></a> connect( menubar, SIGNAL(<a href="qmenubar.html#activated">activated</a>(int)), this, SLOT(doMenuItem(int)) );
<a name="x69"></a> file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
options = new <a href="qpopupmenu.html">TQPopupMenu</a>();
<a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( options );

@ -180,7 +180,7 @@ Removes all accelerator items.
</h3>
Connects the accelerator item <em>id</em> to the slot <em>member</em> of <em>receiver</em>.
<p> <pre>
a-&gt;connectItem( 201, mainView, SLOT(tquit()) );
a-&gt;connectItem( 201, mainView, SLOT(quit()) );
</pre>
<p> Of course, you can also send a signal as <em>member</em>.
@ -221,8 +221,8 @@ negative identifier less than -1.
<p> <pre>
TQAccel *a = new TQAccel( myWindow ); // create accels for myWindow
a-&gt;<a href="#insertItem">insertItem</a>( CTRL + Key_P, 200 ); // Ctrl+P, e.g. to print document
a-&gt;<a href="#insertItem">insertItem</a>( ALT + Key_X, 201 ); // Alt+X, e.g. to tquit
a-&gt;<a href="#insertItem">insertItem</a>( UNICODE_ACCEL + 'q', 202 ); // Unicode 'q', e.g. to tquit
a-&gt;<a href="#insertItem">insertItem</a>( ALT + Key_X, 201 ); // Alt+X, e.g. to quit
a-&gt;<a href="#insertItem">insertItem</a>( UNICODE_ACCEL + 'q', 202 ); // Unicode 'q', e.g. to quit
a-&gt;<a href="#insertItem">insertItem</a>( <a href="qt.html#Key-enum">Key_D</a> ); // gets a unique negative id &lt; -1
a-&gt;<a href="#insertItem">insertItem</a>( CTRL + SHIFT + Key_P ); // gets a unique negative id &lt; -1
</pre>

@ -188,7 +188,7 @@ private:
SLOT( <a href="qwidget.html#close">close</a>() ) );
fileQuitAction = new <a href="qaction.html">TQAction</a>( "Quit", "&amp;Quit", CTRL+Key_Q, this,
"tquit" );
"quit" );
<a name="x1127"></a> <a href="qobject.html#connect">connect</a>( fileQuitAction, SIGNAL( <a href="qaction.html#activated">activated</a>() ) , qApp,
SLOT( <a href="qapplication.html#closeAllWindows">closeAllWindows</a>() ) );
@ -421,7 +421,7 @@ int main( int argc, char ** argv ) {
ApplicationWindow * mw = new ApplicationWindow();
mw-&gt;<a href="qwidget.html#setCaption">setCaption</a>( "Document 1" );
<a name="x1178"></a> mw-&gt;<a href="qwidget.html#show">show</a>();
<a name="x1179"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a name="x1179"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
return a.<a href="qapplication.html#exec">exec</a>();
}
</pre>

@ -329,7 +329,7 @@ signals:
void guiThreadAwake();
public slots:
void tquit();
void quit();
void closeAllWindows();
void aboutTQt();
@ -373,8 +373,8 @@ private:
int app_argc;
char **app_argv;
bool tquit_now;
int tquit_code;
bool quit_now;
int quit_code;
static TQStyle *app_style;
static int app_cspec;
#ifndef QT_NO_PALETTE

@ -123,7 +123,7 @@ body { background: #ffffff; color: black; }
<li><a href="qapplication.html#processOneEvent">processOneEvent</a>()
<li><a href="qobject.html#property">property</a>()
<li><a href="qobject.html#queryList">queryList</a>()
<li><a href="qapplication.html#tquit">tquit</a>()
<li><a href="qapplication.html#quit">quit</a>()
<li><a href="qapplication.html#qwsDecoration">qwsDecoration</a>()
<li><a href="qapplication.html#qwsEventFilter">qwsEventFilter</a>()
<li><a href="qapplication.html#qwsSetCustomColors">qwsSetCustomColors</a>()

@ -92,7 +92,7 @@ flow and main settings.
</ul>
<h2>Public Slots</h2>
<ul>
<li class=fn>void <a href="#tquit"><b>tquit</b></a> ()</li>
<li class=fn>void <a href="#quit"><b>quit</b></a> ()</li>
<li class=fn>void <a href="#closeAllWindows"><b>closeAllWindows</b></a> ()</li>
<li class=fn>void <a href="#aboutTQt"><b>aboutTQt</b></a> ()</li>
</ul>
@ -270,7 +270,7 @@ any overrides after.)
<a href="#enter_loop">enter_loop</a>(),
<a href="#exit_loop">exit_loop</a>(),
<a href="#exit">exit</a>(),
<a href="#tquit">tquit</a>().
<a href="#quit">quit</a>().
<a href="#sendEvent">sendEvent</a>(),
<a href="#postEvent">postEvent</a>(),
<a href="#sendPostedEvents">sendPostedEvents</a>(),
@ -530,14 +530,14 @@ See the examples/menu/menu.cpp example.
<h3 class=fn>void <a name="aboutToQuit"></a>TQApplication::aboutToQuit ()<tt> [signal]</tt>
</h3>
<p> This signal is emitted when the application is about to tquit the
<p> This signal is emitted when the application is about to quit the
main event loop, e.g. when the event loop level drops to zero.
This may happen either after a call to <a href="#tquit">tquit</a>() from inside the
This may happen either after a call to <a href="#quit">quit</a>() from inside the
application or when the users shuts down the entire desktop session.
<p> 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.
<p> <p>See also <a href="#tquit">tquit</a>().
<p> <p>See also <a href="#quit">quit</a>().
<h3 class=fn><a href="qwidget.html">TQWidget</a>&nbsp;* <a name="activeModalWidget"></a>TQApplication::activeModalWidget ()<tt> [static]</tt>
</h3>
@ -698,13 +698,13 @@ entry in the file menu as shown in the following code example:
<a href="qpopupmenu.html">TQPopupMenu</a>* file = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;Quit", qApp, SLOT(<a href="#closeAllWindows">closeAllWindows</a>()), CTRL+Key_Q );
// when the last window is closed, the application should tquit
<a href="qobject.html#connect">connect</a>( qApp, SIGNAL( <a href="#lastWindowClosed">lastWindowClosed</a>() ), qApp, SLOT( <a href="#tquit">tquit</a>() ) );
// when the last window is closed, the application should quit
<a href="qobject.html#connect">connect</a>( qApp, SIGNAL( <a href="#lastWindowClosed">lastWindowClosed</a>() ), qApp, SLOT( <a href="#quit">quit</a>() ) );
</pre>
<p> The windows are closed in random order, until one window does not
accept the close event.
<p> <p>See also <a href="qwidget.html#close">TQWidget::close</a>(), <a href="qwidget.html#closeEvent">TQWidget::closeEvent</a>(), <a href="#lastWindowClosed">lastWindowClosed</a>(), <a href="#tquit">tquit</a>(), <a href="#topLevelWidgets">topLevelWidgets</a>(), and <a href="qwidget.html#isTopLevel-prop">TQWidget::isTopLevel</a>.
<p> <p>See also <a href="qwidget.html#close">TQWidget::close</a>(), <a href="qwidget.html#closeEvent">TQWidget::closeEvent</a>(), <a href="#lastWindowClosed">lastWindowClosed</a>(), <a href="#quit">quit</a>(), <a href="#topLevelWidgets">topLevelWidgets</a>(), and <a href="qwidget.html#isTopLevel-prop">TQWidget::isTopLevel</a>.
<p>
<p>Examples: <a href="qaction-application-example.html#x1127">action/application.cpp</a>, <a href="simple-application-example.html#x1544">application/application.cpp</a>, <a href="helpviewer-example.html#x980">helpviewer/helpwindow.cpp</a>, <a href="mdi-example.html#x2020">mdi/application.cpp</a>, and <a href="qwerty-example.html#x358">qwerty/qwerty.cpp</a>.
@ -803,7 +803,7 @@ it before you create the TQApplication object.
</h3>
Enters the main event loop and waits until <a href="#exit">exit</a>() is called or the
main widget is destroyed, and returns the value that was set to
exit() (which is 0 if exit() is called via <a href="#tquit">tquit</a>()).
exit() (which is 0 if exit() is called via <a href="#quit">quit</a>()).
<p> It is necessary to call this function to start event handling. The
main event loop receives events from the window system and
dispatches these to the application widgets.
@ -815,7 +815,7 @@ exec() to start a local event loop.
special function whenever there are no pending events, use a
<a href="qtimer.html">TQTimer</a> with 0 timeout. More advanced idle processing schemes can
be achieved using <a href="#processEvents">processEvents</a>().
<p> <p>See also <a href="#tquit">tquit</a>(), <a href="#exit">exit</a>(), <a href="#processEvents">processEvents</a>(), and <a href="#setMainWidget">setMainWidget</a>().
<p> <p>See also <a href="#quit">quit</a>(), <a href="#exit">exit</a>(), <a href="#processEvents">processEvents</a>(), and <a href="#setMainWidget">setMainWidget</a>().
<p>Examples: <a href="helpsystem-example.html#x2700">helpsystem/main.cpp</a>, <a href="qdialog.html#x2132">life/main.cpp</a>, <a href="archivesearch-example.html#x486">network/archivesearch/main.cpp</a>, <a href="ftpclient-example.html#x777">network/ftpclient/main.cpp</a>, <a href="qaxserver-example-opengl.html#x2731">opengl/main.cpp</a>, <a href="tutorial1-01.html#x2283">t1/main.cpp</a>, and <a href="tutorial1-04.html#x2303">t4/main.cpp</a>.
<h3 class=fn>void <a name="exit"></a>TQApplication::exit ( int&nbsp;retcode = 0 )<tt> [static]</tt>
@ -829,7 +829,7 @@ value indicates an error.
<p> Note that unlike the C library function of the same name, this
function <em>does</em> return to the caller -- it is event processing that
stops.
<p> <p>See also <a href="#tquit">tquit</a>() and <a href="#exec">exec</a>().
<p> <p>See also <a href="#quit">quit</a>() and <a href="#exec">exec</a>().
<p>Examples: <a href="canvas-chart-example.html#x2875">chart/chartform.cpp</a>, <a href="extension-dialog-example.html#x2865">extension/mainform.ui.h</a>, and <a href="picture-example.html#x106">picture/picture.cpp</a>.
<h3 class=fn>void <a name="exit_loop"></a>TQApplication::exit_loop ()
@ -945,7 +945,7 @@ Returns TRUE if <em>effect</em> is enabled; otherwise returns FALSE.
<p> This signal is emitted when the user has closed the last
top level window.
<p> The signal is very useful when your application has many top level
widgets but no main widget. You can then connect it to the <a href="#tquit">tquit</a>()
widgets but no main widget. You can then connect it to the <a href="#quit">quit</a>()
slot.
<p> For convenience, this signal is <em>not</em> emitted for transient top level
widgets such as popup menus and dialogs.
@ -1116,17 +1116,17 @@ event processing must be grafted onto existing program loops.
problems.
<p> <p>See also <a href="#processEvents">processEvents</a>(), <a href="#exec">exec</a>(), and <a href="qtimer.html">TQTimer</a>.
<h3 class=fn>void <a name="tquit"></a>TQApplication::tquit ()<tt> [slot]</tt>
<h3 class=fn>void <a name="quit"></a>TQApplication::quit ()<tt> [slot]</tt>
</h3>
Tells the application to exit with return code 0 (success).
Equivalent to calling <a href="#exit">TQApplication::exit</a>( 0 ).
<p> It's common to connect the <a href="#lastWindowClosed">lastWindowClosed</a>() signal to <a href="#tquit">tquit</a>(), and
<p> It's common to connect the <a href="#lastWindowClosed">lastWindowClosed</a>() signal to <a href="#quit">quit</a>(), and
you also often connect e.g. <a href="qbutton.html#clicked">TQButton::clicked</a>() or signals in
<a href="qaction.html">TQAction</a>, <a href="qpopupmenu.html">TQPopupMenu</a> or <a href="qmenubar.html">TQMenuBar</a> to it.
<p> Example:
<pre>
<a href="qpushbutton.html">TQPushButton</a> *tquitButton = new <a href="qpushbutton.html">TQPushButton</a>( "Quit" );
<a href="qobject.html#connect">connect</a>( tquitButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="#tquit">tquit</a>()) );
<a href="qpushbutton.html">TQPushButton</a> *quitButton = new <a href="qpushbutton.html">TQPushButton</a>( "Quit" );
<a href="qobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="#quit">quit</a>()) );
</pre>
<p> <p>See also <a href="#exit">exit</a>(), <a href="#aboutToQuit">aboutToQuit</a>(), <a href="#lastWindowClosed">lastWindowClosed</a>(), and <a href="qaction.html">TQAction</a>.
@ -1468,12 +1468,12 @@ TQApplication does <em>not</em> take ownership of the <em>mainWidget</em>, so
if you create your main widget on the heap you must delete it
yourself.
<p> You need not have a main widget; connecting <a href="#lastWindowClosed">lastWindowClosed</a>() to
<a href="#tquit">tquit</a>() is an alternative.
<a href="#quit">quit</a>() is an alternative.
<p> For X11, this function also resizes and moves the main widget
according to the <em>-geometry</em> command-line option, so you should
set the default geometry (using <a href="qwidget.html#setGeometry">TQWidget::setGeometry</a>()) before
calling <a href="#setMainWidget">setMainWidget</a>().
<p> <p>See also <a href="#mainWidget">mainWidget</a>(), <a href="#exec">exec</a>(), and <a href="#tquit">tquit</a>().
<p> <p>See also <a href="#mainWidget">mainWidget</a>(), <a href="#exec">exec</a>(), and <a href="#quit">quit</a>().
<p>Examples: <a href="tutorial2-04.html#x2560">chart/main.cpp</a>, <a href="helpsystem-example.html#x2701">helpsystem/main.cpp</a>, <a href="qdialog.html#x2133">life/main.cpp</a>, <a href="ftpclient-example.html#x779">network/ftpclient/main.cpp</a>, <a href="qaxserver-example-opengl.html#x2733">opengl/main.cpp</a>, <a href="tutorial1-01.html#x2284">t1/main.cpp</a>, and <a href="tutorial1-04.html#x2305">t4/main.cpp</a>.
<h3 class=fn>void <a name="setOverrideCursor"></a>TQApplication::setOverrideCursor ( const&nbsp;<a href="qcursor.html">TQCursor</a>&nbsp;&amp;&nbsp;cursor, bool&nbsp;replace = FALSE )<tt> [static]</tt>

@ -50,7 +50,7 @@ The TQCDEStyle class provides a CDE look and feel.
versions of the Common Desktop Environment (CDE). The main
differences are thinner frames and more modern radio buttons and
checkboxes. Together with a dark background and a bright
text/foreground color, the style looks tquite attractive (at least
text/foreground color, the style looks quite attractive (at least
for Motif fans).
<p> Note that the functions provided by TQCDEStyle are
reimplementations of <a href="qstyle.html">TQStyle</a> functions; see TQStyle for their

@ -81,7 +81,7 @@ independent top-level windows in a multi-window application.
agreed to close the widget; call <a href="#accept">accept</a>() to agree to close the
widget and call <a href="#ignore">ignore</a>() if the receiver of this event does not
want the widget to be closed.
<p> <p>See also <a href="qwidget.html#close">TQWidget::close</a>(), <a href="qwidget.html#hide">TQWidget::hide</a>(), <a href="qobject.html#destroyed">TQObject::destroyed</a>(), <a href="qapplication.html#setMainWidget">TQApplication::setMainWidget</a>(), <a href="qapplication.html#lastWindowClosed">TQApplication::lastWindowClosed</a>(), <a href="qapplication.html#exec">TQApplication::exec</a>(), <a href="qapplication.html#tquit">TQApplication::tquit</a>(), and <a href="events.html">Event Classes</a>.
<p> <p>See also <a href="qwidget.html#close">TQWidget::close</a>(), <a href="qwidget.html#hide">TQWidget::hide</a>(), <a href="qobject.html#destroyed">TQObject::destroyed</a>(), <a href="qapplication.html#setMainWidget">TQApplication::setMainWidget</a>(), <a href="qapplication.html#lastWindowClosed">TQApplication::lastWindowClosed</a>(), <a href="qapplication.html#exec">TQApplication::exec</a>(), <a href="qapplication.html#quit">TQApplication::quit</a>(), and <a href="events.html">Event Classes</a>.
<hr><h2>Member Function Documentation</h2>
<h3 class=fn><a name="TQCloseEvent"></a>TQCloseEvent::TQCloseEvent ()

@ -156,7 +156,7 @@ By default, the link color is <tt>TQt::blue</tt>.
By default, the linkvisited color is <tt>TQt::magenta</tt>.
<li><tt>TQColorGroup::NColorRoles</tt> - Internal.
</ul><p> Note that text colors can be used for things other than just
words; text colors are <em>usually</em> used for text, but it's tquite
words; text colors are <em>usually</em> used for text, but it's quite
common to use the text color roles for lines, icons, etc.
<p> This image shows most of the color roles in use:
<center><img src="palette.png" alt="Color Roles"></center>

@ -52,7 +52,7 @@ sink. One very useful way to do this is interleaved with other event
processing. TQDataPump provides this - create a pipe between a source
and a sink, and data will be moved during subsequent event processing.
<p> Note that each source can only provide data to one sink and each sink
can only receive data from one source (although it is tquite possible
can only receive data from one source (although it is quite possible
to write a multiplexing sink that is multiple sources).
<hr><h2>Member Function Documentation</h2>

@ -242,7 +242,7 @@ and exec() to return <em>r</em>.
main widget, the application terminates. If the dialog is the
last window closed, the <a href="qapplication.html#lastWindowClosed">TQApplication::lastWindowClosed</a>() signal is
emitted.
<p> <p>See also <a href="#accept">accept</a>(), <a href="#reject">reject</a>(), <a href="qapplication.html#mainWidget">TQApplication::mainWidget</a>(), and <a href="qapplication.html#tquit">TQApplication::tquit</a>().
<p> <p>See also <a href="#accept">accept</a>(), <a href="#reject">reject</a>(), <a href="qapplication.html#mainWidget">TQApplication::mainWidget</a>(), and <a href="qapplication.html#quit">TQApplication::quit</a>().
<h3 class=fn>int <a name="exec"></a>TQDialog::exec ()<tt> [slot]</tt>
</h3>

@ -119,7 +119,7 @@ public:
Show = 17, // widget is shown
Hide = 18, // widget is hidden
Close = 19, // request to close widget
Quit = 20, // request to tquit application
Quit = 20, // request to quit application
Reparent = 21, // widget has been reparented
ShowMinimized = 22, // widget is shown minimized
ShowNormal = 23, // widget is shown normal

@ -165,7 +165,7 @@ exec() to start a local event loop.
special function whenever there are no pending events, use a
<a href="qtimer.html">TQTimer</a> with 0 timeout. More advanced idle processing schemes can
be achieved using <a href="#processEvents">processEvents</a>().
<p> <p>See also <a href="qapplication.html#tquit">TQApplication::tquit</a>(), <a href="#exit">exit</a>(), and <a href="#processEvents">processEvents</a>().
<p> <p>See also <a href="qapplication.html#quit">TQApplication::quit</a>(), <a href="#exit">exit</a>(), and <a href="#processEvents">processEvents</a>().
<h3 class=fn>void <a name="exit"></a>TQEventLoop::exit ( int&nbsp;retcode = 0 )<tt> [virtual]</tt>
</h3>
@ -177,7 +177,7 @@ value indicates an error.
<p> Note that unlike the C library function of the same name, this
function <em>does</em> return to the caller -- it is event processing that
stops.
<p> <p>See also <a href="qapplication.html#tquit">TQApplication::tquit</a>() and <a href="#exec">exec</a>().
<p> <p>See also <a href="qapplication.html#quit">TQApplication::quit</a>() and <a href="#exec">exec</a>().
<h3 class=fn>void <a name="exitLoop"></a>TQEventLoop::exitLoop ()<tt> [virtual]</tt>
</h3>

@ -312,7 +312,7 @@ state/India.
<li><tt>TQFont::Sinhala</tt> - is used for Sri Lanka's majority language Sinhala
and is also employed to write Pali, Sanskrit, and Tamil.
<li><tt>TQFont::Thai</tt> - is used to write Thai and other Southeast Asian languages.
<li><tt>TQFont::Lao</tt> - is a language and script tquite similar to Thai.
<li><tt>TQFont::Lao</tt> - is a language and script quite similar to Thai.
<li><tt>TQFont::Tibetan</tt> - is the script used to write Tibetan in several
countries like Tibet, the bordering Indian regions and
Nepal. It is also used in the Buddist philosophy and

@ -135,7 +135,7 @@ visual. On other platforms it may work differently.
<p> <strong>Mac only</strong>: This virtual function tries to find a
visual that matches the format using the given <em>device</em> handle,
reducing the demands if the original request cannot be met.
<p> The algorithm for reducing the demands of the format is tquite
<p> The algorithm for reducing the demands of the format is quite
simple-minded, so override this method in your subclass if your
application has specific retquirements on visual selection.
<p> <p>See also <a href="#chooseContext">chooseContext</a>().
@ -155,7 +155,7 @@ Windows-specific types in our header files.
<strong>X11 only</strong>: This virtual function tries to find a
visual that matches the format, reducing the demands if the original
request cannot be met.
<p> The algorithm for reducing the demands of the format is tquite
<p> The algorithm for reducing the demands of the format is quite
simple-minded, so override this method in your subclass if your
application has spcific retquirements on visual selection.
<p> <p>See also <a href="#chooseContext">chooseContext</a>().

@ -69,7 +69,7 @@ a newline character ('\n'). Note that these newline characters
change the reordering behaviour of the algorithm, since the bidi
reordering only takes place within one line of text, whereas
line breaks are determined in visual order.
<p> Visually ordered Hebrew is still used tquite often in some places,
<p> Visually ordered Hebrew is still used quite often in some places,
mainly in email communication (since most email programs still
don't understand logically ordered Hebrew) and on web pages. The
use on web pages is rapidly decreasing, due to the availability of

@ -252,7 +252,7 @@ can get keyboard focus by tabbing, clicking and through the use of
the mouse wheel.
<p> New items can be inserted using <a href="#insertItem">insertItem</a>(), <a href="#insertStrList">insertStrList</a>() or
<a href="#insertStringList">insertStringList</a>(). <a href="#inSort">inSort</a>() is obsolete because this method is
tquite inefficient. It's preferable to insert the items normally
quite inefficient. It's preferable to insert the items normally
and call <a href="#sort">sort</a>() afterwards, or to insert a sorted <a href="qstringlist.html">TQStringList</a>().
<p> By default, vertical and horizontal scroll bars are added and
removed as necessary. <a href="qscrollview.html#setHScrollBarMode">setHScrollBarMode</a>() and <a href="qscrollview.html#setVScrollBarMode">setVScrollBarMode</a>()
@ -532,7 +532,7 @@ item. The argument is a pointer to the new current item.
<h3 class=fn>int <a name="inSort"></a>TQListBox::inSort ( const&nbsp;<a href="qlistboxitem.html">TQListBoxItem</a>&nbsp;*&nbsp;lbi )
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> Using this method is tquite inefficient. We suggest to use <a href="#insertItem">insertItem</a>()
<p> Using this method is quite inefficient. We suggest to use <a href="#insertItem">insertItem</a>()
for inserting and <a href="#sort">sort</a>() afterwards.
<p> Inserts <em>lbi</em> at its sorted position in the list box and returns the
position.
@ -545,7 +545,7 @@ lexicographically less than any string.
</h3>
<b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code.
<p> This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
<p> Using this method is tquite inefficient. We suggest to use <a href="#insertItem">insertItem</a>()
<p> Using this method is quite inefficient. We suggest to use <a href="#insertItem">insertItem</a>()
for inserting and <a href="#sort">sort</a>() afterwards.
<p> Inserts a new item of <em>text</em> at its sorted position in the list box and
returns the position.

@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }
<p>
This is a simple magnifier-type program. It shows how one can do
some tquite low-level operations in a portable way using TQt.
some quite low-level operations in a portable way using TQt.
<p> Run it, click in the magnifier window, then click where you want to
magnify or drag out a rectangle. Two combo boxes let you select
amplification and refresh frequency, a text label tells you the color
@ -94,7 +94,7 @@ private:
<a href="qcombobox.html">TQComboBox</a> *refresh;
<a href="qpushbutton.html">TQPushButton</a> *saveButton;
<a href="qpushbutton.html">TQPushButton</a> *multiSaveButton;
<a href="qpushbutton.html">TQPushButton</a> *tquitButton;
<a href="qpushbutton.html">TQPushButton</a> *quitButton;
<a href="qpixmap.html">TQPixmap</a> pm; // pixmap, magnified
<a href="qpixmap.html">TQPixmap</a> p; // pixmap
<a href="qimage.html">TQImage</a> image; // image of pixmap (for RGB)
@ -171,12 +171,12 @@ static const int timer[] = {
<a name="x1798"></a> multiSaveButton-&gt;<a href="qwidget.html#setGeometry">setGeometry</a>( saveButton-&gt;<a href="qwidget.html#geometry">geometry</a>().right() + 2, 2,
10+multiSaveButton-&gt;<a href="qwidget.html#fontMetrics">fontMetrics</a>().width("MultiSave"), 20 );
tquitButton = new <a href="qpushbutton.html">TQPushButton</a>( this );
<a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>(tquitButton);
<a href="qobject.html#connect">connect</a>( tquitButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
tquitButton-&gt;<a href="qbutton.html#setText">setText</a>( "Quit" );
tquitButton-&gt;<a href="qwidget.html#setGeometry">setGeometry</a>( multiSaveButton-&gt;<a href="qwidget.html#geometry">geometry</a>().right() + 2, 2,
10+tquitButton-&gt;<a href="qwidget.html#fontMetrics">fontMetrics</a>().width("Quit"), 20 );
quitButton = new <a href="qpushbutton.html">TQPushButton</a>( this );
<a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>(quitButton);
<a href="qobject.html#connect">connect</a>( quitButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
quitButton-&gt;<a href="qbutton.html#setText">setText</a>( "Quit" );
quitButton-&gt;<a href="qwidget.html#setGeometry">setGeometry</a>( multiSaveButton-&gt;<a href="qwidget.html#geometry">geometry</a>().right() + 2, 2,
10+quitButton-&gt;<a href="qwidget.html#fontMetrics">fontMetrics</a>().width("Quit"), 20 );
#else
zoom = 0;
multiSaveButton = 0;
@ -195,8 +195,8 @@ static const int timer[] = {
<a name="x1799"></a> yoffset = zoom-&gt;<a href="qwidget.html#height">height</a>() // top buttons
+ 4 // space around top buttons
+ rgb-&gt;<a href="qwidget.html#height">height</a>(); // color-value text height
<a name="x1804"></a> <a href="qwidget.html#setMinimumSize">setMinimumSize</a>( tquitButton-&gt;<a href="qwidget.html#pos">pos</a>().x(), yoffset+20 );
<a href="qwidget.html#resize">resize</a>( tquitButton-&gt;<a href="qwidget.html#geometry">geometry</a>().topRight().x() + 2, yoffset+60 );
<a name="x1804"></a> <a href="qwidget.html#setMinimumSize">setMinimumSize</a>( quitButton-&gt;<a href="qwidget.html#pos">pos</a>().x(), yoffset+20 );
<a href="qwidget.html#resize">resize</a>( quitButton-&gt;<a href="qwidget.html#geometry">geometry</a>().topRight().x() + 2, yoffset+60 );
#else
yoffset = 0;
<a href="qwidget.html#resize">resize</a>(350,350);

@ -33,7 +33,7 @@ body { background: #ffffff; color: black; }
<h2 align="center">qmake Concepts</h2>
<h3><a name="1"></a>Introducing qmake</h3>
<p><em>qmake</em> is an easy-to-use tool from Trolltech that creates makefiles for development projects across different platforms. <em>qmake</em> simplifies the generation of makefiles so that only a few lines of information are needed to create a makefile. <em>qmake</em> can be used for any software project whether it is written in TQt or not, although it also contains additional features to support TQt development.</p>
<p><em>qmake</em> generates a makefile based on the information in a project file. Project files are created by the developer. Project files are usually simple, but can be tquite sophisticated if retquired. <em>qmake</em> can also generate projects for Microsoft Visual studio without having to change the project file.</p>
<p><em>qmake</em> generates a makefile based on the information in a project file. Project files are created by the developer. Project files are usually simple, but can be quite sophisticated if retquired. <em>qmake</em> can also generate projects for Microsoft Visual studio without having to change the project file.</p>
<h3><a name="2"></a>qmake's Concepts</h3>
<h4><a name="2-1"></a>The QMAKESPEC environment variable</h4>
<p>Before <em>qmake</em> can be used to build makefiles, the QMAKESPEC environment variable must be set to the platform-compiler combination that is being used on the system. The QMAKESPEC environment variable tells qmake where to look to find platform and compiler specific information. This ensures that the right libraries are used, and that the generated makefile uses the correct syntax. A list of the currently supported platform-compiler combinations can be found in qt/mkspecs. Just set your environment variable to one of the directories listed.</p>

@ -648,7 +648,7 @@ QMAKE_VERS = $$[QMAKE_VERSION]
<li><p>The name of a platform-compiler combination. In this case, <em>qmake</em> will search in the directory specified by the QTDIR environment variable.</p>
</ul><p>Note: the QMAKESPEC path will automatically be added to the <a href="qmake-manual-8.html#INCLUDEPATH">INCLUDEPATH</a> system variable.</p>
<a name="INSTALLS"></a><h4><a name="7-2"></a>INSTALLS</h4>
<p>It is common on UNIX to be able to install from the same utility as you build with (e.g make install). For this <em>qmake</em> has introduce the concept of an install set. The notation for this is tquite simple, first you fill in an "object" in qmake for example:</p>
<p>It is common on UNIX to be able to install from the same utility as you build with (e.g make install). For this <em>qmake</em> has introduce the concept of an install set. The notation for this is quite simple, first you fill in an "object" in qmake for example:</p>
<pre>
documentation.path = /usr/local/program/doc
documentation.files = docs/*
@ -698,7 +698,7 @@ QMAKE_VERS = $$[QMAKE_VERSION]
<li><p>QMAKE_EXT_H - Changes interpretation all files with these suffixes to be C header files.</p>
</ul><a name="Customizing"></a><h4><a name="7-6"></a>Customizing Makefile Output</h4>
<p>qmake often tries to be all things to all build tools, this is often less than ideal when you really need to run special platform dependent commands. This can be achieved with specific instructions to the different qmake backends (currently this is only supported by the UNIX <a href="qmake-manual-8.html#MAKEFILE_GENERATOR">generator</a>).</p>
<p>The interfaces to customizing the Makefile are done through "objects" as in other places in qmake. The notation for this is tquite simple, first you fill in an "object" in qmake for example:</p>
<p>The interfaces to customizing the Makefile are done through "objects" as in other places in qmake. The notation for this is quite simple, first you fill in an "object" in qmake for example:</p>
<pre>
mytarget.target = .buildfile
mytarget.commands = touch $$mytarget.target

@ -168,10 +168,10 @@ the Application Menu
<tr bgcolor="#d0d0d0"> <td valign="top">config, options, setup, settings or preferences
<td valign="top">Application Menu | Preferences
<td valign="top">If this entry is not found the Settings item will be disabled
<tr bgcolor="#f0f0f0"> <td valign="top">tquit or exit
<tr bgcolor="#f0f0f0"> <td valign="top">quit or exit
<td valign="top">Application Menu | Quit <application name>
<td valign="top">If this entry is not found a default Quit item will be
created to call <a href="qapplication.html#tquit">TQApplication::tquit</a>()
created to call <a href="qapplication.html#quit">TQApplication::quit</a>()
</table></center>
<p> <a href="menu-example.html">menu/menu.cpp</a> is an example of
TQMenuBar and <a href="qpopupmenu.html">TQPopupMenu</a> use.
@ -260,7 +260,7 @@ even widgets into popup menus.
argument. Use this to insert submenus into existing menus or
pulldown menus into a menu bar.
<p> The number of insert functions may look confusing, but they are
actually tquite simple to use.
actually quite simple to use.
<p> This default version inserts a menu item with the text <em>text</em>,
the accelerator key <em>accel</em>, an id and an optional index and
connects it to the slot <em>member</em> in the object <em>receiver</em>.

@ -284,7 +284,7 @@ even widgets into popup menus.
argument. Use this to insert submenus into existing menus or
pulldown menus into a menu bar.
<p> The number of insert functions may look confusing, but they are
actually tquite simple to use.
actually quite simple to use.
<p> This default version inserts a menu item with the text <em>text</em>,
the accelerator key <em>accel</em>, an id and an optional index and
connects it to the slot <em>member</em> in the object <em>receiver</em>.
@ -619,7 +619,7 @@ object.
fileMenu-&gt;<a href="#insertItem">insertItem</a>( "Open Document", 67 ); // add "Open" item
fileMenu-&gt;<a href="#setAccel">setAccel</a>( CTRL + Key_O, 67 ); // Ctrl+O to open
fileMenu-&gt;<a href="#insertItem">insertItem</a>( "Quit", 69 ); // add "Quit" item
fileMenu-&gt;<a href="#setAccel">setAccel</a>( CTRL + ALT + Key_Delete, 69 ); // add Alt+Del to tquit
fileMenu-&gt;<a href="#setAccel">setAccel</a>( CTRL + ALT + Key_Delete, 69 ); // add Alt+Del to quit
mainMenu-&gt;<a href="#insertItem">insertItem</a>( "File", fileMenu ); // add the file menu
</pre>

@ -206,7 +206,7 @@ Returns TRUE if auto-deleting is enabled; otherwise returns FALSE.
<h3 class=fn>bool <a name="checkConnection"></a>TQNetworkProtocol::checkConnection ( <a href="qnetworkoperation.html">TQNetworkOperation</a>&nbsp;*&nbsp;op )<tt> [virtual protected]</tt>
</h3>
For processing operations the network protocol base class calls
this method tquite often. This should be reimplemented by new
this method quite often. This should be reimplemented by new
network protocols. It should return TRUE if the connection is OK
(open); otherwise it should return FALSE. If the connection is not
open the protocol should open it.

@ -741,7 +741,7 @@ of a <a href="qregexp.html">TQRegExp</a>. If <em>regexpMatch</em> is FALSE, <em>
and object names must match it exactly.
<p> Note that <em>inheritsClass</em> uses single inheritance from TQObject,
the way <a href="#inherits">inherits</a>() does. According to inherits(), <a href="qmenubar.html">TQMenuBar</a>
inherits <a href="qwidget.html">TQWidget</a> but not <a href="qmenudata.html">TQMenuData</a>. This does not tquite match
inherits <a href="qwidget.html">TQWidget</a> but not <a href="qmenudata.html">TQMenuData</a>. This does not quite match
reality, but is the best that can be done on the wide variety of
compilers TQt supports.
<p> Finally, if <em>recursiveSearch</em> is TRUE (the default), <a href="#queryList">queryList</a>()

@ -386,7 +386,7 @@ even widgets into popup menus.
argument. Use this to insert submenus into existing menus or
pulldown menus into a menu bar.
<p> The number of insert functions may look confusing, but they are
actually tquite simple to use.
actually quite simple to use.
<p> This default version inserts a menu item with the text <em>text</em>,
the accelerator key <em>accel</em>, an id and an optional index and
connects it to the slot <em>member</em> in the object <em>receiver</em>.
@ -735,7 +735,7 @@ object.
fileMenu-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Open Document", 67 ); // add "Open" item
fileMenu-&gt;<a href="qmenudata.html#setAccel">setAccel</a>( CTRL + Key_O, 67 ); // Ctrl+O to open
fileMenu-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Quit", 69 ); // add "Quit" item
fileMenu-&gt;<a href="qmenudata.html#setAccel">setAccel</a>( CTRL + ALT + Key_Delete, 69 ); // add Alt+Del to tquit
fileMenu-&gt;<a href="qmenudata.html#setAccel">setAccel</a>( CTRL + ALT + Key_Delete, 69 ); // add Alt+Del to quit
mainMenu-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "File", fileMenu ); // add the file menu
</pre>

@ -188,7 +188,7 @@ was an item, i.e. the queue wasn't empty; otherwise returns FALSE.
<p> Sets the queue to auto-delete its contents if <em>enable</em> is TRUE
and not to delete them if <em>enable</em> is FALSE.
<p> If auto-deleting is turned on, all the items in a queue are
deleted when the queue itself is deleted. This can be tquite
deleted when the queue itself is deleted. This can be quite
convenient if the queue has the only pointer to the items.
<p> The default setting is FALSE, for safety. If you turn it on, be
careful about copying the queue: you might find yourself with two

@ -152,7 +152,7 @@ The TQScrollView widget provides a scrolling area with on-demand scroll bars.
<p> The TQScrollView is a large canvas - potentially larger than the
coordinate system normally supported by the underlying window
system. This is important because it is tquite easy to go beyond
system. This is important because it is quite easy to go beyond
these limitations (e.g. many web pages are more than 32000 pixels
high). Additionally, the TQScrollView can have TQWidgets positioned
on it that scroll around with the drawn content. These sub-widgets
@ -742,7 +742,7 @@ See the <a href="qscrollview.html#resizePolicy-prop">"resizePolicy"</a> property
Sets the scrollview to have a static background if <em>y</em> is TRUE,
or a scrolling background if <em>y</em> is FALSE. By default, the
background is scrolling.
<p> Be aware that this mode is tquite slow, as a full repaint of the
<p> Be aware that this mode is quite slow, as a full repaint of the
visible area has to be triggered on every contents move.
<p> <p>See also <a href="#hasStaticBackground">hasStaticBackground</a>().

@ -106,7 +106,7 @@ the session is shut down, it wants to be restarted at the start of
the next session.
<li><tt>TQSessionManager::RestartAnyway</tt> - the application wants to be started at the
start of the next session, no matter what. (This is useful for
utilities that run just after startup and then tquit.)
utilities that run just after startup and then quit.)
<li><tt>TQSessionManager::RestartImmediately</tt> - the application wants to be started
immediately whenever it is not running.
<li><tt>TQSessionManager::RestartNever</tt> - the application does not want to be restarted

@ -126,7 +126,7 @@ general, you can treat it as a TQIODevice for writing, and mostly
also for reading. The match isn't perfect, since the TQIODevice
API is designed for devices that are controlled by the same
machine, and an asynchronous peer-to-peer network connection isn't
tquite like that. For example, there is nothing that matches
quite like that. For example, there is nothing that matches
<a href="qiodevice.html#size">TQIODevice::size</a>() exactly. The documentation for <a href="#open">open</a>(), <a href="#close">close</a>(),
<a href="#flush">flush</a>(), <a href="#size">size</a>(), <a href="#at">at</a>(), <a href="#atEnd">atEnd</a>(), <a href="#readBlock">readBlock</a>(), <a href="#writeBlock">writeBlock</a>(),
<a href="#getch">getch</a>(), <a href="#putch">putch</a>(), <a href="#ungetch">ungetch</a>() and <a href="#readLine">readLine</a>() describes the

@ -249,7 +249,7 @@ Returns TRUE if this is a valid socket; otherwise returns FALSE.
</h3>
Specifies how many pending connections a server socket can have.
Returns TRUE if the operation was successful; otherwise returns
FALSE. A <em>backlog</em> value of 50 is tquite common.
FALSE. A <em>backlog</em> value of 50 is quite common.
<p> The <a href="#listen">listen</a>() call only applies to sockets where <a href="#type">type</a>() is <a href="#Type-enum">Stream</a>, i.e. not to <a href="#Type-enum">Datagram</a> sockets. listen() must not be
called before <a href="#bind">bind</a>() or after <a href="#accept">accept</a>().
<p> <p>See also <a href="#bind">bind</a>() and <a href="#accept">accept</a>().

@ -185,7 +185,7 @@
<keyword ref="qapplication.html#polish">polish</keyword>
<keyword ref="qapplication.html#postEvent">postEvent</keyword>
<keyword ref="qapplication.html#processEvents">processEvents</keyword>
<keyword ref="qapplication.html#tquit">tquit</keyword>
<keyword ref="qapplication.html#quit">quit</keyword>
<keyword ref="qapplication.html#qwsDecoration">qwsDecoration</keyword>
<keyword ref="qapplication.html#qwsEventFilter">qwsEventFilter</keyword>
<keyword ref="qapplication.html#qwsSetCustomColors">qwsSetCustomColors</keyword>

@ -147,7 +147,7 @@ to create a local TQTimer object.
int main( int argc, char **argv )
{
<a href="qapplication.html">TQApplication</a> a( argc, argv );
TQTimer::<a href="#singleShot">singleShot</a>( 10*60*1000, &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
TQTimer::<a href="#singleShot">singleShot</a>( 10*60*1000, &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
... // create and show your widgets
return a.<a href="qapplication.html#exec">exec</a>();
}

@ -102,21 +102,21 @@ lets the mouse hover for five seconds or moves the mouse outside
<p> To add a tip to a widget, call the <em>static</em> function
<a href="#add">TQToolTip::add</a>() with the widget and tip as arguments:
<p> <pre>
TQToolTip::<a href="#add">add</a>( tquitButton, "Leave the application" );
TQToolTip::<a href="#add">add</a>( quitButton, "Leave the application" );
</pre>
<p> This is the simplest and most common use of TQToolTip. The tip
will be deleted automatically when <em>tquitButton</em> is deleted, but
will be deleted automatically when <em>quitButton</em> is deleted, but
you can remove it yourself, too:
<p> <pre>
TQToolTip::<a href="#remove">remove</a>( tquitButton );
TQToolTip::<a href="#remove">remove</a>( quitButton );
</pre>
<p> You can also display another text (typically in a <a href="qstatusbar.html">status bar),</a> courtesy of <a href="qtooltipgroup.html">TQToolTipGroup</a>. This example
assumes that <em>grp</em> is a <tt>TQToolTipGroup *</tt> and is already
connected to the appropriate status bar:
<p> <pre>
TQToolTip::<a href="#add">add</a>( tquitButton, "Leave the application", grp,
TQToolTip::<a href="#add">add</a>( quitButton, "Leave the application", grp,
"Leave the application, prompting to save if necessary" );
TQToolTip::<a href="#add">add</a>( closeButton, "Close this window", grp,
"Close this window, prompting to save if necessary" );

@ -492,7 +492,7 @@ int main( int argc, char **argv )
e-&gt;<a href="qwidget.html#show">show</a>();
}
}
<a name="x416"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a name="x416"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
return a.<a href="qapplication.html#exec">exec</a>();
}
</pre>

@ -569,7 +569,7 @@ If not, it will be a child of <em>parent</em>, and be constrained by <em>parent<
<a href="qt.html#WidgetFlags">widget flag</a>).
<li> <tt>const char *name = 0</tt> is the widget name of the new
widget. You can access it using <a href="qobject.html#name">name</a>(). The widget name is little
used by programmers but is tquite useful with GUI builders such as
used by programmers but is quite useful with GUI builders such as
<em>TQt Designer</em> (you can name a widget in <em>TQt Designer</em>, and
<a href="qobject.html#connect">connect</a>() to it using the name in your code). The <a href="qobject.html#dumpObjectTree">dumpObjectTree</a>()
debugging function also uses it.
@ -606,10 +606,10 @@ somewhere else, then releases, <em>your</em> widget receives the release
event. There is one exception: if a popup menu appears while the
mouse button is held down, this popup immediately steals the mouse
events.
<p> <li> <a href="#mouseDoubleClickEvent">mouseDoubleClickEvent</a>() - not tquite as obvious as it might seem.
<p> <li> <a href="#mouseDoubleClickEvent">mouseDoubleClickEvent</a>() - not quite as obvious as it might seem.
If the user double-clicks, the widget receives a mouse press event
(perhaps a mouse move event or two if they don't hold the mouse
tquite steady), a mouse release event and finally this event. It is
quite steady), a mouse release event and finally this event. It is
<em>not possible</em> to distinguish a click from a double click until you've
seen whether the second click arrives. (This is one reason why most GUI
books recommend that double clicks be an extension of single clicks,
@ -855,7 +855,7 @@ no matter if the widget is visible or not.
last visible top level widget is closed.
<p> Note that closing the <a href="qapplication.html#mainWidget">TQApplication::mainWidget</a>() terminates the
application.
<p> <p>See also <a href="#closeEvent">closeEvent</a>(), <a href="qcloseevent.html">TQCloseEvent</a>, <a href="#hide">hide</a>(), <a href="qapplication.html#tquit">TQApplication::tquit</a>(), <a href="qapplication.html#setMainWidget">TQApplication::setMainWidget</a>(), and <a href="qapplication.html#lastWindowClosed">TQApplication::lastWindowClosed</a>().
<p> <p>See also <a href="#closeEvent">closeEvent</a>(), <a href="qcloseevent.html">TQCloseEvent</a>, <a href="#hide">hide</a>(), <a href="qapplication.html#quit">TQApplication::quit</a>(), <a href="qapplication.html#setMainWidget">TQApplication::setMainWidget</a>(), and <a href="qapplication.html#lastWindowClosed">TQApplication::lastWindowClosed</a>().
<h3 class=fn>void <a name="closeEvent"></a>TQWidget::closeEvent ( <a href="qcloseevent.html">TQCloseEvent</a>&nbsp;*&nbsp;e )<tt> [virtual protected]</tt>
</h3>

@ -115,7 +115,7 @@ with the incremental argument set to TRUE.
<p> Returns FALSE if a parsing error occurs; otherwise returns TRUE.
<p> If the input source returns an empty string for the function
<a href="qxmlinputsource.html#data">TQXmlInputSource::data</a>(), then this means that the end of the XML
file has been reached; this is tquite important, especially if you
file has been reached; this is quite important, especially if you
want to use the reader to parse more than one XML file.
<p> The case of the end of the XML file being reached without having
finished parsing is not considered to be an error: you can

@ -75,7 +75,7 @@ public:
<a href="qtable.html">TQTable</a> *resultTable;
<a href="qpushbutton.html">TQPushButton</a> *executePushButton;
<a href="qpushbutton.html">TQPushButton</a> *copyPushButton;
<a href="qpushbutton.html">TQPushButton</a> *tquitPushButton;
<a href="qpushbutton.html">TQPushButton</a> *quitPushButton;
<a href="qstatusbar.html">TQStatusBar</a> *statusBar;
public slots:
@ -132,7 +132,7 @@ private:
executePushButton = new <a href="qpushbutton.html">TQPushButton</a>(this);
<a name="x2484"></a> executePushButton-&gt;<a href="qpushbutton.html#setDefault">setDefault</a>(true);
copyPushButton = new <a href="qpushbutton.html">TQPushButton</a>(this);
tquitPushButton = new <a href="qpushbutton.html">TQPushButton</a>(this);
quitPushButton = new <a href="qpushbutton.html">TQPushButton</a>(this);
statusBar = new <a href="qstatusbar.html">TQStatusBar</a>(this);
<a href="qgridlayout.html">TQGridLayout</a> *gridLayout = new <a href="qgridlayout.html">TQGridLayout</a>(2, 2, 6);
@ -148,7 +148,7 @@ private:
<a href="qvboxlayout.html">TQVBoxLayout</a> *buttonLayout = new <a href="qvboxlayout.html">TQVBoxLayout</a>(0, 6, 6);
buttonLayout-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>(executePushButton);
buttonLayout-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>(copyPushButton);
buttonLayout-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>(tquitPushButton);
buttonLayout-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>(quitPushButton);
buttonLayout-&gt;<a href="qboxlayout.html#addStretch">addStretch</a>(1);
<a href="qhboxlayout.html">TQHBoxLayout</a> *middleLayout = new <a href="qhboxlayout.html">TQHBoxLayout</a>(0, 6, 6);
middleLayout-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>(resultTable);
@ -165,7 +165,7 @@ private:
<a href="qobject.html#connect">connect</a>(copyPushButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), this, SLOT(copy()));
<a href="qobject.html#connect">connect</a>(executePushButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), this, SLOT(execute()));
<a href="qobject.html#connect">connect</a>(tquitPushButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), this, SLOT(<a href="qdialog.html#accept">accept</a>()));
<a href="qobject.html#connect">connect</a>(quitPushButton, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), this, SLOT(<a href="qdialog.html#accept">accept</a>()));
execute();
}
@ -267,7 +267,7 @@ void <a name="f559"></a>RegexpTester::languageChange()
wildcardCheckBox-&gt;<a href="qbutton.html#setText">setText</a>(<a href="qobject.html#tr">tr</a>("&amp;Wildcard"));
copyPushButton-&gt;<a href="qbutton.html#setText">setText</a>(<a href="qobject.html#tr">tr</a>("&amp;Copy"));
executePushButton-&gt;<a href="qbutton.html#setText">setText</a>(<a href="qobject.html#tr">tr</a>("&amp;Execute"));
tquitPushButton-&gt;<a href="qbutton.html#setText">setText</a>(<a href="qobject.html#tr">tr</a>("&amp;Quit"));
quitPushButton-&gt;<a href="qbutton.html#setText">setText</a>(<a href="qobject.html#tr">tr</a>("&amp;Quit"));
}
</pre>
@ -282,7 +282,7 @@ int main(int argc, char **argv)
<a href="qapplication.html">TQApplication</a> app(argc, argv);
RegexpTester form;
<a name="x2511"></a> form.<a href="qdialog.html#show">show</a>();
<a name="x2512"></a><a name="x2510"></a><a name="x2509"></a> app.<a href="qobject.html#connect">connect</a>(&amp;app, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;app, SLOT(<a href="qapplication.html#tquit">tquit</a>()));
<a name="x2512"></a><a name="x2510"></a><a name="x2509"></a> app.<a href="qobject.html#connect">connect</a>(&amp;app, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;app, SLOT(<a href="qapplication.html#quit">quit</a>()));
return app.<a href="qapplication.html#exec">exec</a>();
}
</pre>

@ -182,7 +182,7 @@ static const char* sayings[] = {
<a name="x466"></a> bPrev-&gt;<a href="qwidget.html#setEnabled">setEnabled</a>( FALSE );
<a name="x462"></a> <a href="qobject.html#connect">connect</a>( bClose, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), qApp, SLOT( <a href="qapplication.html#tquit">tquit</a>() ) );
<a name="x462"></a> <a href="qobject.html#connect">connect</a>( bClose, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), qApp, SLOT( <a href="qapplication.html#quit">quit</a>() ) );
<a href="qobject.html#connect">connect</a>( bPrev, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( prev() ) );
<a href="qobject.html#connect">connect</a>( bNext, SIGNAL( <a href="qbutton.html#clicked">clicked</a>() ), this, SLOT( next() ) );

@ -103,14 +103,14 @@ private:
<a name="x1375"></a> <a href="qobject.html#connect">connect</a>( left, SIGNAL(<a href="qtextedit.html#textChanged">textChanged</a>()), this, SLOT(changeRight()) );
<a href="qobject.html#connect">connect</a>( right, SIGNAL(<a href="qtextedit.html#textChanged">textChanged</a>()), this, SLOT(changeLeft()) );
<a href="qpushbutton.html">TQPushButton</a> * tquit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this );
<a name="x1379"></a> tquit-&gt;<a href="qwidget.html#setFocusPolicy">setFocusPolicy</a>( NoFocus );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qpushbutton.html">TQPushButton</a> * quit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this );
<a name="x1379"></a> quit-&gt;<a href="qwidget.html#setFocusPolicy">setFocusPolicy</a>( NoFocus );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
<a href="qgridlayout.html">TQGridLayout</a> * l = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 5 );
<a name="x1370"></a> l-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( left, 0, 0 );
l-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( right, 0, 1 );
l-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tquit, 1, 1, AlignRight );
l-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 1, 1, AlignRight );
<a name="x1378"></a> left-&gt;<a href="qwidget.html#setFocus">setFocus</a>();
}

@ -83,7 +83,7 @@ public:
for (int y=0; y&lt;2000-h; y+=h+10) {
if (y == 0) {
<a href="qbutton.html">TQButton</a>* q=new <a href="qpushbutton.html">TQPushButton</a>("Quit", this);
connect(q, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()));
connect(q, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()));
} else {
<a href="qstring.html">TQString</a> str;
if ( b &gt; 0 ) {
@ -247,7 +247,7 @@ public:
<a href="qpopupmenu.html">TQPopupMenu</a>* file = new <a href="qpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( file );
<a name="x634"></a> menubar-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
vp_options = new <a href="qpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( vp_options );
@ -473,7 +473,7 @@ int main( int argc, char **argv )
ve3.<a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Scrollviews");
ve3.<a href="qwidget.html#show">show</a>();
TQObject::<a href="qobject.html#connect">connect</a>(qApp, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()));
TQObject::<a href="qobject.html#connect">connect</a>(qApp, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()));
return a.<a href="qapplication.html#exec">exec</a>();
}

@ -195,7 +195,7 @@ private slots:
si = file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Save image", saveimage );
sp = file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Save pixmap", savepixmap );
<a name="x1328"></a> file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "E&amp;xit", qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()), CTRL+Key_Q );
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "E&amp;xit", qApp, SLOT(<a href="qapplication.html#quit">quit</a>()), CTRL+Key_Q );
edit = new <a href="qpopupmenu.html">TQPopupMenu</a>( menubar );
menubar-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;Edit", edit );
@ -865,7 +865,7 @@ int main( int argc, char **argv )
}
}
TQObject::<a href="qobject.html#connect">connect</a>(qApp, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()));
TQObject::<a href="qobject.html#connect">connect</a>(qApp, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()));
return a.<a href="qapplication.html#exec">exec</a>();
}

@ -229,9 +229,9 @@ rest of the world.
may connect signals to. This is intended for very tightly connected
classes, where even subclasses aren't trusted to get the connections
right.
<p> You can also define slots to be virtual, which we have found tquite
<p> You can also define slots to be virtual, which we have found quite
useful in practice.
<p> The signals and slots mechanism is efficient, but not tquite as fast as
<p> The signals and slots mechanism is efficient, but not quite as fast as
"real" callbacks. Signals and slots are slightly slower because of the
increased flexibility they provide, although the difference for real
applications is insignificant. In general, emitting a signal that is

@ -408,7 +408,7 @@ int main( int argc, char ** argv ) {
ApplicationWindow *mw = new ApplicationWindow();
mw-&gt;<a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Application" );
<a name="x1598"></a> mw-&gt;<a href="qwidget.html#show">show</a>();
<a name="x1599"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a name="x1599"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
return a.<a href="qapplication.html#exec">exec</a>();
}
</pre>

@ -118,7 +118,7 @@ int main( int argc, char ** argv ) {
ApplicationWindow *mw = new ApplicationWindow();
mw-&gt;<a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Application" );
<a name="x1598"></a> mw-&gt;<a href="qwidget.html#show">show</a>();
<a name="x1599"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a name="x1599"></a> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
return a.<a href="qapplication.html#exec">exec</a>();
}
</pre>
@ -141,9 +141,9 @@ behave the way X clients are expected to.
<p> We create an <em>ApplicationWindow</em> as a top-level widget, set its window
system caption to "Document 1", and <em>show()</em> it.
<p> <a name="close"></a>
<pre> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<pre> a.<a href="qobject.html#connect">connect</a>( &amp;a, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
</pre>
<p> When the application's last window is closed, it should tquit. Both
<p> When the application's last window is closed, it should quit. Both
the signal and the slot are predefined members of <a href="qapplication.html">TQApplication</a>.
<p> <pre> return a.<a href="qapplication.html#exec">exec</a>();
</pre>
@ -157,7 +157,7 @@ that TQApplication returns when it leaves the event loop.
</h2>
<a name="3"></a><p>
<p> Since the implementation is tquite large (almost 300 lines) we
<p> Since the implementation is quite large (almost 300 lines) we
won't list the whole thing. (The source code is included in the
examples/application directory.) Before we start with the constructor
there are three <tt>#include</tt>s worth mentioning:

@ -128,7 +128,7 @@ private:
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>("Play 3 and 4 together", this, SLOT(doPlay34()));
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>("Play all together", this, SLOT(doPlay1234()));
file-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>("E&amp;xit", qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()));
file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>("E&amp;xit", qApp, SLOT(<a href="qapplication.html#quit">quit</a>()));
<a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem("&amp;File", file);
}

@ -58,10 +58,10 @@ public:
<a name="f52"></a>MyWidget::MyWidget( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
: <a href="qwidget.html">TQWidget</a>( parent, name )
{
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "tquit" );
tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle-&gt;setRange( 5, 70 );
@ -82,7 +82,7 @@ public:
force, SLOT(setValue(int)) );
<a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 10 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tquit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cannonField, 1, 1 );
grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( 1, 10 );

@ -58,10 +58,10 @@ public:
<a name="f66"></a>MyWidget::MyWidget( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
: <a href="qwidget.html">TQWidget</a>( parent, name )
{
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "tquit" );
tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle-&gt;setRange( 5, 70 );
@ -87,7 +87,7 @@ public:
<a href="qobject.html#connect">connect</a>( shoot, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), cannonField, SLOT(shoot()) );
<a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 10 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tquit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cannonField, 1, 1 );
grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( 1, 10 );

@ -58,10 +58,10 @@ public:
<a name="f86"></a>MyWidget::MyWidget( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
: <a href="qwidget.html">TQWidget</a>( parent, name )
{
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "tquit" );
tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle-&gt;setRange( 5, 70 );
@ -87,7 +87,7 @@ public:
<a href="qobject.html#connect">connect</a>( shoot, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), cannonField, SLOT(shoot()) );
<a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 10 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tquit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cannonField, 1, 1 );
grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( 1, 10 );

@ -53,10 +53,10 @@ body { background: #ffffff; color: black; }
<a name="f109"></a>GameBoard::GameBoard( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
: <a href="qwidget.html">TQWidget</a>( parent, name )
{
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "tquit" );
tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle-&gt;setRange( 5, 70 );
@ -101,7 +101,7 @@ body { background: #ffffff; color: black; }
= new <a href="qlabel.html">TQLabel</a>( "SHOTS LEFT", this, "shotsleftLabel" );
<a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 10 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tquit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cannonField, 1, 1 );
grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( 1, 10 );

@ -55,10 +55,10 @@ body { background: #ffffff; color: black; }
<a name="f139"></a>GameBoard::GameBoard( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
: <a href="qwidget.html">TQWidget</a>( parent, name )
{
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "tquit" );
tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle-&gt;setRange( 5, 70 );
@ -112,10 +112,10 @@ body { background: #ffffff; color: black; }
accel-&gt;<a href="qaccel.html#connectItem">connectItem</a>( accel-&gt;<a href="qaccel.html#insertItem">insertItem</a>( Key_Return ),
this, SLOT(fire()) );
accel-&gt;<a href="qaccel.html#connectItem">connectItem</a>( accel-&gt;<a href="qaccel.html#insertItem">insertItem</a>( CTRL+Key_Q ),
qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
<a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 10 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tquit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( box, 1, 1 );
grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( 1, 10 );

@ -58,10 +58,10 @@ public:
<a name="f29"></a>MyWidget::MyWidget( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
: <a href="qvbox.html">TQVBox</a>( parent, name )
{
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "tquit" );
tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
<a href="qgrid.html">TQGrid</a> *grid = new <a href="qgrid.html">TQGrid</a>( 4, this );

@ -58,10 +58,10 @@ public:
<a name="f36"></a>MyWidget::MyWidget( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
: <a href="qwidget.html">TQWidget</a>( parent, name )
{
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "tquit" );
tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle-&gt;setRange( 5, 70 );
@ -77,7 +77,7 @@ public:
<a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 10 );
//2x2, 10 pixel border
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tquit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( angle, 1, 0, TQt::AlignTop );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cannonField, 1, 1 );
grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( 1, 10 );

@ -58,10 +58,10 @@ public:
<a name="f43"></a>MyWidget::MyWidget( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
: <a href="qwidget.html">TQWidget</a>( parent, name )
{
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "tquit" );
tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "&amp;Quit", this, "quit" );
quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle-&gt;setRange( 5, 70 );
@ -74,7 +74,7 @@ public:
angle, SLOT(setValue(int)) );
<a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 10 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tquit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( angle, 1, 0, TQt::AlignTop );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( cannonField, 1, 1 );
grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( 1, 10 );

@ -106,7 +106,7 @@ protected:
setupTab2();
setupTab3();
<a href="qobject.html#connect">connect</a>( this, SIGNAL( <a href="qtabdialog.html#applyButtonPressed">applyButtonPressed</a>() ), qApp, SLOT( <a href="qapplication.html#tquit">tquit</a>() ) );
<a href="qobject.html#connect">connect</a>( this, SIGNAL( <a href="qtabdialog.html#applyButtonPressed">applyButtonPressed</a>() ), qApp, SLOT( <a href="qapplication.html#quit">quit</a>() ) );
}
void <a name="f201"></a>TabDialog::setupTab1()

@ -2253,7 +2253,7 @@ private:
}
<a name="x318"></a> ag-&gt;<a href="qactiongroup.html#addTo">addTo</a>(style);
style-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
style-&gt;<a href="qmenudata.html#insertItem">insertItem</a>("&amp;Quit", qApp, SLOT( <a href="qapplication.html#tquit">tquit</a>() ), CTRL | Key_Q );
style-&gt;<a href="qmenudata.html#insertItem">insertItem</a>("&amp;Quit", qApp, SLOT( <a href="qapplication.html#quit">quit</a>() ), CTRL | Key_Q );
<a href="qpopupmenu.html">TQPopupMenu</a> * help = new <a href="qpopupmenu.html">TQPopupMenu</a>( this );
<a href="qmainwindow.html#menuBar">menuBar</a>()-&gt;insertSeparator();

@ -126,7 +126,7 @@ private:
// --------------------------------------------------------------------------
// TicTacToe implements the complete game.
// TicTacToe is a composite widget that contains a TicTacGameBoard and
// two push buttons for starting the game and tquitting.
// two push buttons for starting the game and quitting.
//
class TicTacToe : public <a href="qwidget.html">TQWidget</a>
@ -141,7 +141,7 @@ private:
void newState();
<a href="qcombobox.html">TQComboBox</a> *whoStarts;
<a href="qpushbutton.html">TQPushButton</a> *newGame;
<a href="qpushbutton.html">TQPushButton</a> *tquit;
<a href="qpushbutton.html">TQPushButton</a> *quit;
<a href="qlabel.html">TQLabel</a> *message;
TicTacGameBoard *board;
};
@ -478,12 +478,12 @@ void <a name="f195"></a>TicTacGameBoard::computerMove()
newGame = new <a href="qpushbutton.html">TQPushButton</a>( "Play!", this );
<a href="qobject.html#connect">connect</a>( newGame, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), SLOT(newGameClicked()) );
tquit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
quit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
<a href="qhboxlayout.html">TQHBoxLayout</a> * b = new <a href="qhboxlayout.html">TQHBoxLayout</a>;
<a name="x19"></a> l-&gt;<a href="qboxlayout.html#addLayout">addLayout</a>( b );
b-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( newGame );
b-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( tquit );
b-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>( quit );
newState();
}

@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }
<p> <center><img src="t2.png" alt="Screenshot of tutorial two"></center>
<p> Having created a window in <a href="tutorial1-01.html">Chapter 1,</a> we will
now go on to make the application tquit properly when the user tells it to.
now go on to make the application quit properly when the user tells it to.
<p> We will also use a font that is more exciting than the default one.
<p> <pre>/****************************************************************
**
@ -51,14 +51,14 @@ int main( int argc, char **argv )
{
<a href="qapplication.html">TQApplication</a> a( argc, argv );
<a href="qpushbutton.html">TQPushButton</a> tquit( "Quit", 0 );
tquit.<a href="qwidget.html#resize">resize</a>( 75, 30 );
tquit.<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> quit( "Quit", 0 );
quit.<a href="qwidget.html#resize">resize</a>( 75, 30 );
quit.<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
TQObject::<a href="qobject.html#connect">connect</a>( &amp;tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
TQObject::<a href="qobject.html#connect">connect</a>( &amp;quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &amp;tquit );
tquit.<a href="qwidget.html#show">show</a>();
a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &amp;quit );
quit.<a href="qwidget.html#show">show</a>();
return a.<a href="qapplication.html#exec">exec</a>();
}
</pre>
@ -72,22 +72,22 @@ int main( int argc, char **argv )
<p> Since this program uses <a href="qfont.html">TQFont</a>, it needs to include qfont.h. TQt's font
abstraction is rather different from the horror provided by X, and
loading and using fonts has been highly optimized.
<p> <pre> <a href="qpushbutton.html">TQPushButton</a> tquit( "Quit", 0 );
<p> <pre> <a href="qpushbutton.html">TQPushButton</a> quit( "Quit", 0 );
</pre>
<p> This time, the button says "Quit" and that's exactly what the program
will do when the user clicks the button. This is not a coincidence.
We still pass 0 as the parent, since the button is a top-level window.
<p> <pre> <a name="x2292"></a> tquit.<a href="qwidget.html#resize">resize</a>( 75, 30 );
<p> <pre> <a name="x2292"></a> quit.<a href="qwidget.html#resize">resize</a>( 75, 30 );
</pre>
<p> We've chosen another size for the button since the text is a bit
shorter than "Hello world!". We could also have used <a href="qfontmetrics.html">TQFontMetrics</a>
to set right size.
<p> <pre> <a name="x2293"></a> tquit.<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<p> <pre> <a name="x2293"></a> quit.<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
</pre>
<p> Here we choose a new font for the button, an 18-point bold font from
the Times family. Note that we create the font on the spot.
<p> It is also possible to change the default font (using <a href="qapplication.html#setFont">TQApplication::setFont</a>()) for the whole application.
<p> <pre> <a name="x2291"></a><a name="x2290"></a><a name="x2288"></a> TQObject::<a href="qobject.html#connect">connect</a>( &amp;tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<p> <pre> <a name="x2291"></a><a name="x2290"></a><a name="x2288"></a> TQObject::<a href="qobject.html#connect">connect</a>( &amp;quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
</pre>
<p> connect() is perhaps <em>the</em> most central feature of TQt.
Note that connect() is a static function in <a href="qobject.html">TQObject</a>. Do not confuse it
@ -97,8 +97,8 @@ that inherit TQObject, directly or indirectly). Every TQt object can have
both <tt>signals</tt> (to send messages) and <tt>slots</tt> (to receive messages). All
widgets are TQt objects. They inherit <a href="qwidget.html">TQWidget</a> which in turn inherits
TQObject.
<p> Here, the <em>clicked()</em> signal of <em>tquit</em> is connected to the <em>tquit()</em> slot of <em>a</em>, so that when the button is clicked, the
application tquits.
<p> Here, the <em>clicked()</em> signal of <em>quit</em> is connected to the <em>quit()</em> slot of <em>a</em>, so that when the button is clicked, the
application quits.
<p> The <a href="signalsandslots.html">Signals and Slots</a> documentation
describes this topic in detail.
<p> <h2> Behavior
@ -111,7 +111,7 @@ makefile and build the application.)
</h2>
<a name="3"></a><p> Try to resize the window. Press the button. Oops! That connect()
would seem to make some difference.
<p> Are there any other signals in <a href="qpushbutton.html">TQPushButton</a> you can connect to tquit?
<p> Are there any other signals in <a href="qpushbutton.html">TQPushButton</a> you can connect to quit?
Hint: The TQPushButton inherits most of its behavior from <a href="qbutton.html">TQButton</a>.
<p> You're now ready for <a href="tutorial1-03.html">Chapter 3.</a>
<p> [<a href="tutorial1-01.html">Previous tutorial</a>]

@ -53,10 +53,10 @@ int main( int argc, char **argv )
<a href="qvbox.html">TQVBox</a> box;
box.<a href="qwidget.html#resize">resize</a>( 200, 120 );
<a href="qpushbutton.html">TQPushButton</a> tquit( "Quit", &amp;box );
tquit.<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> quit( "Quit", &amp;box );
quit.<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
TQObject::<a href="qobject.html#connect">connect</a>( &amp;tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), &amp;a, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
TQObject::<a href="qobject.html#connect">connect</a>( &amp;quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), &amp;a, SLOT(<a href="qapplication.html#quit">quit</a>()) );
a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &amp;box );
box.<a href="qwidget.html#show">show</a>();
@ -80,7 +80,7 @@ space according to each child's <a href="qwidget.html#sizePolicy">TQWidget::size
<p> <pre> <a name="x2300"></a> box.<a href="qwidget.html#resize">resize</a>( 200, 120 );
</pre>
<p> We set its width to 200 pixels and the height to 120 pixels.
<p> <pre> <a href="qpushbutton.html">TQPushButton</a> tquit( "Quit", &amp;box );
<p> <pre> <a href="qpushbutton.html">TQPushButton</a> quit( "Quit", &amp;box );
</pre>
<p> A child is born.
<p> This <a href="qpushbutton.html">TQPushButton</a> is created with both a text ("Quit") and a parent

@ -59,11 +59,11 @@ public:
<a href="qwidget.html#setMinimumSize">setMinimumSize</a>( 200, 120 );
<a href="qwidget.html#setMaximumSize">setMaximumSize</a>( 200, 120 );
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "tquit" );
tquit-&gt;<a href="qwidget.html#setGeometry">setGeometry</a>( 62, 40, 75, 30 );
tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
quit-&gt;<a href="qwidget.html#setGeometry">setGeometry</a>( 62, 40, 75, 30 );
quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
}
@ -116,15 +116,15 @@ constructor.
<p> Because this widget doesn't know how to handle resizing, we fix its size
by setting the minimum and maximum to be equal. In the next chapter
we will show how a widget can respond to resize event from the user.
<p> <pre> <a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "tquit" );
<a name="x2308"></a> tquit-&gt;<a href="qwidget.html#setGeometry">setGeometry</a>( 62, 40, 75, 30 );
<a name="x2307"></a> tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<p> <pre> <a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
<a name="x2308"></a> quit-&gt;<a href="qwidget.html#setGeometry">setGeometry</a>( 62, 40, 75, 30 );
<a name="x2307"></a> quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
</pre>
<p> Here we create and set up a child widget of this widget (the new widget's
parent is <tt>this</tt>) which has the widget name "tquit". The widget
parent is <tt>this</tt>) which has the widget name "quit". The widget
name has nothing to do with the button text; it just happens to be
similar in this case.
<p> Note that <tt>tquit</tt> is a local variable in the constructor. MyWidget
<p> Note that <tt>quit</tt> is a local variable in the constructor. MyWidget
does not keep track of it, but TQt does, and will by default delete it
when MyWidget is deleted. This is why MyWidget doesn't need a
destructor. (On the other hand, there is no harm in deleting a child
@ -132,7 +132,7 @@ when you choose to, the child will automatically tell TQt about its
imminent death.)
<p> The setGeometry() call does the same as move() and resize() did in the
previous chapters.
<p> <pre> <a name="x2306"></a><a name="x2304"></a> <a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<p> <pre> <a name="x2306"></a><a name="x2304"></a> <a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
}
</pre>
<p> Because the MyWidget class doesn't know about the application object, it

@ -59,10 +59,10 @@ public:
<a name="f553"></a>MyWidget::MyWidget( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
: <a href="qvbox.html">TQVBox</a>( parent, name )
{
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "tquit" );
tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
<a href="qlcdnumber.html">TQLCDNumber</a> *lcd = new <a href="qlcdnumber.html">TQLCDNumber</a>( 2, this, "lcd" );
@ -152,7 +152,7 @@ makefile and build the application.)
buttons to set the number base.
<p> You can also change the slider's range.
<p> Perhaps it would have been better to use <a href="qspinbox.html">TQSpinBox</a> than a slider?
<p> Try to make the application tquit when the LCD number overflows.
<p> Try to make the application quit when the LCD number overflows.
<p> You're now ready for <a href="tutorial1-06.html">Chapter 6.</a>
<p> [<a href="tutorial1-04.html">Previous tutorial</a>]
[<a href="tutorial1-06.html">Next tutorial</a>]

@ -77,10 +77,10 @@ public:
<a name="f555"></a>MyWidget::MyWidget( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
: <a href="qvbox.html">TQVBox</a>( parent, name )
{
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "tquit" );
tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
<a href="qgrid.html">TQGrid</a> *grid = new <a href="qgrid.html">TQGrid</a>( 4, this );
@ -136,10 +136,10 @@ is renamed.
<p> <pre> MyWidget::MyWidget( <a href="qwidget.html">TQWidget</a> *parent, const char *name )
: <a href="qvbox.html">TQVBox</a>( parent, name )
{
<a href="qpushbutton.html">TQPushButton</a> *tquit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "tquit" );
<a name="x2328"></a> tquit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a href="qpushbutton.html">TQPushButton</a> *quit = new <a href="qpushbutton.html">TQPushButton</a>( "Quit", this, "quit" );
<a name="x2328"></a> quit-&gt;<a href="qwidget.html#setFont">setFont</a>( TQFont( "Times", 18, TQFont::Bold ) );
<a name="x2321"></a> <a href="qobject.html#connect">connect</a>( tquit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
<a name="x2321"></a> <a href="qobject.html#connect">connect</a>( quit, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
</pre>
<p> The push button that used to be in what is now LCDRange has been
separated so that we can have one "Quit" button and many LCDRange

@ -221,7 +221,7 @@ manage the children of <em>any</em> widget.
<p> As the comment indicates, we create a two-by-two array with ten pixel
borders. (The constructor for <a href="qgridlayout.html">TQGridLayout</a> can be a little cryptic,
so it's good to put in such comments.)
<p> <pre> <a name="x2337"></a> grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tquit, 0, 0 );
<p> <pre> <a name="x2337"></a> grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 0, 0 );
</pre>
<p> We add the Quit button in the top-left cell of the grid: 0, 0.
<p> <pre> grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( angle, 1, 0, TQt::AlignTop );

@ -119,7 +119,7 @@ the drawing a little bit.
emit forceChanged( f );
}
</pre>
<p> The implementation of setForce() is tquite similar to that of
<p> The implementation of setForce() is quite similar to that of
setAngle(). The only difference is that because we don't show the force
value, we don't need to repaint the widget.
<p> <pre> void CannonField::<a href="qwidget.html#paintEvent">paintEvent</a>( <a href="qpaintevent.html">TQPaintEvent</a> *e )

@ -221,12 +221,12 @@ keys. Note that an accelerator is a child of a widget and will be
destroyed when that widget is destroyed. <a href="qaccel.html">TQAccel</a> is <em>not</em> a widget
and has no visible effect on its parent.
<p> We define two shortcut keys. We want the slot fire() to be called
when the user presses Enter, and we want the application to tquit when
when the user presses Enter, and we want the application to quit when
key Ctrl+Q is pressed. Because Enter is sometimes Return and there
are even keyboards with <em>both</em> keys, we make both Enter and Return
invoke fire().
<p> <pre> accel-&gt;<a href="qaccel.html#connectItem">connectItem</a>( accel-&gt;<a href="qaccel.html#insertItem">insertItem</a>( CTRL+Key_Q ),
qApp, SLOT(<a href="qapplication.html#tquit">tquit</a>()) );
qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
</pre>
<p> And then we set up Ctrl+Q to do the same thing as Alt+Q. Some
people are more used to Ctrl+Q (and anyway it shows how do do it).
@ -234,7 +234,7 @@ people are more used to Ctrl+Q (and anyway it shows how do do it).
TQt. They're actually TQt::Key_Enter, etc., but practically all classes
inherit the <a href="qt.html">TQt</a> namespace class.
<p> <pre> <a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( this, 2, 2, 10 );
<a name="x2441"></a> grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( tquit, 0, 0 );
<a name="x2441"></a> grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( quit, 0, 0 );
grid-&gt;<a href="qgridlayout.html#addWidget">addWidget</a>( box, 1, 1 );
<a name="x2442"></a> grid-&gt;<a href="qgridlayout.html#setColStretch">setColStretch</a>( 1, 10 );
</pre>

@ -124,7 +124,7 @@ context menu.
application's GUI. All our drawing operations take place on the
canvas; but events (e.g. mouse clicks) take place on the canvas view.
</table></center>
<p> Each action is represented by a private slot, e.g. <tt>fileNew()</tt>, <tt>optionsSetData()</tt>, etc. We also have tquite a number of private
<p> Each action is represented by a private slot, e.g. <tt>fileNew()</tt>, <tt>optionsSetData()</tt>, etc. We also have quite a number of private
functions and data members; we'll look at all these as we go through
the implementation.
<p> For the sake of convenience and compilation speed the chart form's
@ -503,7 +503,7 @@ item id.
}
}
</pre>
<p> When the user tquits we give them the opportunity to save any unsaved
<p> When the user quits we give them the opportunity to save any unsaved
data (okToClear()) then save their options, e.g. window size and
position, chart type, etc., before terminating.
<p> <pre> void ChartForm::saveOptions()

@ -106,7 +106,7 @@ member functions.
<p> We set a caption for the dialog and resize it.
<p> <pre> tableButtonBox = new <a href="qvboxlayout.html">TQVBoxLayout</a>( this, 11, 6, "table button box layout" );
</pre>
<p> The layout of the form is tquite simple. The buttons will be grouped
<p> The layout of the form is quite simple. The buttons will be grouped
together in a horizontal layout and the table and the button layout
will be grouped together vertically using the tableButtonBox layout.
<p> <pre> table = new <a href="qtable.html">TQTable</a>( this, "data table" );

@ -527,7 +527,7 @@ attribute from the <em>http://trolltech.com/fnord/</em> namespace to <em>book:au
prefix <em>fnord</em> that is declared in the <em>book:author</em> element.
<p> Clearly the <em>fnord</em> namespace has the same namespace URI as the
default namespace. So why didn't we simply use the default namespace
we'd already declared? The answer is tquite complex:
we'd already declared? The answer is quite complex:
<ul>
<li> attributes without a prefix don't belong to any XML namespace at
all, not even to the default namespace;

@ -271,7 +271,7 @@ it. The correct idiom is
\code
QPopupMenu *file = new QPopupMenu( this );
file->insertItem( tr("&Quit"), this, SLOT(tquit()),
file->insertItem( tr("&Quit"), this, SLOT(quit()),
QKeySequence(tr("Ctrl+Q", "File|Quit")) );
\endcode

@ -176,7 +176,7 @@ Connects the accelerator item \fIid\fR to the slot \fImember\fR of \fIreceiver\f
.PP
.nf
.br
a->connectItem( 201, mainView, SLOT(tquit()) );
a->connectItem( 201, mainView, SLOT(quit()) );
.br
.fi
.PP
@ -212,9 +212,9 @@ If \fIid\fR is negative, then the item will be assigned a unique negative identi
.br
a->insertItem( CTRL + Key_P, 200 ); // Ctrl+P, e.g. to print document
.br
a->insertItem( ALT + Key_X, 201 ); // Alt+X, e.g. to tquit
a->insertItem( ALT + Key_X, 201 ); // Alt+X, e.g. to quit
.br
a->insertItem( UNICODE_ACCEL + 'q', 202 ); // Unicode 'q', e.g. to tquit
a->insertItem( UNICODE_ACCEL + 'q', 202 ); // Unicode 'q', e.g. to quit
.br
a->insertItem( Key_D ); // gets a unique negative id < -1
.br

@ -466,7 +466,7 @@ Since it also deals with common command line arguments, it is usually a good ide
.PP
<center>.nf
.TS
l - l. Groups of functions System settings desktopSettingsAware(), setDesktopSettingsAware(), cursorFlashTime(), setCursorFlashTime(), doubleClickInterval(), setDoubleClickInterval(), wheelScrollLines(), setWheelScrollLines(), palette(), setPalette(), font(), setFont(), fontMetrics(). Event handling exec(), processEvents(), enter_loop(), exit_loop(), exit(), tquit(). sendEvent(), postEvent(), sendPostedEvents(), removePostedEvents(), hasPendingEvents(), notify(), macEventFilter(), qwsEventFilter(), x11EventFilter(), x11ProcessEvent(), winEventFilter(). GUI Styles style(), setStyle(), polish(). Color usage colorSpec(), setColorSpec(), qwsSetCustomColors(). Text handling installTranslator(), removeTranslator() translate(). Widgets mainWidget(), setMainWidget(), allWidgets(), topLevelWidgets(), desktop(), activePopupWidget(), activeModalWidget(), clipboard(), focusWidget(), winFocus(), activeWindow(), widgetAt(). Advanced cursor handling hasGlobalMouseTracking(), setGlobalMouseTracking(), overrideCursor(), setOverrideCursor(), restoreOverrideCursor(). X Window System synchronization flushX(), syncX(). Session management isSessionRestored(), sessionId(), commitData(), saveState(). Threading lock(), unlock(), locked(), tryLock(), wakeUpGuiThread() Miscellaneous
l - l. Groups of functions System settings desktopSettingsAware(), setDesktopSettingsAware(), cursorFlashTime(), setCursorFlashTime(), doubleClickInterval(), setDoubleClickInterval(), wheelScrollLines(), setWheelScrollLines(), palette(), setPalette(), font(), setFont(), fontMetrics(). Event handling exec(), processEvents(), enter_loop(), exit_loop(), exit(), quit(). sendEvent(), postEvent(), sendPostedEvents(), removePostedEvents(), hasPendingEvents(), notify(), macEventFilter(), qwsEventFilter(), x11EventFilter(), x11ProcessEvent(), winEventFilter(). GUI Styles style(), setStyle(), polish(). Color usage colorSpec(), setColorSpec(), qwsSetCustomColors(). Text handling installTranslator(), removeTranslator() translate(). Widgets mainWidget(), setMainWidget(), allWidgets(), topLevelWidgets(), desktop(), activePopupWidget(), activeModalWidget(), clipboard(), focusWidget(), winFocus(), activeWindow(), widgetAt(). Advanced cursor handling hasGlobalMouseTracking(), setGlobalMouseTracking(), overrideCursor(), setOverrideCursor(), restoreOverrideCursor(). X Window System synchronization flushX(), syncX(). Session management isSessionRestored(), sessionId(), commitData(), saveState(). Threading lock(), unlock(), locked(), tryLock(), wakeUpGuiThread() Miscellaneous
.TE
.fi
</center>
@ -629,11 +629,11 @@ This is useful for inclusion in the Help menu of an application. See the example
.PP
This function is a convenience slot for QMessageBox::aboutQt().
.SH "void QApplication::aboutToQuit ()\fC [signal]\fR"
This signal is emitted when the application is about to tquit the main event loop, e.g. when the event loop level drops to zero. This may happen either after a call to tquit() from inside the application or when the users shuts down the entire desktop session.
This signal is emitted when the application is about to quit the main event loop, e.g. when the event loop level drops to zero. This may happen either after a call to quit() from inside the application or when the users shuts down the entire desktop session.
.PP
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 tquit().
See also quit().
.SH "QWidget * QApplication::activeModalWidget ()\fC [static]\fR"
Returns the active modal widget.
.PP
@ -795,15 +795,15 @@ This function is particularly useful for applications with many top-level window
file->insertItem( "&Quit", qApp, SLOT(closeAllWindows()), CTRL+Key_Q );
.br
.br
// when the last window is closed, the application should tquit
// when the last window is closed, the application should quit
.br
connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( tquit() ) );
connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( quit() ) );
.br
.fi
.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(), tquit(), topLevelWidgets(), and QWidget::isTopLevel.
See also QWidget::close(), QWidget::closeEvent(), lastWindowClosed(), quit(), topLevelWidgets(), and QWidget::isTopLevel.
.PP
Examples:
.)l action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, and qwerty/qwerty.cpp.
@ -883,7 +883,7 @@ See also QEventLoop.
.PP
Example: distributor/distributor.ui.h.
.SH "int QApplication::exec ()"
Enters the main event loop and waits until exit() is called or the main widget is destroyed, and returns the value that was set to exit() (which is 0 if exit() is called via tquit()).
Enters the main event loop and waits until exit() is called or the main widget is destroyed, and returns the value that was set to exit() (which is 0 if exit() is called via quit()).
.PP
It is necessary to call this function to start event handling. The main event loop receives events from the window system and dispatches these to the application widgets.
.PP
@ -891,7 +891,7 @@ Generally speaking, no user interaction can take place before calling exec(). As
.PP
To make your application perform idle processing, i.e. executing a special function whenever there are no pending events, use a QTimer with 0 timeout. More advanced idle processing schemes can be achieved using processEvents().
.PP
See also tquit(), exit(), processEvents(), and setMainWidget().
See also quit(), exit(), processEvents(), and setMainWidget().
.PP
Examples:
.)l helpsystem/main.cpp, life/main.cpp, network/archivesearch/main.cpp, network/ftpclient/main.cpp, opengl/main.cpp, t1/main.cpp, and t4/main.cpp.
@ -904,7 +904,7 @@ By convention, a \fIretcode\fR of 0 means success, and any non-zero value indica
.PP
Note that unlike the C library function of the same name, this function \fIdoes\fR return to the caller -- it is event processing that stops.
.PP
See also tquit() and exec().
See also quit() and exec().
.PP
Examples:
.)l chart/chartform.cpp, extension/mainform.ui.h, and picture/picture.cpp.
@ -982,7 +982,7 @@ See also sessionId(), commitData(), and saveState().
.SH "void QApplication::lastWindowClosed ()\fC [signal]\fR"
This signal is emitted when the user has closed the last top level window.
.PP
The signal is very useful when your application has many top level widgets but no main widget. You can then connect it to the tquit() slot.
The signal is very useful when your application has many top level widgets but no main widget. You can then connect it to the quit() slot.
.PP
For convenience, this signal is \fInot\fR emitted for transient top level widgets such as popup menus and dialogs.
.PP
@ -1120,18 +1120,18 @@ This function is useful for adapting Qt to situations where the event processing
Using this function in new applications may be an indication of design problems.
.PP
See also processEvents(), exec(), and QTimer.
.SH "void QApplication::tquit ()\fC [slot]\fR"
.SH "void QApplication::quit ()\fC [slot]\fR"
Tells the application to exit with return code 0 (success). Equivalent to calling QApplication::exit( 0 ).
.PP
It's common to connect the lastWindowClosed() signal to tquit(), and you also often connect e.g. QButton::clicked() or signals in QAction, QPopupMenu or QMenuBar to it.
It's common to connect the lastWindowClosed() signal to quit(), and you also often connect e.g. QButton::clicked() or signals in QAction, QPopupMenu or QMenuBar to it.
.PP
Example:
.PP
.nf
.br
QPushButton *tquitButton = new QPushButton( "Quit" );
QPushButton *quitButton = new QPushButton( "Quit" );
.br
connect( tquitButton, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
.br
.fi
.PP
@ -1404,11 +1404,11 @@ 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 tquit() is an alternative.
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().
.PP
See also mainWidget(), exec(), and tquit().
See also mainWidget(), exec(), and quit().
.PP
Examples:
.)l chart/main.cpp, helpsystem/main.cpp, life/main.cpp, network/ftpclient/main.cpp, opengl/main.cpp, t1/main.cpp, and t4/main.cpp.

@ -25,7 +25,7 @@ Inherits QMotifStyle.
.SH DESCRIPTION
The QCDEStyle class provides a CDE look and feel.
.PP
This style provides a slightly improved Motif look similar to some versions of the Common Desktop Environment (CDE). The main differences are thinner frames and more modern radio buttons and checkboxes. Together with a dark background and a bright text/foreground color, the style looks tquite attractive (at least for Motif fans).
This style provides a slightly improved Motif look similar to some versions of the Common Desktop Environment (CDE). The main differences are thinner frames and more modern radio buttons and checkboxes. Together with a dark background and a bright text/foreground color, the style looks quite attractive (at least for Motif fans).
.PP
Note that the functions provided by QCDEStyle are reimplementations of QStyle functions; see QStyle for their documentation.
.PP

@ -49,7 +49,7 @@ If the last top-level window is closed, the QApplication::lastWindowClosed() sig
.PP
The isAccepted() function returns TRUE if the event's receiver has agreed to close the widget; call accept() to agree to close the widget and call ignore() if the receiver of this event does not want the widget to be closed.
.PP
See also QWidget::close(), QWidget::hide(), QObject::destroyed(), QApplication::setMainWidget(), QApplication::lastWindowClosed(), QApplication::exec(), QApplication::tquit(), and Event Classes.
See also QWidget::close(), QWidget::hide(), QObject::destroyed(), QApplication::setMainWidget(), QApplication::lastWindowClosed(), QApplication::exec(), QApplication::quit(), and Event Classes.
.SH MEMBER FUNCTION DOCUMENTATION
.SH "QCloseEvent::QCloseEvent ()"
Constructs a close event object with the accept parameter flag set to FALSE.

@ -185,7 +185,7 @@ Finally, there is a special role for text that needs to be drawn where Text or F
.TP
\fCQColorGroup::NColorRoles\fR - Internal.
.PP
Note that text colors can be used for things other than just words; text colors are \fIusually\fR used for text, but it's tquite common to use the text color roles for lines, icons, etc.
Note that text colors can be used for things other than just words; text colors are \fIusually\fR used for text, but it's quite common to use the text color roles for lines, icons, etc.
.PP
This image shows most of the color roles in use: <center>
.ce 1

@ -213,7 +213,7 @@ Closes the dialog and sets its result code to \fIr\fR. If this dialog is shown w
.PP
As with QWidget::close(), done() deletes the dialog if the WDestructiveClose flag is set. If the dialog is the application's main widget, the application terminates. If the dialog is the last window closed, the QApplication::lastWindowClosed() signal is emitted.
.PP
See also accept(), reject(), QApplication::mainWidget(), and QApplication::tquit().
See also accept(), reject(), QApplication::mainWidget(), and QApplication::quit().
.SH "int QDialog::exec ()\fC [slot]\fR"
Shows the dialog as a modal dialog, blocking until the user closes it. The function returns a DialogCode result.
.PP

@ -147,7 +147,7 @@ Generally speaking, no user interaction can take place before calling exec(). As
.PP
To make your application perform idle processing, i.e. executing a special function whenever there are no pending events, use a QTimer with 0 timeout. More advanced idle processing schemes can be achieved using processEvents().
.PP
See also QApplication::tquit(), exit(), and processEvents().
See also QApplication::quit(), exit(), and processEvents().
.SH "void QEventLoop::exit ( int retcode = 0 )\fC [virtual]\fR"
Tells the event loop to exit with a return code.
.PP
@ -157,7 +157,7 @@ By convention, a \fIretcode\fR of 0 means success, and any non-zero value indica
.PP
Note that unlike the C library function of the same name, this function \fIdoes\fR return to the caller -- it is event processing that stops.
.PP
See also QApplication::tquit() and exec().
See also QApplication::quit() and exec().
.SH "void QEventLoop::exitLoop ()\fC [virtual]\fR"
This function exits from a recursive call to the main event loop. Do not call it unless you really know what you are doing.
.SH "bool QEventLoop::hasPendingEvents () const\fC [virtual]\fR"

@ -392,7 +392,7 @@ South and Southeast Asian scripts (left to right with few historical exceptions)
.TP
\fCQFont::Thai\fR - is used to write Thai and other Southeast Asian languages.
.TP
\fCQFont::Lao\fR - is a language and script tquite similar to Thai.
\fCQFont::Lao\fR - is a language and script quite similar to Thai.
.TP
\fCQFont::Tibetan\fR - is the script used to write Tibetan in several countries like Tibet, the bordering Indian regions and Nepal. It is also used in the Buddist philosophy and liturgy of the Mongolian cultural area.
.TP

@ -131,7 +131,7 @@ On Windows, it calls the virtual function choosePixelFormat(), which finds a mat
.SH "void * QGLContext::chooseMacVisual ( GDHandle device )\fC [virtual protected]\fR"
\fBMac only\fR: This virtual function tries to find a visual that matches the format using the given \fIdevice\fR handle, reducing the demands if the original request cannot be met.
.PP
The algorithm for reducing the demands of the format is tquite simple-minded, so override this method in your subclass if your application has specific retquirements on visual selection.
The algorithm for reducing the demands of the format is quite simple-minded, so override this method in your subclass if your application has specific retquirements on visual selection.
.PP
See also chooseContext().
.SH "int QGLContext::choosePixelFormat ( void * dummyPfd, HDC pdc )\fC [virtual protected]\fR"
@ -143,7 +143,7 @@ See also chooseContext().
.SH "void * QGLContext::chooseVisual ()\fC [virtual protected]\fR"
\fBX11 only\fR: This virtual function tries to find a visual that matches the format, reducing the demands if the original request cannot be met.
.PP
The algorithm for reducing the demands of the format is tquite simple-minded, so override this method in your subclass if your application has spcific retquirements on visual selection.
The algorithm for reducing the demands of the format is quite simple-minded, so override this method in your subclass if your application has spcific retquirements on visual selection.
.PP
See also chooseContext().
.SH "bool QGLContext::create ( const QGLContext * shareContext = 0 )\fC [virtual]\fR"

@ -33,7 +33,7 @@ In contrast to this, Unicode defines characters to be in logical order (the orde
.PP
Transformation from Unicode to visual Hebrew (8859-8) is done using the bidi algorithm in Qt, and will produce correct results, so long as the codec is given the text a whole paragraph at a time. Places where newlines are supposed to go can be indicated by a newline character ('\\n'). Note that these newline characters change the reordering behaviour of the algorithm, since the bidi reordering only takes place within one line of text, whereas line breaks are determined in visual order.
.PP
Visually ordered Hebrew is still used tquite often in some places, mainly in email communication (since most email programs still don't understand logically ordered Hebrew) and on web pages. The use on web pages is rapidly decreasing, due to the availability of browsers that correctly support logically ordered Hebrew.
Visually ordered Hebrew is still used quite often in some places, mainly in email communication (since most email programs still don't understand logically ordered Hebrew) and on web pages. The use on web pages is rapidly decreasing, due to the availability of browsers that correctly support logically ordered Hebrew.
.PP
This codec has the name "iso8859-8". If you don't want any bidi reordering to happen during conversion, use the "iso8859-8-i" codec, which assumes logical order for the 8-bit string.
.PP

@ -441,7 +441,7 @@ If the user does not select anything, no signals are emitted and currentItem() r
.PP
A list box has WheelFocus as a default focusPolicy(), i.e. it can get keyboard focus by tabbing, clicking and through the use of the mouse wheel.
.PP
New items can be inserted using insertItem(), insertStrList() or insertStringList(). inSort() is obsolete because this method is tquite inefficient. It's preferable to insert the items normally and call sort() afterwards, or to insert a sorted QStringList().
New items can be inserted using insertItem(), insertStrList() or insertStringList(). inSort() is obsolete because this method is quite inefficient. It's preferable to insert the items normally and call sort() afterwards, or to insert a sorted QStringList().
.PP
By default, vertical and horizontal scroll bars are added and removed as necessary. setHScrollBarMode() and setVScrollBarMode() can be used to change this policy.
.PP
@ -634,7 +634,7 @@ See also currentChanged(), selected(), currentItem, and selectionChanged().
.SH "int QListBox::inSort ( const QListBoxItem * lbi )"
\fBThis function is obsolete.\fR It is provided to keep old source working. We strongly advise against using it in new code.
.PP
Using this method is tquite inefficient. We suggest to use insertItem() for inserting and sort() afterwards.
Using this method is quite inefficient. We suggest to use insertItem() for inserting and sort() afterwards.
.PP
Inserts \fIlbi\fR at its sorted position in the list box and returns the position.
.PP
@ -646,7 +646,7 @@ See also insertItem() and sort().
.PP
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Using this method is tquite inefficient. We suggest to use insertItem() for inserting and sort() afterwards.
Using this method is quite inefficient. We suggest to use insertItem() for inserting and sort() afterwards.
.PP
Inserts a new item of \fItext\fR at its sorted position in the list box and returns the position.
.PP

@ -218,7 +218,7 @@ Qt/Mac also provides a menubar merging feature to make QMenuBar conform more clo
.PP
<center>.nf
.TS
l - l. String matches Placement Notes about.* Application Menu | About If this entry is not found no About item will appear in the Application Menu config, options, setup, settings or preferences Application Menu | Preferences If this entry is not found the Settings item will be disabled tquit or exit Application Menu | Quit If this entry is not found a default Quit item will be created to call
l - l. String matches Placement Notes about.* Application Menu | About If this entry is not found no About item will appear in the Application Menu config, options, setup, settings or preferences Application Menu | Preferences If this entry is not found the Settings item will be disabled quit or exit Application Menu | Quit If this entry is not found a default Quit item will be created to call
.TE
.fi
</center>
@ -282,7 +282,7 @@ A menu item is usually either a text string or a pixmap, both with an optional i
.PP
Some insertItem() members take a popup menu as an additional argument. Use this to insert submenus into existing menus or pulldown menus into a menu bar.
.PP
The number of insert functions may look confusing, but they are actually tquite simple to use.
The number of insert functions may look confusing, but they are actually quite simple to use.
.PP
This default version inserts a menu item with the text \fItext\fR, the accelerator key \fIaccel\fR, an id and an optional index and connects it to the slot \fImember\fR in the object \fIreceiver\fR.
.PP

@ -322,7 +322,7 @@ A menu item is usually either a text string or a pixmap, both with an optional i
.PP
Some insertItem() members take a popup menu as an additional argument. Use this to insert submenus into existing menus or pulldown menus into a menu bar.
.PP
The number of insert functions may look confusing, but they are actually tquite simple to use.
The number of insert functions may look confusing, but they are actually quite simple to use.
.PP
This default version inserts a menu item with the text \fItext\fR, the accelerator key \fIaccel\fR, an id and an optional index and connects it to the slot \fImember\fR in the object \fIreceiver\fR.
.PP
@ -607,7 +607,7 @@ Example:
.br
fileMenu->insertItem( "Quit", 69 ); // add "Quit" item
.br
fileMenu->setAccel( CTRL + ALT + Key_Delete, 69 ); // add Alt+Del to tquit
fileMenu->setAccel( CTRL + ALT + Key_Delete, 69 ); // add Alt+Del to quit
.br
mainMenu->insertItem( "File", fileMenu ); // add the file menu
.br

@ -226,7 +226,7 @@ Returns TRUE if auto-deleting is enabled; otherwise returns FALSE.
.PP
See also QNetworkProtocol::setAutoDelete().
.SH "bool QNetworkProtocol::checkConnection ( QNetworkOperation * op )\fC [virtual protected]\fR"
For processing operations the network protocol base class calls this method tquite often. This should be reimplemented by new network protocols. It should return TRUE if the connection is OK (open); otherwise it should return FALSE. If the connection is not open the protocol should open it.
For processing operations the network protocol base class calls this method quite often. This should be reimplemented by new network protocols. It should return TRUE if the connection is OK (open); otherwise it should return FALSE. If the connection is not open the protocol should open it.
.PP
If the connection can't be opened (e.g. because you already tried but the host couldn't be found), set the state of \fIop\fR to QNetworkProtocol::StFailed and emit the finished() signal with this QNetworkOperation as argument.
.PP

@ -779,7 +779,7 @@ Searches the children and optionally grandchildren of this object, and returns a
.PP
If \fIregexpMatch\fR is TRUE (the default), \fIobjName\fR is a regular expression that the objects's names must match. The syntax is that of a QRegExp. If \fIregexpMatch\fR is FALSE, \fIobjName\fR is a string and object names must match it exactly.
.PP
Note that \fIinheritsClass\fR uses single inheritance from QObject, the way inherits() does. According to inherits(), QMenuBar inherits QWidget but not QMenuData. This does not tquite match reality, but is the best that can be done on the wide variety of compilers Qt supports.
Note that \fIinheritsClass\fR uses single inheritance from QObject, the way inherits() does. According to inherits(), QMenuBar inherits QWidget but not QMenuData. This does not quite match reality, but is the best that can be done on the wide variety of compilers Qt supports.
.PP
Finally, if \fIrecursiveSearch\fR is TRUE (the default), queryList() searches \fIn\fRth-generation as well as first-generation children.
.PP

@ -410,7 +410,7 @@ A menu item is usually either a text string or a pixmap, both with an optional i
.PP
Some insertItem() members take a popup menu as an additional argument. Use this to insert submenus into existing menus or pulldown menus into a menu bar.
.PP
The number of insert functions may look confusing, but they are actually tquite simple to use.
The number of insert functions may look confusing, but they are actually quite simple to use.
.PP
This default version inserts a menu item with the text \fItext\fR, the accelerator key \fIaccel\fR, an id and an optional index and connects it to the slot \fImember\fR in the object \fIreceiver\fR.
.PP
@ -703,7 +703,7 @@ Example:
.br
fileMenu->insertItem( "Quit", 69 ); // add "Quit" item
.br
fileMenu->setAccel( CTRL + ALT + Key_Delete, 69 ); // add Alt+Del to tquit
fileMenu->setAccel( CTRL + ALT + Key_Delete, 69 ); // add Alt+Del to quit
.br
mainMenu->insertItem( "File", fileMenu ); // add the file menu
.br

@ -148,7 +148,7 @@ See also head(), isEmpty(), and dequeue().
.SH "void QPtrQueue::setAutoDelete ( bool enable )"
Sets the queue to auto-delete its contents if \fIenable\fR is TRUE and not to delete them if \fIenable\fR is FALSE.
.PP
If auto-deleting is turned on, all the items in a queue are deleted when the queue itself is deleted. This can be tquite convenient if the queue has the only pointer to the items.
If auto-deleting is turned on, all the items in a queue are deleted when the queue itself is deleted. This can be quite convenient if the queue has the only pointer to the items.
.PP
The default setting is FALSE, for safety. If you turn it on, be careful about copying the queue: you might find yourself with two queues deleting the same items.
.PP

@ -309,7 +309,7 @@ Inherited by QCanvasView, QTable, QGridView, QIconView, QListBox, QListView, and
.SH DESCRIPTION
The QScrollView widget provides a scrolling area with on-demand scroll bars.
.PP
The QScrollView is a large canvas - potentially larger than the coordinate system normally supported by the underlying window system. This is important because it is tquite easy to go beyond these limitations (e.g. many web pages are more than 32000 pixels high). Additionally, the QScrollView can have QWidgets positioned on it that scroll around with the drawn content. These sub-widgets can also have positions outside the normal coordinate range (but they are still limited in size).
The QScrollView is a large canvas - potentially larger than the coordinate system normally supported by the underlying window system. This is important because it is quite easy to go beyond these limitations (e.g. many web pages are more than 32000 pixels high). Additionally, the QScrollView can have QWidgets positioned on it that scroll around with the drawn content. These sub-widgets can also have positions outside the normal coordinate range (but they are still limited in size).
.PP
To provide content for the widget, inherit from QScrollView, reimplement drawContents() and use resizeContents() to set the size of the viewed area. Use addChild() and moveChild() to position widgets on the view.
.PP
@ -757,7 +757,7 @@ Sets the resize policy. See the "resizePolicy" property for details.
.SH "void QScrollView::setStaticBackground ( bool y )"
Sets the scrollview to have a static background if \fIy\fR is TRUE, or a scrolling background if \fIy\fR is FALSE. By default, the background is scrolling.
.PP
Be aware that this mode is tquite slow, as a full repaint of the visible area has to be triggered on every contents move.
Be aware that this mode is quite slow, as a full repaint of the visible area has to be triggered on every contents move.
.PP
See also hasStaticBackground().
.SH "void QScrollView::setVBarGeometry ( QScrollBar & vbar, int x, int y, int w, int h )\fC [virtual protected]\fR"

@ -90,7 +90,7 @@ This enum type defines the circumstances under which this application wants to b
.TP
\fCQSessionManager::RestartIfRunning\fR - if the application is still running when the session is shut down, it wants to be restarted at the start of the next session.
.TP
\fCQSessionManager::RestartAnyway\fR - the application wants to be started at the start of the next session, no matter what. (This is useful for utilities that run just after startup and then tquit.)
\fCQSessionManager::RestartAnyway\fR - the application wants to be started at the start of the next session, no matter what. (This is useful for utilities that run just after startup and then quit.)
.TP
\fCQSessionManager::RestartImmediately\fR - the application wants to be started immediately whenever it is not running.
.TP

@ -165,7 +165,7 @@ The signals error(), connected(), readyRead() and connectionClosed() inform you
.PP
There are several access functions for the socket: state() returns whether the object is idle, is doing a DNS lookup, is connecting, has an operational connection, etc. address() and port() return the IP address and port used for the connection. The peerAddress() and peerPort() functions return the IP address and port used by the peer, and peerName() returns the name of the peer (normally the name that was passed to connectToHost()). socketDevice() returns a pointer to the QSocketDevice used for this socket.
.PP
QSocket inherits QIODevice, and reimplements some functions. In general, you can treat it as a QIODevice for writing, and mostly also for reading. The match isn't perfect, since the QIODevice API is designed for devices that are controlled by the same machine, and an asynchronous peer-to-peer network connection isn't tquite like that. For example, there is nothing that matches QIODevice::size() exactly. The documentation for open(), close(), flush(), size(), at(), atEnd(), readBlock(), writeBlock(), getch(), putch(), ungetch() and readLine() describes the differences in detail.
QSocket inherits QIODevice, and reimplements some functions. In general, you can treat it as a QIODevice for writing, and mostly also for reading. The match isn't perfect, since the QIODevice API is designed for devices that are controlled by the same machine, and an asynchronous peer-to-peer network connection isn't quite like that. For example, there is nothing that matches QIODevice::size() exactly. The documentation for open(), close(), flush(), size(), at(), atEnd(), readBlock(), writeBlock(), getch(), putch(), ungetch() and readLine() describes the differences in detail.
.PP
\fBWarning:\fR QSocket is not suitable for use in threads. If you need to uses sockets in threads use the lower-level QSocketDevice class.
.PP

@ -244,7 +244,7 @@ Returns TRUE if this is a valid socket; otherwise returns FALSE.
.PP
See also socket().
.SH "bool QSocketDevice::listen ( int backlog )\fC [virtual]\fR"
Specifies how many pending connections a server socket can have. Returns TRUE if the operation was successful; otherwise returns FALSE. A \fIbacklog\fR value of 50 is tquite common.
Specifies how many pending connections a server socket can have. Returns TRUE if the operation was successful; otherwise returns FALSE. A \fIbacklog\fR value of 50 is quite common.
.PP
The listen() call only applies to sockets where type() is Stream, i.e. not to Datagram sockets. listen() must not be called before bind() or after accept().
.PP

@ -130,7 +130,7 @@ Example:
.br
QApplication a( argc, argv );
.br
QTimer::singleShot( 10*60*1000, &a, SLOT(tquit()) );
QTimer::singleShot( 10*60*1000, &a, SLOT(quit()) );
.br
... // create and show your widgets
.br

@ -125,7 +125,7 @@ To add a tip to a widget, call the \fIstatic\fR function QToolTip::add() with th
.PP
.nf
.br
QToolTip::add( tquitButton, "Leave the application" );
QToolTip::add( quitButton, "Leave the application" );
.br
.fi
.PP
@ -133,7 +133,7 @@ This is the simplest and most common use of QToolTip. The tip will be deleted au
.PP
.nf
.br
QToolTip::remove( tquitButton );
QToolTip::remove( quitButton );
.br
.fi
.PP
@ -141,7 +141,7 @@ You can also display another text (typically in a status bar), courtesy of QTool
.PP
.nf
.br
QToolTip::add( tquitButton, "Leave the application", grp,
QToolTip::add( quitButton, "Leave the application", grp,
.br
"Leave the application, prompting to save if necessary" );
.br

@ -1028,7 +1028,7 @@ Every widget's constructor accepts two or three standard arguments: <ol type=1>
.IP 1
\fCQWidget *parent = 0\fR is the parent of the new widget. If it is 0 (the default), the new widget will be a top-level window. If not, it will be a child of \fIparent\fR, and be constrained by \fIparent\fR's geometry (unless you specify WType_TopLevel as widget flag).
.IP 2
\fCconst char *name = 0\fR is the widget name of the new widget. You can access it using name(). The widget name is little used by programmers but is tquite useful with GUI builders such as \fIQt Designer\fR (you can name a widget in \fIQt Designer\fR, and connect() to it using the name in your code). The dumpObjectTree() debugging function also uses it.
\fCconst char *name = 0\fR is the widget name of the new widget. You can access it using name(). The widget name is little used by programmers but is quite useful with GUI builders such as \fIQt Designer\fR (you can name a widget in \fIQt Designer\fR, and connect() to it using the name in your code). The dumpObjectTree() debugging function also uses it.
.IP 3
\fCWFlags f = 0\fR (where available) sets the widget flags; the default is suitable for almost all widgets, but to get, for example, a top-level widget without a window system frame, you must use special flags.
.PP
@ -1049,7 +1049,7 @@ mousePressEvent() - called when a mouse button is pressed. There are six mouse-r
mouseReleaseEvent() - called when a mouse button is released. A widget receives mouse release events when it has received the corresponding mouse press event. This means that if the user presses the mouse inside \fIyour\fR widget, then drags the mouse to somewhere else, then releases, \fIyour\fR widget receives the release event. There is one exception: if a popup menu appears while the mouse button is held down, this popup immediately steals the mouse events.
.IP
.TP
mouseDoubleClickEvent() - not tquite as obvious as it might seem. If the user double-clicks, the widget receives a mouse press event (perhaps a mouse move event or two if they don't hold the mouse tquite steady), a mouse release event and finally this event. It is \fInot possible\fR to distinguish a click from a double click until you've seen whether the second click arrives. (This is one reason why most GUI books recommend that double clicks be an extension of single clicks, rather than trigger a different action.)
mouseDoubleClickEvent() - not quite as obvious as it might seem. If the user double-clicks, the widget receives a mouse press event (perhaps a mouse move event or two if they don't hold the mouse quite steady), a mouse release event and finally this event. It is \fInot possible\fR to distinguish a click from a double click until you've seen whether the second click arrives. (This is one reason why most GUI books recommend that double clicks be an extension of single clicks, rather than trigger a different action.)
.IP
.PP
If your widget only contains child widgets, you probably do not need to implement any event handlers. If you want to detect a mouse click in a child widget call the child's hasMouse() function inside the parent widget's mousePressEvent().
@ -1247,7 +1247,7 @@ The QApplication::lastWindowClosed() signal is emitted when the last visible top
.PP
Note that closing the QApplication::mainWidget() terminates the application.
.PP
See also closeEvent(), QCloseEvent, hide(), QApplication::tquit(), QApplication::setMainWidget(), and QApplication::lastWindowClosed().
See also closeEvent(), QCloseEvent, hide(), QApplication::quit(), QApplication::setMainWidget(), and QApplication::lastWindowClosed().
.SH "void QWidget::closeEvent ( QCloseEvent * e )\fC [virtual protected]\fR"
This event handler, for event \fIe\fR, can be reimplemented in a subclass to receive widget close events.
.PP

@ -77,7 +77,7 @@ Continues incremental parsing; this function reads the input from the QXmlInputS
.PP
Returns FALSE if a parsing error occurs; otherwise returns TRUE.
.PP
If the input source returns an empty string for the function QXmlInputSource::data(), then this means that the end of the XML file has been reached; this is tquite important, especially if you want to use the reader to parse more than one XML file.
If the input source returns an empty string for the function QXmlInputSource::data(), then this means that the end of the XML file has been reached; this is quite important, especially if you want to use the reader to parse more than one XML file.
.PP
The case of the end of the XML file being reached without having finished parsing is not considered to be an error: you can continue parsing at a later stage by calling this function again when there is more data available to parse.
.PP

@ -978,7 +978,7 @@ OS 8 addendum.\endlink
<b>The Microsoft Windows User Experience</b>, ISBN 1-55615-679-0,
is Microsoft's look and feel Bible. Indispensable for everyone who
has customers that worship Microsoft, and it's tquite good, too.
has customers that worship Microsoft, and it's quite good, too.
\link http://www.amazon.com/exec/obidos/ASIN/0735605661/trolltech/t
(Read more or buy it.)\endlink
@ -1073,7 +1073,7 @@ Furthermore, a toolkit cannot simply place windows on the screen. All
Qt can do is to send certain hints to the window manager. The window
manager, a separate process, may either obey, ignore or misunderstand
them. Due to the partially unclear Inter-Client Communication
Conventions Manual (ICCCM), window placement is handled tquite
Conventions Manual (ICCCM), window placement is handled quite
differently in existing window managers.
X11 provides no standard or easy way to get the frame geometry once

@ -84,7 +84,7 @@ digital camera using a serial connection.
\section1 Working Network Protocol independently with QUrlOperator and QNetworkOperation
It is tquite easy to just use existing network protocol implementations
It is quite easy to just use existing network protocol implementations
and operate on URLs. For example, downloading a file from an FTP
server to the local filesystem can be done with following code:

@ -195,7 +195,7 @@
and not to delete them if \a enable is FALSE.
If auto-deleting is turned on, all the items in a queue are
deleted when the queue itself is deleted. This can be tquite
deleted when the queue itself is deleted. This can be quite
convenient if the queue has the only pointer to the items.
The default setting is FALSE, for safety. If you turn it on, be

@ -273,10 +273,10 @@ may connect signals to. This is intended for very tightly connected
classes, where even subclasses aren't trusted to get the connections
right.
You can also define slots to be virtual, which we have found tquite
You can also define slots to be virtual, which we have found quite
useful in practice.
The signals and slots mechanism is efficient, but not tquite as fast as
The signals and slots mechanism is efficient, but not quite as fast as
"real" callbacks. Signals and slots are slightly slower because of the
increased flexibility they provide, although the difference for real
applications is insignificant. In general, emitting a signal that is

@ -223,7 +223,7 @@ You're now ready for \link tutorial1-02.html Chapter 2.\endlink
\img t2.png Screenshot of tutorial two
Having created a window in \link tutorial1-01.html Chapter 1, \endlink we will
now go on to make the application tquit properly when the user tells it to.
now go on to make the application quit properly when the user tells it to.
We will also use a font that is more exciting than the default one.
@ -272,9 +272,9 @@ both \c signals (to send messages) and \c slots (to receive messages). All
widgets are Qt objects. They inherit QWidget which in turn inherits
QObject.
Here, the \e clicked() signal of \e tquit is connected to the \e
tquit() slot of \e a, so that when the button is clicked, the
application tquits.
Here, the \e clicked() signal of \e quit is connected to the \e
quit() slot of \e a, so that when the button is clicked, the
application quits.
The \link signalsandslots.html Signals and Slots\endlink documentation
describes this topic in detail.
@ -292,7 +292,7 @@ makefile and build the application.)
Try to resize the window. Press the button. Oops! That connect()
would seem to make some difference.
Are there any other signals in QPushButton you can connect to tquit?
Are there any other signals in QPushButton you can connect to quit?
Hint: The QPushButton inherits most of its behavior from QButton.
You're now ready for \link tutorial1-03.html Chapter 3.\endlink
@ -334,7 +334,7 @@ space according to each child's \l QWidget::sizePolicy().
We set its width to 200 pixels and the height to 120 pixels.
\printline tquit
\printline quit
A child is born.
@ -431,11 +431,11 @@ we will show how a widget can respond to resize event from the user.
\printuntil setFont
Here we create and set up a child widget of this widget (the new widget's
parent is \c this) which has the widget name "tquit". The widget
parent is \c this) which has the widget name "quit". The widget
name has nothing to do with the button text; it just happens to be
similar in this case.
Note that \c tquit is a local variable in the constructor. MyWidget
Note that \c quit is a local variable in the constructor. MyWidget
does not keep track of it, but Qt does, and will by default delete it
when MyWidget is deleted. This is why MyWidget doesn't need a
destructor. (On the other hand, there is no harm in deleting a child
@ -570,7 +570,7 @@ You can also change the slider's range.
Perhaps it would have been better to use \l QSpinBox than a slider?
Try to make the application tquit when the LCD number overflows.
Try to make the application quit when the LCD number overflows.
You're now ready for \link tutorial1-06.html Chapter 6.\endlink
@ -1376,7 +1376,7 @@ the drawing a little bit.
\skipto ::setForce
\printuntil }
The implementation of setForce() is tquite similar to that of
The implementation of setForce() is quite similar to that of
setAngle(). The only difference is that because we don't show the force
value, we don't need to repaint the widget.
@ -2592,13 +2592,13 @@ destroyed when that widget is destroyed. QAccel is \e not a widget
and has no visible effect on its parent.
We define two shortcut keys. We want the slot fire() to be called
when the user presses Enter, and we want the application to tquit when
when the user presses Enter, and we want the application to quit when
key Ctrl+Q is pressed. Because Enter is sometimes Return and there
are even keyboards with \e both keys, we make both Enter and Return
invoke fire().
\printline connectItem
\printline tquit
\printline quit
And then we set up Ctrl+Q to do the same thing as Alt+Q. Some
people are more used to Ctrl+Q (and anyway it shows how do do it).

@ -385,7 +385,7 @@ canvas; but events (e.g. mouse clicks) take place on the canvas view.
\endtable
Each action is represented by a private slot, e.g. \c fileNew(), \c
optionsSetData(), etc. We also have tquite a number of private
optionsSetData(), etc. We also have quite a number of private
functions and data members; we'll look at all these as we go through
the implementation.
@ -673,7 +673,7 @@ item id.
\printline
\printline
When the user tquits we give them the opportunity to save any unsaved
When the user quits we give them the opportunity to save any unsaved
data (okToClear()) then save their options, e.g. window size and
position, chart type, etc., before terminating.
@ -1064,7 +1064,7 @@ We set a caption for the dialog and resize it.
\skipto tableButtonBox
\printline
The layout of the form is tquite simple. The buttons will be grouped
The layout of the form is quite simple. The buttons will be grouped
together in a horizontal layout and the table and the button layout
will be grouped together vertically using the tableButtonBox layout.

@ -589,7 +589,7 @@ prefix \e fnord that is declared in the \e book:author element.
Clearly the \e fnord namespace has the same namespace URI as the
default namespace. So why didn't we simply use the default namespace
we'd already declared? The answer is tquite complex:
we'd already declared? The answer is quite complex:
\list
\i attributes without a prefix don't belong to any XML namespace at
all, not even to the default namespace;

@ -285,7 +285,7 @@ qfd
qmag
This is a simple magnifier-type program. It shows how one can do
some tquite low-level operations portably using Qt.
some quite low-level operations portably using Qt.
qwerty
Simple text editor for testing different character encodings.

@ -93,7 +93,7 @@ ApplicationWindow::ApplicationWindow()
SLOT( close() ) );
fileQuitAction = new TQAction( "Quit", "&Quit", CTRL+Key_Q, this,
"tquit" );
"quit" );
connect( fileQuitAction, SIGNAL( activated() ) , qApp,
SLOT( closeAllWindows() ) );

@ -15,6 +15,6 @@ int main( int argc, char ** argv ) {
ApplicationWindow * mw = new ApplicationWindow();
mw->setCaption( "Document 1" );
mw->show();
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(tquit()) );
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
return a.exec();
}

@ -20,7 +20,7 @@ int main( int argc, char ** argv )
a.setMainWidget( mw );
mw->show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( tquit() ) );
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
int result = a.exec();
delete mw;
return result;

@ -47,7 +47,7 @@ void ABMainWindow::setupMenuBar()
file->insertItem( TQPixmap( "fileprint.xpm" ), "Print...", this, SLOT( filePrint() ), CTRL + Key_P );
file->insertSeparator();
file->insertItem( "Close", this, SLOT( closeWindow() ), CTRL + Key_W );
file->insertItem( "Quit", qApp, SLOT( tquit() ), CTRL + Key_Q );
file->insertItem( "Quit", qApp, SLOT( quit() ), CTRL + Key_Q );
}
void ABMainWindow::setupFileTools()

@ -15,6 +15,6 @@ int main( int argc, char ** argv ) {
ApplicationWindow *mw = new ApplicationWindow();
mw->setCaption( "TQt Example - Application" );
mw->show();
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(tquit()) );
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
return a.exec();
}

@ -319,7 +319,7 @@ Main::Main(TQCanvas& c, TQWidget* parent, const char* name, WFlags f) :
file->insertSeparator();
file->insertItem("&Print...", this, SLOT(print()), CTRL+Key_P);
file->insertSeparator();
file->insertItem("E&xit", qApp, SLOT(tquit()), CTRL+Key_Q);
file->insertItem("E&xit", qApp, SLOT(quit()), CTRL+Key_Q);
menu->insertItem("&File", file);
TQPopupMenu* edit = new TQPopupMenu( menu );

@ -36,7 +36,7 @@ int main(int argc, char** argv)
else
m.showMaximized();
TQObject::connect( qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(tquit()) );
TQObject::connect( qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()) );
return app.exec();
}

@ -126,7 +126,7 @@ ChartForm::ChartForm( const TQString& filename )
connect( optionsSetOptionsAction, SIGNAL( activated() ),
this, SLOT( optionsSetOptions() ) );
fileQuitAction = new TQAction( "Quit", "&Quit", CTRL+Key_Q, this, "tquit" );
fileQuitAction = new TQAction( "Quit", "&Quit", CTRL+Key_Q, this, "quit" );
connect( fileQuitAction, SIGNAL( activated() ), this, SLOT( fileQuit() ) );

@ -36,7 +36,7 @@ int main( int argc, char **argv )
b1->add( new TQPushButton( "More text", f ) );
b1->add( new TQPushButton( "Even longer button text", f ) );
TQPushButton* qb = new TQPushButton( "Quit", f );
a.connect( qb, SIGNAL( clicked() ), SLOT( tquit() ) );
a.connect( qb, SIGNAL( clicked() ), SLOT( quit() ) );
b1->add( qb );
TQWidget *wid = new TQWidget( f );

@ -316,7 +316,7 @@ void TextEdit::fileClose()
void TextEdit::fileExit()
{
qApp->tquit();
qApp->quit();
}
void TextEdit::editUndo()

@ -6,6 +6,6 @@ int main( int argc, char ** argv )
TQApplication a( argc, argv );
Distributor w;
w.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( tquit() ) );
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}

@ -68,6 +68,6 @@ int main( int argc, char ** argv )
mw3.setCaption( "TQt Example - Drag and Drop" );
mw3.show();
TQObject::connect(qApp,SIGNAL(lastWindowClosed()),qApp,SLOT(tquit()));
TQObject::connect(qApp,SIGNAL(lastWindowClosed()),qApp,SLOT(quit()));
return a.exec();
}

@ -6,6 +6,6 @@ int main( int argc, char ** argv )
TQApplication a( argc, argv );
MainForm *w = new MainForm;
w->show();
a.connect( &a, SIGNAL( lastWindowClosed() ), w, SLOT( tquit() ) );
a.connect( &a, SIGNAL( lastWindowClosed() ), w, SLOT( quit() ) );
return a.exec();
}

@ -29,7 +29,7 @@
</widget>
<widget class="TQPushButton">
<property name="name">
<cstring>tquitPushButton</cstring>
<cstring>quitPushButton</cstring>
</property>
<property name="text">
<string>&amp;Quit</string>
@ -45,10 +45,10 @@
<slot>optionsDlg()</slot>
</connection>
<connection>
<sender>tquitPushButton</sender>
<sender>quitPushButton</sender>
<signal>clicked()</signal>
<receiver>MainForm</receiver>
<slot>tquit()</slot>
<slot>quit()</slot>
</connection>
</connections>
<includes>
@ -64,7 +64,7 @@
</variables>
<slots>
<slot>optionsDlg()</slot>
<slot>tquit()</slot>
<slot>quit()</slot>
</slots>
<functions>
<function access="private">init()</function>

@ -40,7 +40,7 @@ void MainForm::optionsDlg()
}
void MainForm::tquit()
void MainForm::quit()
{
TQApplication::exit( 0 );
}

@ -31,7 +31,7 @@ int main( int argc, char **argv )
#ifndef QT_NO_WIDGET_TOPEXTRA // for TQt/Embedded minimal build
h.setCaption( "TQt says hello" );
#endif
TQObject::connect( &h, SIGNAL(clicked()), &a, SLOT(tquit()) );
TQObject::connect( &h, SIGNAL(clicked()), &a, SLOT(quit()) );
h.setFont( TQFont("times",32,TQFont::Bold) ); // default font
h.setBackgroundColor( TQt::white ); // default bg color
a.setMainWidget( &h );

@ -60,6 +60,6 @@
<br><br><br><br><br><br>
<p><a name="closebutton"><h3>Close Button</h3></a></p>
<p>Click this button to tquit this example application.</p>
<p>Click this button to quit this example application.</p>
</body>
</html>

@ -6,6 +6,6 @@ int main( int argc, char ** argv )
TQApplication a( argc, argv );
HelpDemo help;
help.show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( tquit() ) );
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}

@ -35,7 +35,7 @@ int main( int argc, char ** argv )
help->showMaximized();
TQObject::connect( &a, SIGNAL(lastWindowClosed()),
&a, SLOT(tquit()) );
&a, SLOT(quit()) );
return a.exec();
}

@ -135,7 +135,7 @@ int main( int argc, char** argv )
MyWidget* w = showLang((const char*)qm[i]);
if( w == 0 ) exit( 0 );
TQObject::connect(w, SIGNAL(closed()), qApp, SLOT(tquit()));
TQObject::connect(w, SIGNAL(closed()), qApp, SLOT(quit()));
w->setGeometry(x,y,197,356);
w->show();
if ( tight ) {

@ -32,7 +32,7 @@ MyWidget::MyWidget( TQWidget* parent, const char* name )
setCentralWidget(central);
TQPopupMenu* file = new TQPopupMenu(this);
file->insertItem( tr("E&xit"), qApp, SLOT(tquit()),
file->insertItem( tr("E&xit"), qApp, SLOT(quit()),
TQAccel::stringToKey(tr("Ctrl+Q")) );
menuBar()->insertItem( tr("&File"), file );

@ -36,7 +36,7 @@ ExampleWidget::ExampleWidget( TQWidget *parent, const char *name )
menubar->setSeparator( TQMenuBar::InWindowsStyle );
TQPopupMenu* popup;
popup = new TQPopupMenu( this );
popup->insertItem( "&Quit", qApp, SLOT(tquit()) );
popup->insertItem( "&Quit", qApp, SLOT(quit()) );
menubar->insertItem( "&File", popup );
// ...and tell the layout about it.

@ -55,7 +55,7 @@ LifeDialog::LifeDialog( int scale, TQWidget * parent, const char * name )
life->move( SIDEBORDER, TOPBORDER );
connect( qb, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( qb, SIGNAL(clicked()), qApp, SLOT(quit()) );
qb->setGeometry( SIDEBORDER, SIDEBORDER, qb->sizeHint().width(), 25 );
timer = new LifeTimer( this );

@ -16,7 +16,7 @@ int main( int argc, char ** argv ) {
a.setMainWidget(mw);
mw->setCaption( "TQt Example - Multiple Documents Interface (MDI)" );
mw->show();
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(tquit()) );
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
int res = a.exec();
return res;
}

@ -137,7 +137,7 @@ MenuExample::MenuExample( TQWidget *parent, const char *name )
file->insertSeparator();
file->insertItem( "&Print", print, CTRL+Key_P );
file->insertSeparator();
file->insertItem( "E&xit", qApp, SLOT(tquit()), CTRL+Key_Q );
file->insertItem( "E&xit", qApp, SLOT(quit()), CTRL+Key_Q );
TQPopupMenu *edit = new TQPopupMenu( this );
Q_CHECK_PTR( edit );

@ -225,7 +225,7 @@ public:
public slots:
void startMovie(const TQString& filename);
// TQDialog's method - normally closes the file dialog.
// We want it left open, and we want Cancel to tquit everything.
// We want it left open, and we want Cancel to quit everything.
void done( int r );
};
@ -251,7 +251,7 @@ void MovieStarter::startMovie(const TQString& filename)
void MovieStarter::done( int r )
{
if (r != Accepted)
qApp->tquit(); // end on Cancel
qApp->quit(); // end on Cancel
setResult( r );
// And don't hide.
@ -276,7 +276,7 @@ int main(int argc, char **argv)
(void)new MovieScreen(argv[arg], TQMovie(argv[arg]), 0, 0,
TQt::WDestructiveClose);
}
TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(tquit()));
TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
} else {
// "GUI" mode - open a chooser for movies
//

@ -17,7 +17,7 @@ int main(int argc, char **argv)
ad.show();
TQObject::connect( &a, SIGNAL(lastWindowClosed()),
&a, SLOT(tquit()) );
&a, SLOT(quit()) );
return a.exec();
}

@ -30,11 +30,11 @@ public:
inputText = new TQLineEdit( hb );
TQPushButton *send = new TQPushButton( tr("Send") , hb );
TQPushButton *close = new TQPushButton( tr("Close connection") , this );
TQPushButton *tquit = new TQPushButton( tr("Quit") , this );
TQPushButton *quit = new TQPushButton( tr("Quit") , this );
connect( send, SIGNAL(clicked()), SLOT(sendToServer()) );
connect( close, SIGNAL(clicked()), SLOT(closeConnection()) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
// create the socket and connect various of its signals
socket = new TQSocket( this );

@ -118,12 +118,12 @@ public:
TQLabel *lb = new TQLabel( itext, this );
lb->setAlignment( AlignHCenter );
infoText = new TQTextView( this );
TQPushButton *tquit = new TQPushButton( tr("Quit") , this );
TQPushButton *quit = new TQPushButton( tr("Quit") , this );
connect( server, SIGNAL(newConnect(ClientSocket*)),
SLOT(newConnect(ClientSocket*)) );
connect( tquit, SIGNAL(clicked()), qApp,
SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp,
SLOT(quit()) );
}
~ServerInfo()

@ -98,12 +98,12 @@ public:
TQLabel *lb = new TQLabel( itext, this );
lb->setAlignment( AlignHCenter );
infoText = new TQTextView( this );
TQPushButton *tquit = new TQPushButton( "tquit" , this );
TQPushButton *quit = new TQPushButton( "quit" , this );
connect( httpd, SIGNAL(newConnect()), SLOT(newConnect()) );
connect( httpd, SIGNAL(endConnect()), SLOT(endConnect()) );
connect( httpd, SIGNAL(wroteToClient()), SLOT(wroteToClient()) );
connect( tquit, SIGNAL(pressed()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(pressed()), qApp, SLOT(quit()) );
}
~HttpInfo()

@ -28,7 +28,7 @@ ClientInfo::ClientInfo( TQWidget *parent, const char *name ) :
connect( infoList, SIGNAL(selected(const TQString&)), SLOT(selectItem(const TQString&)) );
connect( btnConnect, SIGNAL(clicked()), SLOT(connectToServer()) );
connect( btnBack, SIGNAL(clicked()), SLOT(stepBack()) );
connect( btnQuit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( btnQuit, SIGNAL(clicked()), qApp, SLOT(quit()) );
}

@ -23,7 +23,7 @@ ServerInfo::ServerInfo( Q_UINT16 port, TQWidget *parent, const char *name ) :
{
SimpleServer *server = new SimpleServer( port, this, "simple server" );
connect( server, SIGNAL(newConnect()), SLOT(newConnect()) );
connect( btnQuit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( btnQuit, SIGNAL(clicked()), qApp, SLOT(quit()) );
}
void ServerInfo::newConnect()

@ -22,7 +22,7 @@ ClientInfo::ClientInfo( TQWidget *parent, const char *name ) :
ClientInfoBase( parent, name )
{
connect( btnOpen, SIGNAL(clicked()), SLOT(downloadFile()) );
connect( btnQuit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( btnQuit, SIGNAL(clicked()), qApp, SLOT(quit()) );
connect( &op, SIGNAL( data( const TQByteArray &, TQNetworkOperation * ) ),
this, SLOT( newData( const TQByteArray & ) ) );
}

@ -103,7 +103,7 @@ void Nntp::close()
{
// close the command socket
if ( commandSocket->isOpen() ) {
commandSocket->writeBlock( "tquit\r\n", strlen( "tquit\r\n" ) );
commandSocket->writeBlock( "quit\r\n", strlen( "quit\r\n" ) );
commandSocket->close();
}
}

@ -6,6 +6,6 @@ int main( int argc, char **argv )
{
TQApplication a( argc, argv );
StartUp s;
TQObject::connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(tquit()) );
TQObject::connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
return a.exec();
}

@ -123,7 +123,7 @@
</spacer>
<widget class="TQPushButton">
<property name="name">
<cstring>tquitButton</cstring>
<cstring>quitButton</cstring>
</property>
<property name="text">
<string>&amp;Quit</string>
@ -135,7 +135,7 @@
</widget>
<connections>
<connection>
<sender>tquitButton</sender>
<sender>quitButton</sender>
<signal>clicked()</signal>
<receiver>RemoteCtrl</receiver>
<slot>close()</slot>

@ -25,7 +25,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
// Create a menu
TQPopupMenu *file = new TQPopupMenu( this );
file->insertItem( "Exit", qApp, SLOT(tquit()), CTRL+Key_Q );
file->insertItem( "Exit", qApp, SLOT(quit()), CTRL+Key_Q );
// Create a menu bar
TQMenuBar *m = new TQMenuBar( this );

@ -46,7 +46,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
insertMenuItemId = file->insertItem( "Insert Pixmap Here", this,
SLOT(makePixmapForMenu()) );
file->insertSeparator();
file->insertItem( "Exit", qApp, SLOT(tquit()), CTRL+Key_Q );
file->insertItem( "Exit", qApp, SLOT(quit()), CTRL+Key_Q );
// Create a menu bar
TQMenuBar *m = new TQMenuBar( this );

@ -22,7 +22,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
{
// Create a menu
TQPopupMenu *file = new TQPopupMenu( this );
file->insertItem( "Exit", qApp, SLOT(tquit()), CTRL+Key_Q );
file->insertItem( "Exit", qApp, SLOT(quit()), CTRL+Key_Q );
// Create a menu bar
TQMenuBar *m = new TQMenuBar( this );

@ -26,7 +26,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
TQPopupMenu *file = new TQPopupMenu( this );
file->insertItem( "Delete Left TQGLWidget", this,
SLOT(deleteFirstWidget()) );
file->insertItem( "Exit", qApp, SLOT(tquit()), CTRL+Key_Q );
file->insertItem( "Exit", qApp, SLOT(quit()), CTRL+Key_Q );
// Create a menu bar
TQMenuBar *m = new TQMenuBar( this );

@ -36,7 +36,7 @@ GLObjectWindow::GLObjectWindow( TQWidget* parent, const char* name )
file->insertItem( "Toggle Animation", c, SLOT(toggleAnimation()),
CTRL+Key_A );
file->insertSeparator();
file->insertItem( "Exit", qApp, SLOT(tquit()), CTRL+Key_Q );
file->insertItem( "Exit", qApp, SLOT(quit()), CTRL+Key_Q );
// Create a menu bar
TQMenuBar *m = new TQMenuBar( this );

@ -92,7 +92,7 @@ void PictureDisplay::keyPressEvent( TQKeyEvent *k )
pict->load( name );
update();
break;
case 'q': // tquit
case 'q': // quit
TQApplication::exit();
break;
}

@ -32,16 +32,16 @@ public slots:
private:
TQProcess *proc;
TQTextView *output;
TQPushButton *tquitButton;
TQPushButton *quitButton;
};
UicManager::UicManager()
{
// Layout
output = new TQTextView( this );
tquitButton = new TQPushButton( tr("Quit"), this );
connect( tquitButton, SIGNAL(clicked()),
qApp, SLOT(tquit()) );
quitButton = new TQPushButton( tr("Quit"), this );
connect( quitButton, SIGNAL(clicked()),
qApp, SLOT(quit()) );
resize( 500, 500 );
// TQProcess related code

@ -151,7 +151,7 @@ public:
file->insertItem( drawItemText(i), i );
connect( menubar, SIGNAL(activated(int)), this, SLOT(doMenuItem(int)) );
file->insertSeparator();
file->insertItem( "Quit", qApp, SLOT(tquit()) );
file->insertItem( "Quit", qApp, SLOT(quit()) );
options = new TQPopupMenu();
Q_CHECK_PTR( options );

@ -49,7 +49,7 @@ private:
TQComboBox *refresh;
TQPushButton *saveButton;
TQPushButton *multiSaveButton;
TQPushButton *tquitButton;
TQPushButton *quitButton;
TQPixmap pm; // pixmap, magnified
TQPixmap p; // pixmap
TQImage image; // image of pixmap (for RGB)
@ -126,12 +126,12 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
multiSaveButton->setGeometry( saveButton->geometry().right() + 2, 2,
10+multiSaveButton->fontMetrics().width("MultiSave"), 20 );
tquitButton = new TQPushButton( this );
Q_CHECK_PTR(tquitButton);
connect( tquitButton, SIGNAL(clicked()), qApp, SLOT(tquit()) );
tquitButton->setText( "Quit" );
tquitButton->setGeometry( multiSaveButton->geometry().right() + 2, 2,
10+tquitButton->fontMetrics().width("Quit"), 20 );
quitButton = new TQPushButton( this );
Q_CHECK_PTR(quitButton);
connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
quitButton->setText( "Quit" );
quitButton->setGeometry( multiSaveButton->geometry().right() + 2, 2,
10+quitButton->fontMetrics().width("Quit"), 20 );
#else
zoom = 0;
multiSaveButton = 0;
@ -150,8 +150,8 @@ MagWidget::MagWidget( TQWidget *parent, const char *name )
yoffset = zoom->height() // top buttons
+ 4 // space around top buttons
+ rgb->height(); // color-value text height
setMinimumSize( tquitButton->pos().x(), yoffset+20 );
resize( tquitButton->geometry().topRight().x() + 2, yoffset+60 );
setMinimumSize( quitButton->pos().x(), yoffset+20 );
resize( quitButton->geometry().topRight().x() + 2, yoffset+60 );
#else
yoffset = 0;
resize(350,350);

@ -6,7 +6,7 @@
\title QMag
This is a simple magnifier-type program. It shows how one can do
some tquite low-level operations in a portable way using Qt.
some quite low-level operations in a portable way using Qt.
Run it, click in the magnifier window, then click where you want to
magnify or drag out a rectangle. Two combo boxes let you select

@ -32,6 +32,6 @@ int main( int argc, char **argv )
e->show();
}
}
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(tquit()) );
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
return a.exec();
}

@ -6,6 +6,6 @@ int main(int argc, char **argv)
TQApplication app(argc, argv);
RegexpTester form;
form.show();
app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(tquit()));
app.connect(&app, SIGNAL(lastWindowClosed()), &app, SLOT(quit()));
return app.exec();
}

@ -39,7 +39,7 @@ RegexpTester::RegexpTester(TQWidget* parent, const char* name, bool modal,
executePushButton = new TQPushButton(this);
executePushButton->setDefault(true);
copyPushButton = new TQPushButton(this);
tquitPushButton = new TQPushButton(this);
quitPushButton = new TQPushButton(this);
statusBar = new TQStatusBar(this);
TQGridLayout *gridLayout = new TQGridLayout(2, 2, 6);
@ -55,7 +55,7 @@ RegexpTester::RegexpTester(TQWidget* parent, const char* name, bool modal,
TQVBoxLayout *buttonLayout = new TQVBoxLayout(0, 6, 6);
buttonLayout->addWidget(executePushButton);
buttonLayout->addWidget(copyPushButton);
buttonLayout->addWidget(tquitPushButton);
buttonLayout->addWidget(quitPushButton);
buttonLayout->addStretch(1);
TQHBoxLayout *middleLayout = new TQHBoxLayout(0, 6, 6);
middleLayout->addWidget(resultTable);
@ -72,7 +72,7 @@ RegexpTester::RegexpTester(TQWidget* parent, const char* name, bool modal,
connect(copyPushButton, SIGNAL(clicked()), this, SLOT(copy()));
connect(executePushButton, SIGNAL(clicked()), this, SLOT(execute()));
connect(tquitPushButton, SIGNAL(clicked()), this, SLOT(accept()));
connect(quitPushButton, SIGNAL(clicked()), this, SLOT(accept()));
execute();
}
@ -174,6 +174,6 @@ void RegexpTester::languageChange()
wildcardCheckBox->setText(tr("&Wildcard"));
copyPushButton->setText(tr("&Copy"));
executePushButton->setText(tr("&Execute"));
tquitPushButton->setText(tr("&Quit"));
quitPushButton->setText(tr("&Quit"));
}

@ -28,7 +28,7 @@ public:
TQTable *resultTable;
TQPushButton *executePushButton;
TQPushButton *copyPushButton;
TQPushButton *tquitPushButton;
TQPushButton *quitPushButton;
TQStatusBar *statusBar;
public slots:

@ -100,7 +100,7 @@ MyRichText::MyRichText( TQWidget *parent, const char *name )
bPrev->setEnabled( FALSE );
connect( bClose, SIGNAL( clicked() ), qApp, SLOT( tquit() ) );
connect( bClose, SIGNAL( clicked() ), qApp, SLOT( quit() ) );
connect( bPrev, SIGNAL( clicked() ), this, SLOT( prev() ) );
connect( bNext, SIGNAL( clicked() ), this, SLOT( next() ) );

@ -21,14 +21,14 @@ Rot13::Rot13()
connect( left, SIGNAL(textChanged()), this, SLOT(changeRight()) );
connect( right, SIGNAL(textChanged()), this, SLOT(changeLeft()) );
TQPushButton * tquit = new TQPushButton( "&Quit", this );
tquit->setFocusPolicy( NoFocus );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
TQPushButton * quit = new TQPushButton( "&Quit", this );
quit->setFocusPolicy( NoFocus );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
TQGridLayout * l = new TQGridLayout( this, 2, 2, 5 );
l->addWidget( left, 0, 0 );
l->addWidget( right, 0, 1 );
l->addWidget( tquit, 1, 1, AlignRight );
l->addWidget( quit, 1, 1, AlignRight );
left->setFocus();
}

@ -43,7 +43,7 @@ public:
for (int y=0; y<2000-h; y+=h+10) {
if (y == 0) {
TQButton* q=new TQPushButton("Quit", this);
connect(q, SIGNAL(clicked()), qApp, SLOT(tquit()));
connect(q, SIGNAL(clicked()), qApp, SLOT(quit()));
} else {
TQString str;
if ( b > 0 ) {
@ -207,7 +207,7 @@ public:
TQPopupMenu* file = new TQPopupMenu( menubar );
Q_CHECK_PTR( file );
menubar->insertItem( "&File", file );
file->insertItem( "Quit", qApp, SLOT(tquit()) );
file->insertItem( "Quit", qApp, SLOT(quit()) );
vp_options = new TQPopupMenu( menubar );
Q_CHECK_PTR( vp_options );
@ -433,7 +433,7 @@ int main( int argc, char **argv )
ve3.setCaption("TQt Example - Scrollviews");
ve3.show();
TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(tquit()));
TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
return a.exec();
}

@ -50,7 +50,7 @@ int main( int argc, char **argv )
}
}
TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(tquit()));
TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
return a.exec();
}

@ -57,7 +57,7 @@ ImageViewer::ImageViewer( TQWidget *parent, const char *name, int wFlags )
si = file->insertItem( "Save image", saveimage );
sp = file->insertItem( "Save pixmap", savepixmap );
file->insertSeparator();
file->insertItem( "E&xit", qApp, SLOT(tquit()), CTRL+Key_Q );
file->insertItem( "E&xit", qApp, SLOT(quit()), CTRL+Key_Q );
edit = new TQPopupMenu( menubar );
menubar->insertItem( "&Edit", edit );

@ -50,7 +50,7 @@ SoundPlayer::SoundPlayer() :
file->insertItem("Play 3 and 4 together", this, SLOT(doPlay34()));
file->insertItem("Play all together", this, SLOT(doPlay1234()));
file->insertSeparator();
file->insertItem("E&xit", qApp, SLOT(tquit()));
file->insertItem("E&xit", qApp, SLOT(quit()));
menuBar()->insertItem("&File", file);
}

@ -25,7 +25,7 @@ TabDialog::TabDialog( TQWidget *parent, const char *name, const TQString &_filen
setupTab2();
setupTab3();
connect( this, SIGNAL( applyButtonPressed() ), qApp, SLOT( tquit() ) );
connect( this, SIGNAL( applyButtonPressed() ), qApp, SLOT( quit() ) );
}
void TabDialog::setupTab1()

@ -111,12 +111,12 @@ TQTetrix::TQTetrix( TQWidget *parent, const char *name )
showLines->setFrameStyle(TQFrame::Sunken|TQFrame::Box);
showLevel->setFrameStyle(TQFrame::Sunken|TQFrame::Box);
#endif
tquitButton = new TQPushButton("&Quit",this);
quitButton = new TQPushButton("&Quit",this);
startButton = new TQPushButton("&New Game",this);
pauseButton = new TQPushButton("&Pause",this);
// Don't let the buttons get keyboard focus
tquitButton->setFocusPolicy( TQWidget::NoFocus );
quitButton->setFocusPolicy( TQWidget::NoFocus );
startButton->setFocusPolicy( TQWidget::NoFocus );
pauseButton->setFocusPolicy( TQWidget::NoFocus );
@ -140,7 +140,7 @@ TQTetrix::TQTetrix( TQWidget *parent, const char *name )
SLOT(setNum(int)));
#endif
connect( startButton, SIGNAL(clicked()), board, SLOT(start()) );
connect( tquitButton , SIGNAL(clicked()), SLOT(tquit()));
connect( quitButton , SIGNAL(clicked()), SLOT(quit()));
connect( pauseButton, SIGNAL(clicked()), board, SLOT(pause()) );
board->setGeometry( 150, 20, 153, 333 );
@ -158,7 +158,7 @@ TQTetrix::TQTetrix( TQWidget *parent, const char *name )
showLines->setNum( 0 );
#endif
startButton->setGeometry( 46, 288, 90, 30 );
tquitButton->setGeometry( 370, 265, 90, 30 );
quitButton->setGeometry( 370, 265, 90, 30 );
pauseButton->setGeometry( 370, 310, 90, 30 );
board->revealNextPiece(TRUE);
@ -170,7 +170,7 @@ void TQTetrix::gameOver()
}
void TQTetrix::tquit()
void TQTetrix::quit()
{
qApp->tquit();
qApp->quit();
}

@ -46,7 +46,7 @@ public:
public slots:
void gameOver();
void tquit();
void quit();
private:
void keyPressEvent( TQKeyEvent *e ) { board->keyPressEvent(e); }
@ -61,7 +61,7 @@ private:
TQLabel *showLevel;
TQLabel *showLines;
#endif
TQPushButton *tquitButton;
TQPushButton *quitButton;
TQPushButton *startButton;
TQPushButton *pauseButton;
};

@ -17,6 +17,6 @@ int main( int argc, char ** argv )
mw->setCaption( "Richtext Editor" );
mw->resize( 640, 800 );
mw->show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( tquit() ) );
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}

@ -315,7 +315,7 @@ void TextEdit::fileClose()
void TextEdit::fileExit()
{
qApp->tquit();
qApp->quit();
}
void TextEdit::editUndo()

@ -86,7 +86,7 @@ Themes::Themes( TQWidget *parent, const char *name, WFlags f )
}
ag->addTo(style);
style->insertSeparator();
style->insertItem("&Quit", qApp, SLOT( tquit() ), CTRL | Key_Q );
style->insertItem("&Quit", qApp, SLOT( quit() ), CTRL | Key_Q );
TQPopupMenu * help = new TQPopupMenu( this );
menuBar()->insertSeparator();

@ -323,12 +323,12 @@ TicTacToe::TicTacToe( int boardSize, TQWidget *parent, const char *name )
newGame = new TQPushButton( "Play!", this );
connect( newGame, SIGNAL(clicked()), SLOT(newGameClicked()) );
tquit = new TQPushButton( "Quit", this );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
quit = new TQPushButton( "Quit", this );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
TQHBoxLayout * b = new TQHBoxLayout;
l->addLayout( b );
b->addWidget( newGame );
b->addWidget( tquit );
b->addWidget( quit );
newState();
}

@ -83,7 +83,7 @@ private:
// --------------------------------------------------------------------------
// TicTacToe implements the complete game.
// TicTacToe is a composite widget that contains a TicTacGameBoard and
// two push buttons for starting the game and tquitting.
// two push buttons for starting the game and quitting.
//
class TicTacToe : public TQWidget
@ -98,7 +98,7 @@ private:
void newState();
TQComboBox *whoStarts;
TQPushButton *newGame;
TQPushButton *tquit;
TQPushButton *quit;
TQLabel *message;
TicTacGameBoard *board;
};

@ -181,7 +181,7 @@ WidgetView::WidgetView( TQWidget *parent, const char *name )
id = popup->insertItem( openIcon, "&Open...", this, SLOT( open() ) );
popup->insertSeparator();
popup->insertItem( "Quit", qApp, SLOT(tquit()), CTRL+Key_Q );
popup->insertItem( "Quit", qApp, SLOT(quit()), CTRL+Key_Q );
textStylePopup = popup = new TQPopupMenu( this );
menuBar()->insertItem( "&Edit", popup );

@ -1954,7 +1954,7 @@ Note: the QMAKESPEC path will automatically be added to the
It is common on UNIX to be able to install from the same utility as
you build with (e.g make install). For this \e qmake has introduce the
concept of an install set. The notation for this is tquite simple,
concept of an install set. The notation for this is quite simple,
first you fill in an "object" in qmake for example:
\code
@ -2104,7 +2104,7 @@ qmake backends (currently this is only supported by the UNIX \link
#MAKEFILE_GENERATOR generator \endlink).
The interfaces to customizing the Makefile are done through "objects" as in
other places in qmake. The notation for this is tquite simple, first you
other places in qmake. The notation for this is quite simple, first you
fill in an "object" in qmake for example:
\code

@ -11,7 +11,7 @@ also contains additional features to support Qt development.
\e qmake generates a makefile based on the information in a project
file. Project files are created by the developer. Project files are
usually simple, but can be tquite sophisticated if retquired.
usually simple, but can be quite sophisticated if retquired.
\e qmake can also generate projects for Microsoft Visual studio
without having to change the project file.

@ -67,7 +67,7 @@ typedef FAST_FLOAT FLOAT_MULT_TYPE; /* preferred floating type */
/*
* Each IDCT routine is responsible for range-limiting its results and
* converting them to unsigned form (0..MAXJSAMPLE). The raw outputs could
* be tquite far out of range if the input data is corrupt, so a bulletproof
* be quite far out of range if the input data is corrupt, so a bulletproof
* range-limiting step is retquired. We use a mask-and-table-lookup method
* to do the combined operations tquickly. See the comments with
* prepare_range_limit_table (in jdmaster.c) for more info.

@ -275,7 +275,7 @@ jpeg_make_d_derived_tbl (j_decompress_ptr cinfo, boolean isDC, int tblno,
* On most machines MIN_GET_BITS should be 25 to allow the full 32-bit width
* of get_buffer to be used. (On machines with wider words, an even larger
* buffer could be used.) However, on some machines 32-bit shifts are
* tquite slow and take time proportional to the number of places shifted.
* quite slow and take time proportional to the number of places shifted.
* (This is true with most PC compilers, for instance.) In this case it may
* be a win to set MIN_GET_BITS to the minimum value of 15. This reduces the
* average shift distance at the cost of more calls to jpeg_fill_bit_buffer.

@ -329,7 +329,7 @@ alloc_small (j_common_ptr cinfo, int pool_id, size_t sizeofobject)
*
* The external semantics of these are the same as "small" objects,
* except that FAR pointers are used on 80x86. However the pool
* management heuristics are tquite different. We assume that each
* management heuristics are quite different. We assume that each
* request is large enough that it may as well be passed directly to
* jpeg_get_large; the pool management just links everything together
* so that we can free it all on demand.

@ -573,7 +573,7 @@ select_colors (j_decompress_ptr cinfo, int desired_colors)
* We re-use the histogram space as an "inverse color map", essentially a
* cache for the results of nearest-color searches. All colors within a
* histogram cell will be mapped to the same colormap entry, namely the one
* closest to the cell's center. This may not be tquite the closest entry to
* closest to the cell's center. This may not be quite the closest entry to
* the actual input color, but it's almost as good. A zero in the cache
* indicates we haven't found the nearest color for that cell yet; the array
* is cleared to zeroes before starting the mapping pass. When we find the

@ -443,7 +443,7 @@ stdio stream (if necessary) afterwards.
If you have requested a multi-pass operating mode, such as Huffman code
optimization, jpeg_finish_compress() will perform the additional passes using
data buffered by the first pass. In this case jpeg_finish_compress() may take
tquite a while to complete. With the default compression parameters, this will
quite a while to complete. With the default compression parameters, this will
not happen.
It is an error to call jpeg_finish_compress() before writing the necessary
@ -620,7 +620,7 @@ Typical code is just
If you have requested a multi-pass operating mode, such as 2-pass color
quantization, jpeg_start_decompress() will do everything needed before data
output can begin. In this case jpeg_start_decompress() may take tquite a while
output can begin. In this case jpeg_start_decompress() may take quite a while
to complete. With a single-scan (non progressive) JPEG file and default
decompression parameters, this will not happen; jpeg_start_decompress() will
return tquickly.
@ -1003,7 +1003,7 @@ int v_samp_factor
Horizontal and vertical sampling factors for the component; must
be 1..4 according to the JPEG standard. Note that larger sampling
factors indicate a higher-resolution component; many people find
this behavior tquite unintuitive. The default values are 2,2 for
this behavior quite unintuitive. The default values are 2,2 for
luminance components and 1,1 for chrominance components, except
for grayscale where 1,1 is used.
@ -1931,7 +1931,7 @@ something like this:
...
jpeg_finish_output()
} while (! final_pass);
rather than tquitting as soon as jpeg_input_complete() returns TRUE. This
rather than quitting as soon as jpeg_input_complete() returns TRUE. This
arrangement makes it simple to use higher-quality decoding parameters
for the final pass. But if you don't want to use special parameters for
the final pass, the right loop logic is like this:
@ -2108,7 +2108,7 @@ result at any time after jpeg_read_header() completes.
It is also worth noting that when you use jpeg_consume_input() to let input
processing get ahead of output processing, the resulting pattern of access to
the coefficient buffer is tquite nonsequential. It's best to use the memory
the coefficient buffer is quite nonsequential. It's best to use the memory
manager jmemnobs.c if you can (ie, if you have enough real or virtual main
memory). If not, at least make sure that max_memory_to_use is set as high as
possible. If the JPEG memory manager has to use a temporary file, you will
@ -2890,7 +2890,7 @@ expect that few applications will need more than four or so.
On machines with unusual data type sizes, you may be able to improve
performance or reduce memory space by tweaking the various typedefs in
jmorecfg.h. In particular, on some RISC CPUs, access to arrays of "short"s
is tquite slow; consider trading memory for speed by making JCOEF, INT16, and
is quite slow; consider trading memory for speed by making JCOEF, INT16, and
UINT16 be "int" or "unsigned int". UINT8 is also a candidate to become int.
You probably don't want to make JSAMPLE be int unless you have lots of memory
to burn.

@ -489,7 +489,7 @@ shown are:
* Color reduction: this module handles color precision reduction, e.g.,
generating 15-bit color (5 bits/primary) from JPEG's 24-bit output.
Not tquite clear yet how this should be handled... should we merge it with
Not quite clear yet how this should be handled... should we merge it with
colorspace conversion???
Note that some high-speed operating modes might condense the entire
@ -722,7 +722,7 @@ decoding need not worry about this, since they will just store the same values
again if forced to repeat the MCU.
This approach would probably not work for an arithmetic codec, since its
modifiable state is tquite large and couldn't be copied cheaply. Instead it
modifiable state is quite large and couldn't be copied cheaply. Instead it
would have to suspend and resume exactly at the point of the buffer end.
The JPEG marker reader is designed to cope with suspension at an arbitrary

@ -644,7 +644,7 @@ You may optionally define:
mng_processsave, mng_processseek
Note that the mng_processheader() callback is optional but will
be tquite significant for proper operation!
be quite significant for proper operation!
Displaying an image will fail if you are creating a file or already
displaying one. Yes, you can't display it twice!
@ -979,7 +979,7 @@ by using the mng_getlasterror() function:
Please note that you must have a pretty good understanding of the chunk
specification. Unlike the read functions, there are virtually no checks,
so it is tquite possible to write completely wrong files.
so it is quite possible to write completely wrong files.
It is a good practice to read back your file into the library to verify
its integrity.

@ -662,7 +662,7 @@ You may optionally define:
mng_processsave, mng_processseek
Note that the mng_processheader() callback is optional but will
be tquite significant for proper operation!
be quite significant for proper operation!
Displaying an image will fail if you are creating a file or already
displaying one. Yes, you can't display it twice!
@ -999,7 +999,7 @@ by using the mng_getlasterror() function:
Please note that you must have a pretty good understanding of the chunk
specification. Unlike the read functions, there are virtually no checks,
so it is tquite possible to write completely wrong files.
so it is quite possible to write completely wrong files.
It is a good practice to read back your file into the library to verify
its integrity.

@ -552,7 +552,7 @@ mng_retcode mngjpeg_decompressdata (mng_datap pData,
MNG_ALLOC (pData, pData->pJPEGrow, pData->iJPEGrowlen)
pData->iJPEGrgbrow = 0; /* tquite empty up to now */
pData->iJPEGrgbrow = 0; /* quite empty up to now */
}
pData->pJPEGcurrent = (mng_uint8p)pData->pJPEGdinfo->src->next_input_byte;
@ -888,7 +888,7 @@ mng_retcode mngjpeg_decompressdata2 (mng_datap pData,
MNG_ALLOC (pData, pData->pJPEGrow2, pData->iJPEGrowlen2)
pData->iJPEGalpharow = 0; /* tquite empty up to now */
pData->iJPEGalpharow = 0; /* quite empty up to now */
}
pData->pJPEGcurrent2 = (mng_uint8p)pData->pJPEGdinfo2->src->next_input_byte;

@ -1609,14 +1609,14 @@ extern PNG_EXPORT(void,png_set_crc_action) PNGARG((png_structp png_ptr,
/* Values for png_set_crc_action() to say how to handle CRC errors in
* ancillary and critical chunks, and whether to use the data contained
* therein. Note that it is impossible to "discard" data in a critical
* chunk. For versions prior to 0.90, the action was always error/tquit,
* chunk. For versions prior to 0.90, the action was always error/quit,
* whereas in version 0.90 and later, the action for CRC errors in ancillary
* chunks is warn/discard. These values should NOT be changed.
*
* value action:critical action:ancillary
*/
#define PNG_CRC_DEFAULT 0 /* error/tquit warn/discard data */
#define PNG_CRC_ERROR_QUIT 1 /* error/tquit error/tquit */
#define PNG_CRC_DEFAULT 0 /* error/quit warn/discard data */
#define PNG_CRC_ERROR_QUIT 1 /* error/quit error/quit */
#define PNG_CRC_WARN_DISCARD 2 /* (INVALID) warn/discard data */
#define PNG_CRC_WARN_USE 3 /* warn/use data warn/use data */
#define PNG_CRC_QUIET_USE 4 /* tquiet/use data tquiet/use data */

@ -37,7 +37,7 @@ png_set_crc_action(png_structp png_ptr, int crit_action, int ancil_action)
break;
case PNG_CRC_WARN_DISCARD: /* not a valid action for critical data */
png_warning(png_ptr, "Can't discard critical data on CRC error.");
case PNG_CRC_ERROR_QUIT: /* error/tquit */
case PNG_CRC_ERROR_QUIT: /* error/quit */
case PNG_CRC_DEFAULT:
default:
png_ptr->flags &= ~PNG_FLAG_CRC_CRITICAL_MASK;
@ -57,7 +57,7 @@ png_set_crc_action(png_structp png_ptr, int crit_action, int ancil_action)
png_ptr->flags |= PNG_FLAG_CRC_ANCILLARY_USE |
PNG_FLAG_CRC_ANCILLARY_NOWARN;
break;
case PNG_CRC_ERROR_QUIT: /* error/tquit */
case PNG_CRC_ERROR_QUIT: /* error/quit */
png_ptr->flags &= ~PNG_FLAG_CRC_ANCILLARY_MASK;
png_ptr->flags |= PNG_FLAG_CRC_ANCILLARY_NOWARN;
break;

@ -200,14 +200,14 @@ const
// Values for png_set_crc_action() to say how to handle CRC errors in
// ancillary and critical chunks, and whether to use the data contained
// therein. Note that it is impossible to "discard" data in a critical
// chunk. For versions prior to 0.90, the action was always error/tquit,
// chunk. For versions prior to 0.90, the action was always error/quit,
// whereas in version 0.90 and later, the action for CRC errors in ancillary
// chunks is warn/discard. These values should NOT be changed.
// value action:critical action:ancillary
PNG_CRC_DEFAULT = 0; // error/tquit warn/discard data
PNG_CRC_ERROR_QUIT = 1; // error/tquit error/tquit
PNG_CRC_DEFAULT = 0; // error/quit warn/discard data
PNG_CRC_ERROR_QUIT = 1; // error/quit error/quit
PNG_CRC_WARN_DISCARD = 2; // (INVALID) warn/discard data
PNG_CRC_WARN_USE = 3; // warn/use data warn/use data
PNG_CRC_QUIET_USE = 4; // tquiet/use data tquiet/use data

@ -488,7 +488,7 @@ static char zHelp[] =
".output FILENAME Send output to FILENAME\n"
".output stdout Send output to the screen\n"
".prompt MAIN CONTINUE Replace the standard prompts\n"
".tquit Exit this program\n"
".quit Exit this program\n"
".read FILENAME Execute SQL in FILENAME\n"
#ifdef SQLITE_HAS_CODEC
".rekey OLD NEW NEW Change the encryption key\n"
@ -770,7 +770,7 @@ static int do_meta_command(char *zLine, struct callback_data *p){
}
}else
if( c=='q' && strncmp(azArg[0], "tquit", n)==0 ){
if( c=='q' && strncmp(azArg[0], "quit", n)==0 ){
rc = 1;
}else

@ -123,7 +123,7 @@ local void check_match OF((deflate_state *s, IPos start, IPos match,
typedef struct config_s {
ush good_length; /* reduce lazy search above this match length */
ush max_lazy; /* do not perform lazy search above this match length */
ush nice_length; /* tquit search above this match length */
ush nice_length; /* quit search above this match length */
ush max_chain;
compress_func func;
} config;

@ -110,7 +110,7 @@ typedef struct internal_state {
* bytes. With this organization, matches are limited to a distance of
* wSize-MAX_MATCH bytes, but this ensures that IO is always
* performed with a length multiple of the block size. Also, it limits
* the window size to 64K, which is tquite useful on MSDOS.
* the window size to 64K, which is quite useful on MSDOS.
* To do: use the user input buffer as sliding window.
*/

@ -333,7 +333,7 @@ local void check_header(s)
if ((flags & EXTRA_FIELD) != 0) { /* skip the extra field */
len = (uInt)get_byte(s);
len += ((uInt)get_byte(s))<<8;
/* len is garbage if EOF but the loop below will tquit anyway */
/* len is garbage if EOF but the loop below will quit anyway */
while (len-- != 0 && get_byte(s) != EOF) ;
}
if ((flags & ORIG_NAME) != 0) { /* skip the original file name */

@ -563,7 +563,7 @@ ZEXTERN int Q_ZEXPORT deflateCopy OF((z_streamp dest,
tried, for example when there are several ways of pre-processing the input
data with a filter. The streams that will be discarded should then be freed
by calling deflateEnd. Note that deflateCopy duplicates the internal
compression state which can be tquite large, so this strategy is slow and
compression state which can be quite large, so this strategy is slow and
can consume lots of memory.
deflateCopy returns Z_OK if success, Z_MEM_ERROR if there was not

@ -388,7 +388,7 @@ static TQChar::Direction findBasicDirection(TQString str)
reordering only takes place within one line of text, whereas
line breaks are determined in visual order.
Visually ordered Hebrew is still used tquite often in some places,
Visually ordered Hebrew is still used quite often in some places,
mainly in email communication (since most email programs still
don't understand logically ordered Hebrew) and on web pages. The
use on web pages is rapidly decreasing, due to the availability of

@ -456,7 +456,7 @@ int TQDialog::exec()
last window closed, the TQApplication::lastWindowClosed() signal is
emitted.
\sa accept(), reject(), TQApplication::mainWidget(), TQApplication::tquit()
\sa accept(), reject(), TQApplication::mainWidget(), TQApplication::quit()
*/
void TQDialog::done( int r )
@ -487,7 +487,7 @@ void TQDialog::done( int r )
emit qApp->lastWindowClosed();
}
if ( isMain )
qApp->tquit();
qApp->quit();
else if ( testWFlags(WDestructiveClose) ) {
clearWFlags(WDestructiveClose);
deleteLater();

@ -4063,7 +4063,7 @@ void TQFileDialog::listBoxSelectionChanged()
// click on the item. Perhaps at some point we should have a call to
// updateFileNameEdit(TQListViewItem) which also emits fileHighlighted() for
// ExistingFiles. For better or for worse, this clones the behaivor of the
// "Details" view tquite well.
// "Details" view quite well.
if ( mcitem->isSelected() && i != d->lastEFSelected ) {
TQUrl u( d->url, TQFileDialogPrivate::encodeFileName( ((TQFileDialogPrivate::File*)(mcitem)->i)->info.name()) );
d->lastEFSelected = i;

@ -166,7 +166,7 @@ TQWizard::TQWizard( TQWidget *parent, const char *name, bool modal,
: TQDialog( parent, name, modal, f )
{
d = new TQWizardPrivate();
d->current = 0; // not tquite true, but...
d->current = 0; // not quite true, but...
d->ws = new TQWidgetStack( this, "qt_widgetstack" );
d->pages.setAutoDelete( TRUE );
d->title = new TQLabel( this, "title label" );

@ -685,8 +685,8 @@ static int get_seq_id()
\code
TQAccel *a = new TQAccel( myWindow ); // create accels for myWindow
a->insertItem( CTRL + Key_P, 200 ); // Ctrl+P, e.g. to print document
a->insertItem( ALT + Key_X, 201 ); // Alt+X, e.g. to tquit
a->insertItem( UNICODE_ACCEL + 'q', 202 ); // Unicode 'q', e.g. to tquit
a->insertItem( ALT + Key_X, 201 ); // Alt+X, e.g. to quit
a->insertItem( UNICODE_ACCEL + 'q', 202 ); // Unicode 'q', e.g. to quit
a->insertItem( Key_D ); // gets a unique negative id < -1
a->insertItem( CTRL + SHIFT + Key_P ); // gets a unique negative id < -1
\endcode
@ -781,7 +781,7 @@ void TQAccel::setItemEnabled( int id, bool enable )
receiver.
\code
a->connectItem( 201, mainView, SLOT(tquit()) );
a->connectItem( 201, mainView, SLOT(quit()) );
\endcode
Of course, you can also send a signal as \a member.

@ -188,7 +188,7 @@
enter_loop(),
exit_loop(),
exit(),
tquit().
quit().
sendEvent(),
postEvent(),
sendPostedEvents(),
@ -952,8 +952,8 @@ void TQApplication::initialize( int argc, char **argv )
app_argc = argc;
app_argv = argv;
tquit_now = FALSE;
tquit_code = 0;
quit_now = FALSE;
quit_code = 0;
TQWidget::createMapper(); // create widget mapper
#ifndef QT_NO_PALETTE
(void) palette(); // trigger creation of application palette
@ -2130,20 +2130,20 @@ TQFontMetrics TQApplication::fontMetrics()
Tells the application to exit with return code 0 (success).
Equivalent to calling TQApplication::exit( 0 ).
It's common to connect the lastWindowClosed() signal to tquit(), and
It's common to connect the lastWindowClosed() signal to quit(), and
you also often connect e.g. TQButton::clicked() or signals in
TQAction, TQPopupMenu or TQMenuBar to it.
Example:
\code
TQPushButton *tquitButton = new TQPushButton( "Quit" );
connect( tquitButton, SIGNAL(clicked()), qApp, SLOT(tquit()) );
TQPushButton *quitButton = new TQPushButton( "Quit" );
connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
\endcode
\sa exit() aboutToQuit() lastWindowClosed() TQAction
*/
void TQApplication::tquit()
void TQApplication::quit()
{
TQApplication::exit( 0 );
}
@ -2161,15 +2161,15 @@ void TQApplication::tquit()
TQPopupMenu* file = new TQPopupMenu( this );
file->insertItem( "&Quit", qApp, SLOT(closeAllWindows()), CTRL+Key_Q );
// when the last window is closed, the application should tquit
connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( tquit() ) );
// when the last window is closed, the application should quit
connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( quit() ) );
\endcode
The windows are closed in random order, until one window does not
accept the close event.
\sa TQWidget::close(), TQWidget::closeEvent(), lastWindowClosed(),
tquit(), topLevelWidgets(), TQWidget::isTopLevel()
quit(), topLevelWidgets(), TQWidget::isTopLevel()
*/
void TQApplication::closeAllWindows()
@ -2219,7 +2219,7 @@ void TQApplication::aboutTQt()
top level window.
The signal is very useful when your application has many top level
widgets but no main widget. You can then connect it to the tquit()
widgets but no main widget. You can then connect it to the quit()
slot.
For convenience, this signal is \e not emitted for transient top level
@ -2231,16 +2231,16 @@ void TQApplication::aboutTQt()
/*!
\fn void TQApplication::aboutToQuit()
This signal is emitted when the application is about to tquit the
This signal is emitted when the application is about to quit the
main event loop, e.g. when the event loop level drops to zero.
This may happen either after a call to tquit() from inside the
This may happen either after a call to quit() from inside the
application or when the users shuts down the entire desktop session.
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.
\sa tquit()
\sa quit()
*/
@ -2551,7 +2551,7 @@ bool TQApplication::event( TQEvent *e )
if(ce->isAccepted())
return TRUE;
} else if (e->type() == TQEvent::Quit) {
tquit();
quit();
return TRUE;
}
return TQObject::event(e);
@ -2738,7 +2738,7 @@ TQEventLoop *TQApplication::eventLoop()
/*!
Enters the main event loop and waits until exit() is called or the
main widget is destroyed, and returns the value that was set to
exit() (which is 0 if exit() is called via tquit()).
exit() (which is 0 if exit() is called via quit()).
It is necessary to call this function to start event handling. The
main event loop receives events from the window system and
@ -2754,7 +2754,7 @@ TQEventLoop *TQApplication::eventLoop()
TQTimer with 0 timeout. More advanced idle processing schemes can
be achieved using processEvents().
\sa tquit(), exit(), processEvents(), setMainWidget()
\sa quit(), exit(), processEvents(), setMainWidget()
*/
int TQApplication::exec()
{
@ -2775,7 +2775,7 @@ int TQApplication::exec()
function \e does return to the caller -- it is event processing that
stops.
\sa tquit(), exec()
\sa quit(), exec()
*/
void TQApplication::exit( int retcode )
{
@ -4176,7 +4176,7 @@ bool TQApplication::reverseLayout()
\value RestartAnyway the application wants to be started at the
start of the next session, no matter what. (This is useful for
utilities that run just after startup and then tquit.)
utilities that run just after startup and then quit.)
\value RestartImmediately the application wants to be started
immediately whenever it is not running.

@ -307,7 +307,7 @@ signals:
void guiThreadAwake();
public slots:
void tquit();
void quit();
void closeAllWindows();
void aboutTQt();
@ -357,8 +357,8 @@ private:
int app_argc;
char **app_argv;
bool tquit_now;
int tquit_code;
bool quit_now;
int quit_code;
static TQStyle *app_style;
static int app_cspec;
#ifndef QT_NO_PALETTE

@ -2726,14 +2726,14 @@ GC qt_xget_temp_gc( int scrn, bool monochrome ) // get temporary GC
yourself.
You need not have a main widget; connecting lastWindowClosed() to
tquit() is an alternative.
quit() is an alternative.
For X11, this function also resizes and moves the main widget
according to the \e -geometry command-line option, so you should
set the default geometry (using \l TQWidget::setGeometry()) before
calling setMainWidget().
\sa mainWidget(), exec(), tquit()
\sa mainWidget(), exec(), quit()
*/
void TQApplication::setMainWidget( TQWidget *mainWidget )
@ -3334,7 +3334,7 @@ int TQApplication::x11ProcessEvent( XEvent* event )
#ifndef QT_NO_IM
// Filtering input events by the input context. It has to be taken
// place before any other key event consumers such as eventfilters
// and accelerators because some input methods retquire tquite
// and accelerators because some input methods retquire quite
// various key combination and sequences. It often conflicts with
// accelerators and so on, so we must give the input context the
// filtering opportunity first to ensure all input methods work
@ -4393,7 +4393,7 @@ bool TQETWidget::translateWheelEvent( int global_x, int global_y, int delta, int
bool TQETWidget::translateXinputEvent( const XEvent *ev )
{
#if defined (Q_OS_IRIX)
// Wacom has put defines in their wacom.h file so it would be tquite wise
// Wacom has put defines in their wacom.h file so it would be quite wise
// to use them, need to think of a decent way of not using
// it when it doesn't exist...
XDeviceState *s;
@ -6405,8 +6405,8 @@ static void sm_dieCallback( SmcConn smcConn, SmPointer /* clientData */)
if (smcConn != smcConnection )
return;
resetSmState();
TQEvent tquitEvent(TQEvent::Quit);
TQApplication::sendEvent(qApp, &tquitEvent);
TQEvent quitEvent(TQEvent::Quit);
TQApplication::sendEvent(qApp, &quitEvent);
}
static void sm_shutdownCancelledCallback( SmcConn smcConn, SmPointer /* clientData */)

@ -309,7 +309,7 @@ void TQIODeviceSource::rewind()
and a sink, and data will be moved during subsequent event processing.
Note that each source can only provide data to one sink and each sink
can only receive data from one source (although it is tquite possible
can only receive data from one source (although it is quite possible
to write a multiplexing sink that is multiple sources).
*/

@ -1447,7 +1447,7 @@ void TQFocusEvent::resetReason()
\sa TQWidget::close(), TQWidget::hide(), TQObject::destroyed(),
TQApplication::setMainWidget(), TQApplication::lastWindowClosed(),
TQApplication::exec(), TQApplication::tquit()
TQApplication::exec(), TQApplication::quit()
*/
/*!

@ -83,7 +83,7 @@ public:
Show = 17, // widget is shown
Hide = 18, // widget is hidden
Close = 19, // request to close widget
Quit = 20, // request to tquit application
Quit = 20, // request to quit application
Reparent = 21, // widget has been reparented
ShowMinimized = 22, // widget is shown minimized
ShowNormal = 23, // widget is shown normal

@ -139,7 +139,7 @@ TQEventLoop::~TQEventLoop()
TQTimer with 0 timeout. More advanced idle processing schemes can
be achieved using processEvents().
\sa TQApplication::tquit(), exit(), processEvents()
\sa TQApplication::quit(), exit(), processEvents()
*/
int TQEventLoop::exec()
{
@ -149,12 +149,12 @@ int TQEventLoop::exec()
// cleanup
d->looplevel = 0;
d->tquitnow = FALSE;
d->quitnow = FALSE;
d->exitloop = FALSE;
d->shortcut = FALSE;
// don't reset tquitcode!
// don't reset quitcode!
return d->tquitcode;
return d->quitcode;
}
/*! \fn void TQEventLoop::exit( int retcode = 0 )
@ -171,14 +171,14 @@ int TQEventLoop::exec()
function \e does return to the caller -- it is event processing that
stops.
\sa TQApplication::tquit(), exec()
\sa TQApplication::quit(), exec()
*/
void TQEventLoop::exit( int retcode )
{
if ( d->tquitnow ) // preserve existing tquitcode
if ( d->quitnow ) // preserve existing quitcode
return;
d->tquitcode = retcode;
d->tquitnow = TRUE;
d->quitcode = retcode;
d->quitnow = TRUE;
d->exitloop = TRUE;
d->shortcut = TRUE;
}
@ -201,13 +201,13 @@ int TQEventLoop::enterLoop()
processEvents( AllEvents | WaitForMore );
d->looplevel--;
// restore the exitloop state, but if tquitnow is TRUE, we need to keep
// restore the exitloop state, but if quitnow is TRUE, we need to keep
// exitloop set so that all other event loops drop out.
d->exitloop = old_exitloop || d->tquitnow;
d->shortcut = d->tquitnow;
d->exitloop = old_exitloop || d->quitnow;
d->shortcut = d->quitnow;
if ( d->looplevel < 1 ) {
d->tquitnow = FALSE;
d->quitnow = FALSE;
d->exitloop = FALSE;
d->shortcut = FALSE;
emit qApp->aboutToQuit();
@ -258,7 +258,7 @@ void TQEventLoop::processEvents( ProcessEventsFlags flags, int maxTime )
{
TQTime start = TQTime::currentTime();
TQTime now;
while ( ! d->tquitnow && processEvents( flags & ~WaitForMore ) ) {
while ( ! d->quitnow && processEvents( flags & ~WaitForMore ) ) {
now = TQTime::currentTime();
if ( start.msecsTo( now ) > maxTime )
break;

@ -108,15 +108,15 @@ public:
void reset() {
looplevel = 0;
tquitcode = 0;
tquitnow = FALSE;
quitcode = 0;
quitnow = FALSE;
exitloop = FALSE;
shortcut = FALSE;
}
int looplevel;
int tquitcode;
unsigned int tquitnow : 1;
int quitcode;
unsigned int quitnow : 1;
unsigned int exitloop : 1;
unsigned int shortcut : 1;

@ -211,8 +211,8 @@ bool TQEventLoop::processEvents( ProcessEventsFlags flags )
return TRUE;
}
// don't block if exitLoop() or exit()/tquit() has been called.
bool canWait = d->exitloop || d->tquitnow ? FALSE : (flags & WaitForMore);
// don't block if exitLoop() or exit()/quit() has been called.
bool canWait = d->exitloop || d->quitnow ? FALSE : (flags & WaitForMore);
// Process timers and socket notifiers - the common UNIX stuff

@ -458,7 +458,7 @@ TQFontEngineData::~TQFontEngineData()
\value Sinhala is used for Sri Lanka's majority language Sinhala
and is also employed to write Pali, Sanskrit, and Tamil.
\value Thai is used to write Thai and other Southeast Asian languages.
\value Lao is a language and script tquite similar to Thai.
\value Lao is a language and script quite similar to Thai.
\value Tibetan is the script used to write Tibetan in several
countries like Tibet, the bordering Indian regions and
Nepal. It is also used in the Buddist philosophy and

@ -2949,7 +2949,7 @@ TQImage TQImage::scaleHeight( int h ) const
#ifndef QT_NO_IMAGE_TRANSFORMATION
TQImage TQImage::xForm( const TQWMatrix &matrix ) const
{
// This function uses the same algorithm as (and steals tquite some
// This function uses the same algorithm as (and steals quite some
// code from) TQPixmap::xForm().
if ( isNull() )

@ -153,7 +153,7 @@ public:
reduce resource consumption. In ideal case, each text widgets
should be allocated dedicated input context. But some complex
input contexts retquire slightly heavy resource such as 100
kilobytes of memory. It prevents tquite many text widgets from
kilobytes of memory. It prevents quite many text widgets from
being used concurrently.
To resolve such problem, we can share an input context. There is
@ -463,7 +463,7 @@ bool TQInputContext::isComposing() const
The filtering opportunity is always given to the input context as
soon as possible. It has to be taken place before any other key
event consumers such as eventfilters and accelerators because some
input methods retquire tquite various key combination and
input methods retquire quite various key combination and
sequences. It often conflicts with accelerators and so on, so we
must give the input context the filtering opportunity first to
ensure all input methods work properly regardless of application

@ -503,7 +503,7 @@ void TQNetworkProtocol::setUrl( TQUrlOperator *u )
/*!
For processing operations the network protocol base class calls
this method tquite often. This should be reimplemented by new
this method quite often. This should be reimplemented by new
network protocols. It should return TRUE if the connection is OK
(open); otherwise it should return FALSE. If the connection is not
open the protocol should open it.

@ -1156,7 +1156,7 @@ const TQObjectList *TQObject::objectTrees()
Note that \a inheritsClass uses single inheritance from TQObject,
the way inherits() does. According to inherits(), TQMenuBar
inherits TQWidget but not TQMenuData. This does not tquite match
inherits TQWidget but not TQMenuData. This does not quite match
reality, but is the best that can be done on the wide variety of
compilers TQt supports.

@ -163,7 +163,7 @@
\value NColorRoles Internal.
Note that text colors can be used for things other than just
words; text colors are \e usually used for text, but it's tquite
words; text colors are \e usually used for text, but it's quite
common to use the text color roles for lines, icons, etc.
This image shows most of the color roles in use:

@ -1133,7 +1133,7 @@ static TQPixmap grabChildWidgets( TQWidget * w )
!((TQWidget *)child)->isHidden() &&
!((TQWidget *)child)->isTopLevel() &&
((TQWidget *)child)->geometry().intersects( w->rect() ) ) {
// those conditions aren't tquite right, it's possible
// those conditions aren't quite right, it's possible
// to have a grandchild completely outside its
// grandparent, but partially inside its parent. no
// point in optimizing for that.

@ -2627,7 +2627,7 @@ void TQPSPrinterFontTTF::download(TQTextStream& s,bool global)
s << Trademark;
s << ") def\n";
/* This information is not tquite correct. */
/* This information is not quite correct. */
s << "/Weight (";
s << Style;
s << ") def\n";

@ -638,7 +638,7 @@
% if encoding is false the default one will be used.
/MF { % newname encoding fontlist
% this function tries to find a suitable postscript font.
% We try tquite hard not to get courier for a
% We try quite hard not to get courier for a
% proportional font. The following takes an array of fonts.
% The algorithm will take the first font that
% gives a match (defined as not resulting in a courier font).

@ -2402,7 +2402,7 @@ static inline KhmerCharClass getKhmerCharClass(const TQChar &uc)
// eliminating it would very much complicate the table, and it does not create typing
// problems, as the case above.
//
// The table is tquite complex, in order to limit the number of coeng consonants
// The table is quite complex, in order to limit the number of coeng consonants
// to 2 (by means of the table).
//
// There a peculiarity, as far as Unicode is concerned:

@ -89,7 +89,7 @@
#if defined (QT_TABLET_SUPPORT)
# include <X11/extensions/XInput.h>
#if defined (Q_OS_IRIX)
# include <wacom.h> // wacom driver defines for IRIX (tquite handy)
# include <wacom.h> // wacom driver defines for IRIX (quite handy)
#endif
#endif // QT_TABLET_SUPPORT

@ -308,7 +308,7 @@ bool TQSingleShotTimer::event( TQEvent * )
int main( int argc, char **argv )
{
TQApplication a( argc, argv );
TQTimer::singleShot( 10*60*1000, &a, SLOT(tquit()) );
TQTimer::singleShot( 10*60*1000, &a, SLOT(quit()) );
... // create and show your widgets
return a.exec();
}

@ -288,7 +288,7 @@
widget flag).
\i \c{const char *name = 0} is the widget name of the new
widget. You can access it using name(). The widget name is little
used by programmers but is tquite useful with GUI builders such as
used by programmers but is quite useful with GUI builders such as
\e{TQt Designer} (you can name a widget in \e{TQt Designer}, and
connect() to it using the name in your code). The dumpObjectTree()
debugging function also uses it.
@ -333,10 +333,10 @@
mouse button is held down, this popup immediately steals the mouse
events.
\i mouseDoubleClickEvent() - not tquite as obvious as it might seem.
\i mouseDoubleClickEvent() - not quite as obvious as it might seem.
If the user double-clicks, the widget receives a mouse press event
(perhaps a mouse move event or two if they don't hold the mouse
tquite steady), a mouse release event and finally this event. It is
quite steady), a mouse release event and finally this event. It is
\e{not possible} to distinguish a click from a double click until you've
seen whether the second click arrives. (This is one reason why most GUI
books recommend that double clicks be an extension of single clicks,
@ -956,7 +956,7 @@ TQWidget::~TQWidget()
if ( TQApplication::main_widget == this ) { // reset main widget
TQApplication::main_widget = 0;
if (qApp)
qApp->tquit();
qApp->quit();
}
if ( hasFocus() )
@ -4274,7 +4274,7 @@ void TQWidget::polish()
Note that closing the \l TQApplication::mainWidget() terminates the
application.
\sa closeEvent(), TQCloseEvent, hide(), TQApplication::tquit(),
\sa closeEvent(), TQCloseEvent, hide(), TQApplication::quit(),
TQApplication::setMainWidget(), TQApplication::lastWindowClosed()
*/
@ -4316,7 +4316,7 @@ bool TQWidget::close( bool alsoDelete )
emit qApp->lastWindowClosed();
}
if ( isMain )
qApp->tquit();
qApp->quit();
if ( deleted )
return TRUE;
is_closing = 0;

@ -274,7 +274,7 @@ void TQSocketPrivate::setSocketDevice( TQSocket *q, TQSocketDevice *device )
also for reading. The match isn't perfect, since the TQIODevice
API is designed for devices that are controlled by the same
machine, and an asynchronous peer-to-peer network connection isn't
tquite like that. For example, there is nothing that matches
quite like that. For example, there is nothing that matches
TQIODevice::size() exactly. The documentation for open(), close(),
flush(), size(), at(), atEnd(), readBlock(), writeBlock(),
getch(), putch(), ungetch() and readLine() describes the

@ -561,7 +561,7 @@ bool TQSocketDevice::bind( const TQHostAddress &address, Q_UINT16 port )
/*!
Specifies how many pending connections a server socket can have.
Returns TRUE if the operation was successful; otherwise returns
FALSE. A \a backlog value of 50 is tquite common.
FALSE. A \a backlog value of 50 is quite common.
The listen() call only applies to sockets where type() is \c
Stream, i.e. not to \c Datagram sockets. listen() must not be

@ -512,7 +512,7 @@ bool TQGLContext::chooseContext( const TQGLContext* shareContext )
visual that matches the format, reducing the demands if the original
request cannot be met.
The algorithm for reducing the demands of the format is tquite
The algorithm for reducing the demands of the format is quite
simple-minded, so override this method in your subclass if your
application has spcific retquirements on visual selection.

@ -57,7 +57,7 @@
versions of the Common Desktop Environment (CDE). The main
differences are thinner frames and more modern radio buttons and
checkboxes. Together with a dark background and a bright
text/foreground color, the style looks tquite attractive (at least
text/foreground color, the style looks quite attractive (at least
for Motif fans).
Note that the functions provided by TQCDEStyle are

@ -226,7 +226,7 @@ void TQMotifStyle::drawPrimitive( PrimitiveElement pe,
int cx = r.width()/2 - 1;
int cy = r.height()/2;
int e = r.width()/2 - 1;
for ( int i = 0; i < 3; i++ ) { //penWidth 2 doesn't tquite work
for ( int i = 0; i < 3; i++ ) { //penWidth 2 doesn't quite work
a.setPoints( 4, cx-e, cy, cx, cy-e, cx+e, cy, cx, cy+e );
p->drawPolygon( a );
e--;

@ -892,7 +892,7 @@ int TQListBoxPixmap::rtti() const
New items can be inserted using insertItem(), insertStrList() or
insertStringList(). inSort() is obsolete because this method is
tquite inefficient. It's preferable to insert the items normally
quite inefficient. It's preferable to insert the items normally
and call sort() afterwards, or to insert a sorted TQStringList().
By default, vertical and horizontal scroll bars are added and
@ -3963,7 +3963,7 @@ TQRect TQListBox::itemRect( TQListBoxItem *item ) const
/*!
\obsolete
Using this method is tquite inefficient. We suggest to use insertItem()
Using this method is quite inefficient. We suggest to use insertItem()
for inserting and sort() afterwards.
Inserts \a lbi at its sorted position in the list box and returns the
@ -3995,7 +3995,7 @@ int TQListBox::inSort( const TQListBoxItem * lbi )
/*!
\obsolete
\overload
Using this method is tquite inefficient. We suggest to use insertItem()
Using this method is quite inefficient. We suggest to use insertItem()
for inserting and sort() afterwards.
Inserts a new item of \a text at its sorted position in the list box and

@ -168,10 +168,10 @@ extern int qt_xfocusout_grab_counter; // defined in qapplication_x11.cpp
\row \i config, options, setup, settings or preferences
\i Application Menu | Preferences
\i If this entry is not found the Settings item will be disabled
\row \i tquit or exit
\row \i quit or exit
\i Application Menu | Quit <application name>
\i If this entry is not found a default Quit item will be
created to call TQApplication::tquit()
created to call TQApplication::quit()
\endtable
\link menu-example.html menu/menu.cpp\endlink is an example of

@ -351,7 +351,7 @@ void TQMenuData::removePopup( TQPopupMenu *popup )
pulldown menus into a menu bar.
The number of insert functions may look confusing, but they are
actually tquite simple to use.
actually quite simple to use.
This default version inserts a menu item with the text \a text,
the accelerator key \a accel, an id and an optional index and
@ -905,7 +905,7 @@ TQKeySequence TQMenuData::accel( int id ) const
fileMenu->insertItem( "Open Document", 67 ); // add "Open" item
fileMenu->setAccel( CTRL + Key_O, 67 ); // Ctrl+O to open
fileMenu->insertItem( "Quit", 69 ); // add "Quit" item
fileMenu->setAccel( CTRL + ALT + Key_Delete, 69 ); // add Alt+Del to tquit
fileMenu->setAccel( CTRL + ALT + Key_Delete, 69 ); // add Alt+Del to quit
mainMenu->insertItem( "File", fileMenu ); // add the file menu
\endcode

@ -356,7 +356,7 @@ void TQScrollViewData::viewportResized( int w, int h )
The TQScrollView is a large canvas - potentially larger than the
coordinate system normally supported by the underlying window
system. This is important because it is tquite easy to go beyond
system. This is important because it is quite easy to go beyond
these limitations (e.g. many web pages are more than 32000 pixels
high). Additionally, the TQScrollView can have TQWidgets positioned
on it that scroll around with the drawn content. These sub-widgets
@ -2610,7 +2610,7 @@ void TQScrollView::enableClipper(bool y)
or a scrolling background if \a y is FALSE. By default, the
background is scrolling.
Be aware that this mode is tquite slow, as a full repaint of the
Be aware that this mode is quite slow, as a full repaint of the
visible area has to be triggered on every contents move.
\sa hasStaticBackground()

@ -686,15 +686,15 @@ void TQTipManager::setWakeUpDelay ( int i )
TQToolTip::add() with the widget and tip as arguments:
\code
TQToolTip::add( tquitButton, "Leave the application" );
TQToolTip::add( quitButton, "Leave the application" );
\endcode
This is the simplest and most common use of TQToolTip. The tip
will be deleted automatically when \e tquitButton is deleted, but
will be deleted automatically when \e quitButton is deleted, but
you can remove it yourself, too:
\code
TQToolTip::remove( tquitButton );
TQToolTip::remove( quitButton );
\endcode
You can also display another text (typically in a \link TQStatusBar
@ -703,7 +703,7 @@ void TQTipManager::setWakeUpDelay ( int i )
connected to the appropriate status bar:
\code
TQToolTip::add( tquitButton, "Leave the application", grp,
TQToolTip::add( quitButton, "Leave the application", grp,
"Leave the application, prompting to save if necessary" );
TQToolTip::add( closeButton, "Close this window", grp,
"Close this window, prompting to save if necessary" );

@ -1027,7 +1027,7 @@ void TQWorkspace::showEvent( TQShowEvent *e )
TQWidget *w = new TQWidget(NULL, "TQDoesNotExist",
WType_Dialog | WStyle_Customize | WStyle_NoBorder);
// if(qApp->mainWidget() == o)
// TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(tquit()));
// TQObject::connect(qApp, SIGNAL(lastWindowClosed()), qApp, SLOT(quit()));
TQDesktopWidget *dw = TQApplication::desktop();
w->setGeometry(dw->availableGeometry(dw->screenNumber(o)));
o->reparent(w, TQPoint(0, 0), TRUE);

@ -2969,7 +2969,7 @@ bool TQXmlSimpleReader::parse( const TQXmlInputSource *input, bool incremental )
If the input source returns an empty string for the function
TQXmlInputSource::data(), then this means that the end of the XML
file has been reached; this is tquite important, especially if you
file has been reached; this is quite important, especially if you
want to use the reader to parse more than one XML file.
The case of the end of the XML file being reached without having

@ -292,7 +292,7 @@ void HelpDialog::timerEvent(TQTimerEvent *e)
help->setWindowOpacity((opacity-=4)/255.0);
if (opacity<=0)
#endif
qApp->tquit();
qApp->quit();
}

@ -332,7 +332,7 @@ int main( int argc, char ** argv )
else if ( file.isEmpty() )
mw->showLinks( links );
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( tquit() ) );
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
int appExec = a.exec();
delete (MainWindow*)mw;

@ -102,7 +102,7 @@ void ConfigToolboxDialog::addTool()
listViewCommon->ensureItemVisible( i );
} else if ( !addKids ) {
// Children processing not set, so set it
// Also find the item were we shall tquit
// Also find the item were we shall quit
// processing children...if any such item
addKids = TRUE;
nextSibling = (*it)->nextSibling();

@ -153,7 +153,7 @@ int ListViewDnd::buildFlatList( ListViewItemList & list )
list.append( *it );
} else if ( !addKids ) {
// Children processing not set, so set it
// Also find the item were we shall tquit
// Also find the item were we shall quit
// processing children...if any such item
addKids = TRUE;
nextSibling = (*it)->nextSibling();

@ -6,6 +6,6 @@ int main( int argc, char ** argv )
TQApplication a( argc, argv );
AddressBook *w = new AddressBook;
w->show();
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( tquit() ) );
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}

@ -7,6 +7,6 @@ int main( int argc, char ** argv )
ConversionForm *w = new ConversionForm;
w->show();
a.setMainWidget( w );
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( tquit() ) );
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
}

@ -277,7 +277,7 @@
</spacer>
<widget class="TQPushButton">
<property name="name">
<cstring>tquitButton</cstring>
<cstring>quitButton</cstring>
</property>
<property name="text">
<string>&amp;Quit</string>
@ -295,7 +295,7 @@
<slot>clear()</slot>
</connection>
<connection>
<sender>tquitButton</sender>
<sender>quitButton</sender>
<signal>clicked()</signal>
<receiver>ConversionForm</receiver>
<slot>close()</slot>
@ -350,7 +350,7 @@
<tabstop>decimalsSpinBox</tabstop>
<tabstop>clearButton</tabstop>
<tabstop>calculateButton</tabstop>
<tabstop>tquitButton</tabstop>
<tabstop>quitButton</tabstop>
</tabstops>
<includes>
<include location="local" impldecl="in implementation">metric.ui.h</include>

@ -101,7 +101,7 @@
</spacer>
<widget class="TQPushButton" row="7" column="1">
<property name="name">
<cstring>tquitPushButton</cstring>
<cstring>quitPushButton</cstring>
</property>
<property name="text">
<string>&amp;Quit</string>
@ -163,7 +163,7 @@
</widget>
<connections>
<connection language="C++">
<sender>tquitPushButton</sender>
<sender>quitPushButton</sender>
<signal>clicked()</signal>
<receiver>MulticlipForm</receiver>
<slot>accept()</slot>
@ -201,6 +201,6 @@
<tabstop>addPushButton</tabstop>
<tabstop>copyPushButton</tabstop>
<tabstop>deletePushButton</tabstop>
<tabstop>tquitPushButton</tabstop>
<tabstop>quitPushButton</tabstop>
</tabstops>
</UI>

@ -27,7 +27,7 @@
</property>
<widget class="TQPushButton" row="0" column="1">
<property name="name">
<cstring>tquitPushButton</cstring>
<cstring>quitPushButton</cstring>
</property>
<property name="text">
<string>&amp;Quit</string>
@ -67,7 +67,7 @@
<slot>creditDialog()</slot>
</connection>
<connection>
<sender>tquitPushButton</sender>
<sender>quitPushButton</sender>
<signal>clicked()</signal>
<receiver>MainForm</receiver>
<slot>accept()</slot>

@ -32,7 +32,7 @@
</property>
<widget class="TQPushButton" row="0" column="1">
<property name="name">
<cstring>tquitPushButton</cstring>
<cstring>quitPushButton</cstring>
</property>
<property name="text">
<string>&amp;Quit</string>
@ -72,7 +72,7 @@
<slot>creditDialog()</slot>
</connection>
<connection language="C++">
<sender>tquitPushButton</sender>
<sender>quitPushButton</sender>
<signal>clicked()</signal>
<receiver>MainForm</receiver>
<slot>accept()</slot>

@ -76,7 +76,7 @@ static TQString generateMainCppCode( const TQString &formname, const TQString &i
code += " TQApplication a( argc, argv );\n";
code += " " + formname + " w;\n";
code += " w.show();\n";
code += " a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( tquit() ) );\n";
code += " a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );\n";
code += " return a.exec();\n";
code += "}\n";
return code;

@ -447,7 +447,7 @@ static TQString accelerate( const TQString& gtkLabel )
{
TQString qtLabel = gtkLabel;
qtLabel.replace( '&', TQString("&&") );
// close but not tquite right
// close but not quite right
qtLabel.replace( TQChar('_'), TQChar('&') );
return qtLabel;
}

@ -45,6 +45,6 @@ int main( int argc, char ** argv )
if ( !w )
return 0;
w->show();
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(tquit()) );
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );
return a.exec();
}

@ -181,8 +181,8 @@ and
Ctrl key accelerators are also translatable:
\quotefile tt3/mainwindow.cpp
\skipto tquit()
\printline tquit()
\skipto quit()
\printline quit()
\printuntil Quit
It is strongly recommended that the two argument form of \c tr() is used
@ -649,8 +649,8 @@ once for the accelerator.
\index Ctrl Key
\index Alt Key
\skipto tquit()
\printline tquit()
\skipto quit()
\printline quit()
\printuntil Ctrl+Q
Note the use of \c tr() to support different keys in other languages.
@ -903,8 +903,8 @@ user-visible source texts that must be marked for translation.
We must translate the window's caption.
\skipto tquit
\printline tquit
\skipto quit
\printline quit
\printuntil Help
We also need to translate the menu items. Note that the two argument
@ -991,7 +991,7 @@ these are not correct for the second occurrence of each word, but they
provide a good starting point.
Change the second "Ativado" into "Ativadas" and the second
"Desativado" into "Desativadas", then save and tquit. Run \l lrelease
"Desativado" into "Desativadas", then save and quit. Run \l lrelease
to obtain an up-to-date binary \c tt3_pt.qm file, and run Troll Print
(or rather Troll Imprimir).
@ -1103,7 +1103,7 @@ Translate "\<b\>TROLL PRINT\</b\>" as "\<b\>TROLL IMPRIMIR\</b\>".
When you're translating "Two-sided", press the \e {Guess Again}
button to translate "Two-sided", but change the "2" into "Dois".
Save and tquit, then run \l lrelease. The Portuguese version
Save and quit, then run \l lrelease. The Portuguese version
should look like this:
\img tt3_11_pt.png

@ -43,7 +43,7 @@ previous translations. Each has a keyboard shortcut, e.g.
guess into the Translation area. (Mouse users can double click a
phrase or guess to move it into the Translation area.) At the end of
the session choose \Menu File|Save from the menu bar and then
\Menu File|Exit to tquit.
\Menu File|Exit to quit.
\section1 Qt Linguist's Main Window

@ -19,7 +19,7 @@ MainWindow::MainWindow( TQWidget *parent, const char *name )
setCentralWidget( ap );
TQPopupMenu *file = new TQPopupMenu( this );
file->insertItem( tr("E&xit"), qApp, SLOT(tquit()),
file->insertItem( tr("E&xit"), qApp, SLOT(quit()),
tr("Ctrl+Q", "Quit") );
menuBar()->insertItem( tr("&File"), file );
menuBar()->setSeparator( TQMenuBar::InWindowsStyle );

@ -22,7 +22,7 @@ MainWindow::MainWindow( TQWidget *parent, const char *name )
setCentralWidget( pp );
TQPopupMenu *file = new TQPopupMenu( this );
file->insertItem( tr("E&xit"), qApp, SLOT(tquit()),
file->insertItem( tr("E&xit"), qApp, SLOT(quit()),
tr("Ctrl+Q", "Quit") );
TQPopupMenu *help = new TQPopupMenu( this );
help->insertItem( tr("&About"), this, SLOT(about()), Key_F1 );

@ -306,7 +306,7 @@ Main::Main()
file->insertSeparator();
file->insertItem( "&Test all", this, SLOT(testAll()), CTRL+Key_T );
file->insertSeparator();
file->insertItem( "E&xit", qApp, SLOT(tquit()), CTRL+Key_Q );
file->insertItem( "E&xit", qApp, SLOT(quit()), CTRL+Key_Q );
menuBar()->insertItem( "&File",file );

@ -135,7 +135,7 @@ void TQVFb::createMenu(TQMenuData *menu)
file->insertItem( "&Save image...", this, SLOT(saveImage()), ALT+CTRL+Key_S );
file->insertItem( "&Animation...", this, SLOT(toggleAnimation()), ALT+CTRL+Key_A );
file->insertSeparator();
file->insertItem( "&Quit", qApp, SLOT(tquit()) );
file->insertItem( "&Quit", qApp, SLOT(quit()) );
menu->insertItem( "&File", file );

@ -24,10 +24,10 @@ public:
MyWidget::MyWidget( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" );
tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle->setRange( 5, 70 );
@ -48,7 +48,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
force, SLOT(setValue(int)) );
TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 );
grid->addWidget( tquit, 0, 0 );
grid->addWidget( quit, 0, 0 );
grid->addWidget( cannonField, 1, 1 );
grid->setColStretch( 1, 10 );

@ -24,10 +24,10 @@ public:
MyWidget::MyWidget( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" );
tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle->setRange( 5, 70 );
@ -53,7 +53,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
connect( shoot, SIGNAL(clicked()), cannonField, SLOT(shoot()) );
TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 );
grid->addWidget( tquit, 0, 0 );
grid->addWidget( quit, 0, 0 );
grid->addWidget( cannonField, 1, 1 );
grid->setColStretch( 1, 10 );

@ -24,10 +24,10 @@ public:
MyWidget::MyWidget( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" );
tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle->setRange( 5, 70 );
@ -53,7 +53,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
connect( shoot, SIGNAL(clicked()), cannonField, SLOT(shoot()) );
TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 );
grid->addWidget( tquit, 0, 0 );
grid->addWidget( quit, 0, 0 );
grid->addWidget( cannonField, 1, 1 );
grid->setColStretch( 1, 10 );

@ -19,10 +19,10 @@
GameBoard::GameBoard( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" );
tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle->setRange( 5, 70 );
@ -67,7 +67,7 @@ GameBoard::GameBoard( TQWidget *parent, const char *name )
= new TQLabel( "SHOTS LEFT", this, "shotsleftLabel" );
TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 );
grid->addWidget( tquit, 0, 0 );
grid->addWidget( quit, 0, 0 );
grid->addWidget( cannonField, 1, 1 );
grid->setColStretch( 1, 10 );

@ -21,10 +21,10 @@
GameBoard::GameBoard( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" );
tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( "ANGLE", this, "angle" );
angle->setRange( 5, 70 );
@ -78,10 +78,10 @@ GameBoard::GameBoard( TQWidget *parent, const char *name )
accel->connectItem( accel->insertItem( Key_Return ),
this, SLOT(fire()) );
accel->connectItem( accel->insertItem( CTRL+Key_Q ),
qApp, SLOT(tquit()) );
qApp, SLOT(quit()) );
TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 );
grid->addWidget( tquit, 0, 0 );
grid->addWidget( quit, 0, 0 );
grid->addWidget( box, 1, 1 );
grid->setColStretch( 1, 10 );

@ -13,13 +13,13 @@ int main( int argc, char **argv )
{
TQApplication a( argc, argv );
TQPushButton tquit( "Quit", 0 );
tquit.resize( 75, 30 );
tquit.setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton quit( "Quit", 0 );
quit.resize( 75, 30 );
quit.setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQObject::connect( &tquit, SIGNAL(clicked()), &a, SLOT(tquit()) );
TQObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) );
a.setMainWidget( &tquit );
tquit.show();
a.setMainWidget( &quit );
quit.show();
return a.exec();
}

@ -16,10 +16,10 @@ int main( int argc, char **argv )
TQVBox box;
box.resize( 200, 120 );
TQPushButton tquit( "Quit", &box );
tquit.setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton quit( "Quit", &box );
quit.setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQObject::connect( &tquit, SIGNAL(clicked()), &a, SLOT(tquit()) );
TQObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) );
a.setMainWidget( &box );
box.show();

@ -22,11 +22,11 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
setMinimumSize( 200, 120 );
setMaximumSize( 200, 120 );
TQPushButton *tquit = new TQPushButton( "Quit", this, "tquit" );
tquit->setGeometry( 62, 40, 75, 30 );
tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
quit->setGeometry( 62, 40, 75, 30 );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
}

@ -22,10 +22,10 @@ public:
MyWidget::MyWidget( TQWidget *parent, const char *name )
: TQVBox( parent, name )
{
TQPushButton *tquit = new TQPushButton( "Quit", this, "tquit" );
tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
TQLCDNumber *lcd = new TQLCDNumber( 2, this, "lcd" );

@ -38,10 +38,10 @@ public:
MyWidget::MyWidget( TQWidget *parent, const char *name )
: TQVBox( parent, name )
{
TQPushButton *tquit = new TQPushButton( "Quit", this, "tquit" );
tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
TQGrid *grid = new TQGrid( 4, this );

@ -24,10 +24,10 @@ public:
MyWidget::MyWidget( TQWidget *parent, const char *name )
: TQVBox( parent, name )
{
TQPushButton *tquit = new TQPushButton( "Quit", this, "tquit" );
tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
TQGrid *grid = new TQGrid( 4, this );

@ -24,10 +24,10 @@ public:
MyWidget::MyWidget( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
TQPushButton *tquit = new TQPushButton( "Quit", this, "tquit" );
tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton *quit = new TQPushButton( "Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle->setRange( 5, 70 );
@ -43,7 +43,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 );
//2x2, 10 pixel border
grid->addWidget( tquit, 0, 0 );
grid->addWidget( quit, 0, 0 );
grid->addWidget( angle, 1, 0, TQt::AlignTop );
grid->addWidget( cannonField, 1, 1 );
grid->setColStretch( 1, 10 );

@ -24,10 +24,10 @@ public:
MyWidget::MyWidget( TQWidget *parent, const char *name )
: TQWidget( parent, name )
{
TQPushButton *tquit = new TQPushButton( "&Quit", this, "tquit" );
tquit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
TQPushButton *quit = new TQPushButton( "&Quit", this, "quit" );
quit->setFont( TQFont( "Times", 18, TQFont::Bold ) );
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) );
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) );
LCDRange *angle = new LCDRange( this, "angle" );
angle->setRange( 5, 70 );
@ -40,7 +40,7 @@ MyWidget::MyWidget( TQWidget *parent, const char *name )
angle, SLOT(setValue(int)) );
TQGridLayout *grid = new TQGridLayout( this, 2, 2, 10 );
grid->addWidget( tquit, 0, 0 );
grid->addWidget( quit, 0, 0 );
grid->addWidget( angle, 1, 0, TQt::AlignTop );
grid->addWidget( cannonField, 1, 1 );
grid->setColStretch( 1, 10 );

Loading…
Cancel
Save