diff --git a/doc/application-walkthrough.doc b/doc/application-walkthrough.doc index e3a5aa6a..4527eeba 100644 --- a/doc/application-walkthrough.doc +++ b/doc/application-walkthrough.doc @@ -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: diff --git a/doc/faq.doc b/doc/faq.doc index c187ddbf..e36d7504 100644 --- a/doc/faq.doc +++ b/doc/faq.doc @@ -122,7 +122,7 @@ Qtopia. You can find a partial list here:
We will change a few properties for each of the push buttons in the Property Editor window.
Click the left-most push button, and change its name to "clearPushButton", and its text to "&Clear".
Click the middle push button and change its name to "calculatePushButton", its text to "Calculate", and its default property to "True".
-Click the right-most push button, change its name to "tquitPushButton", and change its text to "&Quit".
+Click the right-most push button, change its name to "quitPushButton", and change its text to "&Quit".
Select clearPushButton for the Sender, clicked() for the Signal, numberLineEdit for the Receiver, and setFocus() for the Slot.
-
We also need to connect the tquit button to the form:
+We also need to connect the quit button to the form:
Click New.
-Select tquitPushButton for Sender, clicked() for Signal, ConversionForm for Receiver, and close() for Slot.
+Select quitPushButton for Sender, clicked() for Signal, ConversionForm for Receiver, and close() for Slot.
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.
Click New.
Select calculatePushButton for the Sender, clicked() for the Signal, and ConversionForm for the Receiver.
diff --git a/doc/html/designer-manual-3.html b/doc/html/designer-manual-3.html index 46fdd66f..4d584665 100644 --- a/doc/html/designer-manual-3.html +++ b/doc/html/designer-manual-3.html @@ -126,7 +126,7 @@ body { background: #ffffff; color: black; }
-Object Explorer
In the original version of TQt Designer 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 TQt Designer 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 void init(); if it exists it will be called from the constructor. Similarly, if you need code to be executed before destruction create a slot called void destroy(). 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 New then enter your text, e.g. TQString m_filename. 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 Edit 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.
+In the original version of TQt Designer 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 TQt Designer 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 void init(); if it exists it will be called from the constructor. Similarly, if you need code to be executed before destruction create a slot called void destroy(). 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 New then enter your text, e.g. TQString m_filename. 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 Edit 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.
If you subclass the form you create your own .cpp files which can contain your own constructor, destructor, functions, slots, declarations and variables as your retquirements dictate. (See Subclassing for more information.)
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 /tools/designer/examples/colortool; simply open the relevant .ui.h files and copy and paste from there into your own version of the project.
+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 /tools/designer/examples/colortool; simply open the relevant .ui.h files and copy and paste from there into your own version of the project.
Cutting & Pasting Into the Code Editor
If you cut and paste code from this manual, because we've indented the code for readability, the code will be over-indented in TQt Designer. This is easily solved. Simply select the function containing the pasted code (either with the mouse, or Shift+Arrows) and press Tab: this will make TQt Designer fix the indentation. Note that you must select the entire function, including its name and parameters.
@@ -474,7 +474,7 @@ body { background: #ffffff; color: black; }When TQt Designer generates a main.cpp file it includes this line:
- a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( tquit() ) ); + a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );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, closeEvent() which will intercept attempts to close the application and call our fileExit() function.
Click main.cpp in the Project Overview window. The file will appear in an editing window. Delete the connect line.
diff --git a/doc/html/designer-manual-4.html b/doc/html/designer-manual-4.html index fd642a9d..17b27fcf 100644 --- a/doc/html/designer-manual-4.html +++ b/doc/html/designer-manual-4.html @@ -201,7 +201,7 @@ body { background: #ffffff; color: black; } } } -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 m_colors map we set the default color to be the current color showing in the current view. We then invoke TQt's static getColor() dialog, passing it the default color. (If the user cancels an invalid color is returned.)
+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 m_colors map we set the default color to be the current color showing in the current view. We then invoke TQt's static getColor() dialog, passing it the default color. (If the user cancels an invalid color is returned.)
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 setColors() function to set the colors in the m_colors map (so that the validate() 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.
We execute (exec()) 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 m_colors map using the name the user has given and the color they chose.
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).
diff --git a/doc/html/designer-manual-5.html b/doc/html/designer-manual-5.html index 80cbf8da..61b38dff 100644 --- a/doc/html/designer-manual-5.html +++ b/doc/html/designer-manual-5.html @@ -66,7 +66,7 @@ body { background: #ffffff; color: black; }
TQt Designer reads and writes .ui files, e.g. form.ui. The user interface compiler, uic, creates both a header file, e.g. form.h, and an implementation file, e.g. form.cpp, from the .ui file. The application code in main.cpp #includes form.h. Typically main.cpp is used to instantiate the TQApplication object and start off the event loop.
-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 uic 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 TQt Designer, you would almost always add the logic to the form itself, where it belongs.
+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 uic 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 TQt Designer, you would almost always add the logic to the form itself, where it belongs.
This is why the capability of adding custom slots and member variables to a form was added to TQt Designer early on. The big additional benefit with this approach is that you can use TQt Designer to connect signals to those custom slots, in the same elegant graphical way that is used to connect signals to predefined slots. The uic then adds an empty stub for each custom slot to the generated form.cpp implementation file.
The big question now is how to add custom implementation code to those custom slots. Adding code to the generated form.cpp is not an option, as this file gets recreated by the uic 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.
The subclassing approach
diff --git a/doc/html/designer-manual-6.html b/doc/html/designer-manual-6.html index a1997e54..9c9845df 100644 --- a/doc/html/designer-manual-6.html +++ b/doc/html/designer-manual-6.html @@ -176,7 +176,7 @@ INCLUDEPATH += $(QTDIR)/tools/designer/uilibWe do not include the creditformbase.ui file since this file will be read at runtime, as we'll see shortly. We must include the tqui library since the functionality we retquire is not part of the standard TQt library.
Creating main.cpp
-The main.cpp is tquite standard. It will invoke the form we're going to create in TQt Designer as its main form. This form will then load and execute the dynamic dialog.
+The main.cpp is quite standard. It will invoke the form we're going to create in TQt Designer as its main form. This form will then load and execute the dynamic dialog.
#include <qapplication.h> #include "mainform.h" @@ -194,7 +194,7 @@ INCLUDEPATH += $(QTDIR)/tools/designer/uilibdiff --git a/doc/html/faq.html b/doc/html/faq.html index 5e149419..d49d3985 100644 --- a/doc/html/faq.html +++ b/doc/html/faq.html @@ -243,7 +243,7 @@ TQtopia. You can find a partial list here: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 app.exec() call.
Creating the Main Form
Designing the Form
-
Open the receiver.pro project file in TQt Designer. We'll create a dialog as our main window which we'll use to invoke the dynamic dialog. Press Ctrl+N to launch the New File dialog and click OK 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 '&Credit Dialog', and the other called 'tquitPushButton' with the text '&Quit'. (For each button click the Push Button toolbar button, then click the form. Change the properties in the property window to those we've just described.)
+
Open the receiver.pro project file in TQt Designer. We'll create a dialog as our main window which we'll use to invoke the dynamic dialog. Press Ctrl+N to launch the New File dialog and click OK 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 '&Credit Dialog', and the other called 'quitPushButton' with the text '&Quit'. (For each button click the Push Button toolbar button, then click the form. Change the properties in the property window to those we've just described.)
We will now add a couple of labels so that we can show the settings the user chose in the dynamic dialog. Click the Text Label toolbar button, then click the form below the Credit Dialog button. Change the label's text to 'Credit Rating'. Add another text label below the Quit button. Change its name to 'ratingTextLabel' and its text to 'Unrated'.
We'll now lay out the widgets. Click the form then press Ctrl+G (lay out in a grid).
We'll now handle the signals and slots connections. Invoke the View and Edit Connections dialog and connect the credit dialog button's clicked() signal to a new creditDialog() custom slot (which is created by clicking the Edit Slots... button). Now connect the Quit button's clicked() signal to the dialog's accept() function.
diff --git a/doc/html/extension-dialog-example.html b/doc/html/extension-dialog-example.html index 323ea73c..5951601c 100644 --- a/doc/html/extension-dialog-example.html +++ b/doc/html/extension-dialog-example.html @@ -100,7 +100,7 @@ void MainForm::optionsDlg() } -void MainForm::tquit() +void MainForm::quit() { TQApplication::exit( 0 ); } @@ -151,7 +151,7 @@ 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(); }
Are there any books about TQt programming?
-Yes, there are tquite a few books on TQt, most of them +
Yes, there are quite a few books on TQt, most of them available from amazon.com. You can find a partial list at http://www.trolltech.com/developer/books.html.
The official TQt book is diff --git a/doc/html/functions.html b/doc/html/functions.html index bbc257df..60603f00 100644 --- a/doc/html/functions.html +++ b/doc/html/functions.html @@ -2129,8 +2129,8 @@ qAddPostRoutine: TQStyle
- querySubControlMetrics: TQStyle
- querySubObject: TQAxBase TQAxObject TQAxWidget
- question: - TQMessageBox
- tquit: - TQApplication
- qwsDecoration: + TQMessageBox
- quit: + TQApplication
- qwsDecoration: TQApplication
- qwsEvent: TQWidget
- qwsEventFilter: TQApplication
- qwsRenderToDisk: diff --git a/doc/html/geometry.html b/doc/html/geometry.html index 8c26de97..027a5949 100644 --- a/doc/html/geometry.html +++ b/doc/html/geometry.html @@ -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.
X11 provides no standard or easy way to get the frame geometry once the window is decorated. TQt solves this problem with nifty heuristics diff --git a/doc/html/guibooks.html b/doc/html/guibooks.html index 5319711e..b925bcdd 100644 --- a/doc/html/guibooks.html +++ b/doc/html/guibooks.html @@ -67,7 +67,7 @@ Doing what it tells you to do helps, too. OS 8 addendum.
The Microsoft Windows User Experience, 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. (Read more or buy it.)
Microsoft's guidelines are often available on the web, but have occasionally been hidden in an impenetrable maze of javascript. diff --git a/doc/html/hello-example.html b/doc/html/hello-example.html index 416f8e63..31f33814 100644 --- a/doc/html/hello-example.html +++ b/doc/html/hello-example.html @@ -215,7 +215,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 ); diff --git a/doc/html/helpviewer-example.html b/doc/html/helpviewer-example.html index c0b4ad5f..005739c7 100644 --- a/doc/html/helpviewer-example.html +++ b/doc/html/helpviewer-example.html @@ -463,7 +463,7 @@ int main( int argc, char ** argv ) help->showMaximized(); TQObject::connect( &a, SIGNAL(lastWindowClosed()), - &a, SLOT(tquit()) ); + &a, SLOT(quit()) ); return a.exec(); } diff --git a/doc/html/httpd-example.html b/doc/html/httpd-example.html index fbd007f3..1c9bb8c1 100644 --- a/doc/html/httpd-example.html +++ b/doc/html/httpd-example.html @@ -140,12 +140,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() diff --git a/doc/html/i18n-example.html b/doc/html/i18n-example.html index eacdd9d8..b4f469e8 100644 --- a/doc/html/i18n-example.html +++ b/doc/html/i18n-example.html @@ -112,7 +112,7 @@ private: 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 ); @@ -293,7 +293,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 ) { diff --git a/doc/html/i18n.html b/doc/html/i18n.html index 51772b7f..6f81c334 100644 --- a/doc/html/i18n.html +++ b/doc/html/i18n.html @@ -263,7 +263,7 @@ your application, translators won't be able to override it. The correct idiom is
TQPopupMenu *file = new TQPopupMenu( this ); - file->insertItem( tr("&Quit"), this, SLOT(tquit()), + file->insertItem( tr("&Quit"), this, SLOT(quit()), TQKeySequence(tr("Ctrl+Q", "File|Quit")) );diff --git a/doc/html/index b/doc/html/index index 4f57133a..8cb7ae86 100644 --- a/doc/html/index +++ b/doc/html/index @@ -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 diff --git a/doc/html/layout-example.html b/doc/html/layout-example.html index 93a92b66..bff159fa 100644 --- a/doc/html/layout-example.html +++ b/doc/html/layout-example.html @@ -76,7 +76,7 @@ public: 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. diff --git a/doc/html/linguist-manual-3.html b/doc/html/linguist-manual-3.html index 3dee0a92..1a9d36a5 100644 --- a/doc/html/linguist-manual-3.html +++ b/doc/html/linguist-manual-3.html @@ -39,7 +39,7 @@ body { background: #ffffff; color: black; }To start, run TQt Linguist, either from the taskbar menu, or by double clicking the desktop icon, or type linguist (followed by Enter) at the command line. Once TQt Linguist has started choose File|Open from the menu bar and select a .ts translation source file to work on.
TQt Linguist'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.
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 Ctrl+Enter (Done & Next) to confirm that you have completed the translation and to move on to the next phrase that retquires translation.
-The cycle of entering a translation then pressing Ctrl+Enter 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. Ctrl+1, Ctrl+2, 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 File|Save from the menu bar and then File|Exit to tquit.
+The cycle of entering a translation then pressing Ctrl+Enter 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. Ctrl+1, Ctrl+2, 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 File|Save from the menu bar and then File|Exit to quit.
TQt Linguist's Main Window
Context List
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.
diff --git a/doc/html/linguist-manual-4.html b/doc/html/linguist-manual-4.html index 84814282..b31088a1 100644 --- a/doc/html/linguist-manual-4.html +++ b/doc/html/linguist-manual-4.html @@ -102,7 +102,7 @@ body { background: #ffffff; color: black; } rbh = new TQRadioButton( tr("Enabled", "Hue frame"), this );Ctrl key accelerators are also translatable:
-file->insertItem( tr("E&xit"), qApp, SLOT(tquit()), +file->insertItem( tr("E&xit"), qApp, SLOT(quit()), tr("Ctrl+Q", "Quit") );It is strongly recommended that the two argument form of tr() is used for Ctrl key accelerators. The second argument is the only clue the translator has as to the function performed by the accelerator.
@@ -336,7 +336,7 @@ TRANSLATIONS = tt2_fr.ts \ArrowPad *ap = new ArrowPad( this, "arrow pad" );We also call MainWindow::tr() twice, once for the menu item and once for the accelerator.
-file->insertItem( tr("E&xit"), qApp, SLOT(tquit()), +file->insertItem( tr("E&xit"), qApp, SLOT(quit()), tr("Ctrl+Q", "Quit") );Note the use of tr() 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 tr() for Ctrl key accelerators, the two argument form should be used with the second argument describing the function that the accelerator performs.
@@ -452,7 +452,7 @@ TRANSLATIONS = tt3_pt.tssetCaption( tr("Troll Print 1.0") );We must translate the window's caption.
-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 ); @@ -489,7 +489,7 @@ TRANSLATIONS = tt3_pt.tsNow run lupdate and open tt3_pt.ts with TQt Linguist. You should now see two changes.
First, the translation source file now contains three "Enabled", "Disabled" pairs. The first pair is marked "(obs.)" signifying that they are obsolete. This is because these texts appeared in tr() 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 Source text and comments area in TQt Linguist.
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.
-Change the second "Ativado" into "Ativadas" and the second "Desativado" into "Desativadas", then save and tquit. Run lrelease to obtain an up-to-date binary tt3_pt.qm file, and run Troll Print (or rather Troll Imprimir).
+Change the second "Ativado" into "Ativadas" and the second "Desativado" into "Desativadas", then save and quit. Run lrelease to obtain an up-to-date binary tt3_pt.qm file, and run Troll Print (or rather Troll Imprimir).
@@ -537,7 +537,7 @@ TRANSLATIONS = tt3_pt.tsTutorial 3 Screenshot, "Troll Imprimir 1.0", (Good) Portuguese version
Two-sided - unmarked, i.e. untranslated.
Notice that lupdate works hard behind the scenes to make revisions easier, and it's pretty smart with numbers.
Go over the translations in MainWindow and mark these as "done". Translate "<b>TROLL PRINT</b>" as "<b>TROLL IMPRIMIR</b>". When you're translating "Two-sided", press the Guess Again button to translate "Two-sided", but change the "2" into "Dois".
-Save and tquit, then run lrelease. The Portuguese version should look like this:
+Save and quit, then run lrelease. The Portuguese version should look like this:
diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html index 58f68c77..d816deb8 100644 --- a/doc/html/mdi-example.html +++ b/doc/html/mdi-example.html @@ -582,7 +582,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; } diff --git a/doc/html/menu-example.html b/doc/html/menu-example.html index 246e72ff..d734a853 100644 --- a/doc/html/menu-example.html +++ b/doc/html/menu-example.html @@ -242,7 +242,7 @@ private: 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 ); diff --git a/doc/html/motif-customwidget-example.html b/doc/html/motif-customwidget-example.html index fe752f50..6e02b4f8 100644 --- a/doc/html/motif-customwidget-example.html +++ b/doc/html/motif-customwidget-example.html @@ -97,7 +97,7 @@ int main( int argc, char **argv ) : TQMainWindow( 0, "mainwindow" ) { TQPopupMenu *filemenu = new TQPopupMenu( this ); - filemenu->insertItem( tr("&Quit"), qApp, SLOT(tquit()) ); + filemenu->insertItem( tr("&Quit"), qApp, SLOT(quit()) ); menuBar()->insertItem( tr("&File"), filemenu ); statusBar()->message( tr("This is a TQMainWindow with an XmText widget.") ); diff --git a/doc/html/motif-dialog-example.html b/doc/html/motif-dialog-example.html index 6d4d6dac..b30ffda9 100644 --- a/doc/html/motif-dialog-example.html +++ b/doc/html/motif-dialog-example.html @@ -106,7 +106,7 @@ static void qtDialogCallback( Widget, XtPointer client_data, XtPointer ) mw->showTQtDialog(); } -static void tquitCallback( Widget, XtPointer client_data, XtPointer ) +static void quitCallback( Widget, XtPointer client_data, XtPointer ) { MainWindow *mw = (MainWindow *) client_data; mw->close(); @@ -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", diff --git a/doc/html/motif-walkthrough-10.html b/doc/html/motif-walkthrough-10.html index 0d09bc56..5baecdf8 100644 --- a/doc/html/motif-walkthrough-10.html +++ b/doc/html/motif-walkthrough-10.html @@ -35,7 +35,7 @@ body { background: #ffffff; color: black; } [ Previous: Replacing the Print Dialog ] [ Home ] -Tutorial 3 Screenshot, "Troll Imprimir 1.1", Portuguese version
We have not tquite finished with the migration to TQt, even though our +
We have not quite finished with the migration to TQt, even though our project does not use Motif 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 diff --git a/doc/html/motif-walkthrough-6.html b/doc/html/motif-walkthrough-6.html index 802f205d..ec9ce6a4 100644 --- a/doc/html/motif-walkthrough-6.html +++ b/doc/html/motif-walkthrough-6.html @@ -69,7 +69,7 @@ existing callback functions found in todo.cpp and actions.cpp.
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:
diff --git a/doc/html/networkprotocol-example.html b/doc/html/networkprotocol-example.html index ef15570d..97473a37 100644 --- a/doc/html/networkprotocol-example.html +++ b/doc/html/networkprotocol-example.html @@ -199,7 +199,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(); } } diff --git a/doc/html/picture-example.html b/doc/html/picture-example.html index 8523e188..b851d4cb 100644 --- a/doc/html/picture-example.html +++ b/doc/html/picture-example.html @@ -132,7 +132,7 @@ void PictureDisplay::paintEvent( load( name ); update(); break; - case 'q': // tquit + case 'q': // quit TQApplication::exit(); break; } diff --git a/doc/html/process-example.html b/doc/html/process-example.html index 839f185b..565eab30 100644 --- a/doc/html/process-example.html +++ b/doc/html/process-example.html @@ -74,16 +74,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 diff --git a/doc/html/progress-example.html b/doc/html/progress-example.html index 83a14b80..e20a0aba 100644 --- a/doc/html/progress-example.html +++ b/doc/html/progress-example.html @@ -192,7 +192,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 ); diff --git a/doc/html/qaccel.html b/doc/html/qaccel.html index b7c1dd7f..e7e725a8 100644 --- a/doc/html/qaccel.html +++ b/doc/html/qaccel.html @@ -180,7 +180,7 @@ Removes all accelerator items. Connects the accelerator item id to the slot member of receiver.diff --git a/doc/html/qapplication-h.html b/doc/html/qapplication-h.html index a822ad04..7b26e42f 100644 --- a/doc/html/qapplication-h.html +++ b/doc/html/qapplication-h.html @@ -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 diff --git a/doc/html/qapplication-members.html b/doc/html/qapplication-members.html index 1b2eadbd..fb47490b 100644 --- a/doc/html/qapplication-members.html +++ b/doc/html/qapplication-members.html @@ -123,7 +123,7 @@ body { background: #ffffff; color: black; }
- a->connectItem( 201, mainView, SLOT(tquit()) ); + a->connectItem( 201, mainView, SLOT(quit()) );Of course, you can also send a signal as member. @@ -221,8 +221,8 @@ negative identifier less than -1.
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 < -1diff --git a/doc/html/qaction-application-example.html b/doc/html/qaction-application-example.html index c166a8d9..2709e863 100644 --- a/doc/html/qaction-application-example.html +++ b/doc/html/qaction-application-example.html @@ -188,7 +188,7 @@ private: SLOT( close() ) ); fileQuitAction = new TQAction( "Quit", "&Quit", CTRL+Key_Q, this, - "tquit" ); + "quit" ); connect( fileQuitAction, SIGNAL( activated() ) , qApp, SLOT( closeAllWindows() ) ); @@ -421,7 +421,7 @@ 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(); }
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. -
See also tquit(). +
See also quit().
The windows are closed in random order, until one window does not accept the close event. -
See also TQWidget::close(), TQWidget::closeEvent(), lastWindowClosed(), tquit(), topLevelWidgets(), and TQWidget::isTopLevel. +
See also TQWidget::close(), TQWidget::closeEvent(), lastWindowClosed(), quit(), topLevelWidgets(), and TQWidget::isTopLevel.
Examples: action/application.cpp, application/application.cpp, helpviewer/helpwindow.cpp, mdi/application.cpp, and qwerty/qwerty.cpp. @@ -803,7 +803,7 @@ it before you create the TQApplication object. 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 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 TQTimer with 0 timeout. More advanced idle processing schemes can be achieved using processEvents(). -
See also tquit(), exit(), processEvents(), and setMainWidget(). +
See also quit(), exit(), processEvents(), and setMainWidget().
Examples: helpsystem/main.cpp, life/main.cpp, network/archivesearch/main.cpp, network/ftpclient/main.cpp, opengl/main.cpp, t1/main.cpp, and t4/main.cpp.
Note that unlike the C library function of the same name, this function does return to the caller -- it is event processing that stops. -
See also tquit() and exec(). +
Examples: chart/chartform.cpp, extension/mainform.ui.h, and picture/picture.cpp.
This signal is emitted when the user has closed the last 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 not 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.
See also processEvents(), exec(), and TQTimer. -
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:
- TQPushButton *tquitButton = new TQPushButton( "Quit" ); - connect( tquitButton, SIGNAL(clicked()), qApp, SLOT(tquit()) ); + TQPushButton *quitButton = new TQPushButton( "Quit" ); + connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
See also exit(), aboutToQuit(), lastWindowClosed(), and TQAction. @@ -1468,12 +1468,12 @@ TQApplication does not take ownership of the mainWidget, so if you create your main widget on the heap you must delete it 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 -geometry command-line option, so you should set the default geometry (using TQWidget::setGeometry()) before calling setMainWidget(). -
See also mainWidget(), exec(), and tquit(). +
See also mainWidget(), exec(), and quit().
Examples: chart/main.cpp, helpsystem/main.cpp, life/main.cpp, network/ftpclient/main.cpp, opengl/main.cpp, t1/main.cpp, and t4/main.cpp.
Note that the functions provided by TQCDEStyle are reimplementations of TQStyle functions; see TQStyle for their diff --git a/doc/html/qcloseevent.html b/doc/html/qcloseevent.html index 9849d37a..1674e60b 100644 --- a/doc/html/qcloseevent.html +++ b/doc/html/qcloseevent.html @@ -81,7 +81,7 @@ independent top-level windows in a multi-window application. 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. -
See also TQWidget::close(), TQWidget::hide(), TQObject::destroyed(), TQApplication::setMainWidget(), TQApplication::lastWindowClosed(), TQApplication::exec(), TQApplication::tquit(), and Event Classes. +
See also TQWidget::close(), TQWidget::hide(), TQObject::destroyed(), TQApplication::setMainWidget(), TQApplication::lastWindowClosed(), TQApplication::exec(), TQApplication::quit(), and Event Classes.
Note that text colors can be used for things other than just -words; text colors are usually used for text, but it's tquite +words; text colors are 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:
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).
See also accept(), reject(), TQApplication::mainWidget(), and TQApplication::tquit(). +
See also accept(), reject(), TQApplication::mainWidget(), and TQApplication::quit().
See also TQApplication::tquit(), exit(), and processEvents(). +
See also TQApplication::quit(), exit(), and processEvents().
Note that unlike the C library function of the same name, this function does return to the caller -- it is event processing that stops. -
See also TQApplication::tquit() and exec(). +
See also TQApplication::quit() and exec().
Mac only: This virtual function tries to find a visual that matches the format using the given device handle, 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 specific retquirements on visual selection.
See also chooseContext(). @@ -155,7 +155,7 @@ Windows-specific types in our header files. X11 only: This virtual function tries to find a 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.
See also chooseContext(). diff --git a/doc/html/qhebrewcodec.html b/doc/html/qhebrewcodec.html index 2c5b9498..f3b9b755 100644 --- a/doc/html/qhebrewcodec.html +++ b/doc/html/qhebrewcodec.html @@ -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. -
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 diff --git a/doc/html/qlistbox.html b/doc/html/qlistbox.html index c1996433..7b4ff52f 100644 --- a/doc/html/qlistbox.html +++ b/doc/html/qlistbox.html @@ -252,7 +252,7 @@ can get keyboard focus by tabbing, clicking and through the use of the mouse wheel.
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 removed as necessary. setHScrollBarMode() and setVScrollBarMode() @@ -532,7 +532,7 @@ item. The argument is a pointer to the new current item.
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 lbi at its sorted position in the list box and returns the position. @@ -545,7 +545,7 @@ lexicographically less than any string. This function is obsolete. It is provided to keep old source working. We strongly advise against using it in new code.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function. -
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 text at its sorted position in the list box and returns the position. diff --git a/doc/html/qmag-example.html b/doc/html/qmag-example.html index 978475e7..2a6e5b03 100644 --- a/doc/html/qmag-example.html +++ b/doc/html/qmag-example.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }
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.
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: TQComboBox *refresh; TQPushButton *saveButton; TQPushButton *multiSaveButton; - TQPushButton *tquitButton; + TQPushButton *quitButton; TQPixmap pm; // pixmap, magnified TQPixmap p; // pixmap TQImage image; // image of pixmap (for RGB) @@ -171,12 +171,12 @@ static const int timer[] = { 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; @@ -195,8 +195,8 @@ static const int timer[] = { 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); diff --git a/doc/html/qmake-manual-5.html b/doc/html/qmake-manual-5.html index af2e921d..e1912340 100644 --- a/doc/html/qmake-manual-5.html +++ b/doc/html/qmake-manual-5.html @@ -33,7 +33,7 @@ body { background: #ffffff; color: black; }
qmake is an easy-to-use tool from Trolltech that creates makefiles for development projects across different platforms. qmake simplifies the generation of makefiles so that only a few lines of information are needed to create a makefile. qmake 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.
-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. qmake can also generate projects for Microsoft Visual studio without having to change the project file.
+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 quite sophisticated if retquired. qmake can also generate projects for Microsoft Visual studio without having to change the project file.
Before qmake 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.
diff --git a/doc/html/qmake-manual-8.html b/doc/html/qmake-manual-8.html index 19e875d4..e21c9779 100644 --- a/doc/html/qmake-manual-8.html +++ b/doc/html/qmake-manual-8.html @@ -648,7 +648,7 @@ QMAKE_VERS = $$[QMAKE_VERSION]The name of a platform-compiler combination. In this case, qmake will search in the directory specified by the QTDIR environment variable.
Note: the QMAKESPEC path will automatically be added to the INCLUDEPATH system variable.
It is common on UNIX to be able to install from the same utility as you build with (e.g make install). For this qmake 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:
+It is common on UNIX to be able to install from the same utility as you build with (e.g make install). For this qmake 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:
documentation.path = /usr/local/program/doc documentation.files = docs/* @@ -698,7 +698,7 @@ QMAKE_VERS = $$[QMAKE_VERSION]
QMAKE_EXT_H - Changes interpretation all files with these suffixes to be C header files.
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 generator).
-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:
+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:
mytarget.target = .buildfile mytarget.commands = touch $$mytarget.target diff --git a/doc/html/qmenubar.html b/doc/html/qmenubar.html index fe899bda..f2072264 100644 --- a/doc/html/qmenubar.html +++ b/doc/html/qmenubar.html @@ -168,10 +168,10 @@ the Application Menuconfig, options, setup, settings or preferences Application Menu | Preferences If this entry is not found the Settings item will be disabled - tquit or exit + quit or exit Application Menu | Quit If this entry is not found a default Quit item will be -created to call TQApplication::tquit() +created to call TQApplication::quit() menu/menu.cpp is an example of TQMenuBar and TQPopupMenu 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.
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 text, the accelerator key accel, an id and an optional index and connects it to the slot member in the object receiver. diff --git a/doc/html/qmenudata.html b/doc/html/qmenudata.html index 80dfd8eb..5923d344 100644 --- a/doc/html/qmenudata.html +++ b/doc/html/qmenudata.html @@ -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.
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 text, the accelerator key accel, an id and an optional index and connects it to the slot member in the object receiver. @@ -619,7 +619,7 @@ object. 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 diff --git a/doc/html/qnetworkprotocol.html b/doc/html/qnetworkprotocol.html index 6aac280c..78b3e7d3 100644 --- a/doc/html/qnetworkprotocol.html +++ b/doc/html/qnetworkprotocol.html @@ -206,7 +206,7 @@ Returns TRUE if auto-deleting is enabled; otherwise returns FALSE.
bool TQNetworkProtocol::checkConnection ( TQNetworkOperation * op ) [virtual protected]
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. diff --git a/doc/html/qobject.html b/doc/html/qobject.html index b84fedca..2cf99725 100644 --- a/doc/html/qobject.html +++ b/doc/html/qobject.html @@ -741,7 +741,7 @@ of a TQRegExp. If regexpMatch is FALSE, and object names must match it exactly.Note that 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.
Finally, if recursiveSearch is TRUE (the default), queryList() diff --git a/doc/html/qpopupmenu.html b/doc/html/qpopupmenu.html index 17a6dfbd..d56e1394 100644 --- a/doc/html/qpopupmenu.html +++ b/doc/html/qpopupmenu.html @@ -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.
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 text, the accelerator key accel, an id and an optional index and connects it to the slot member in the object receiver. @@ -735,7 +735,7 @@ object. 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 diff --git a/doc/html/qptrqueue.html b/doc/html/qptrqueue.html index a98474a3..b79acb51 100644 --- a/doc/html/qptrqueue.html +++ b/doc/html/qptrqueue.html @@ -188,7 +188,7 @@ was an item, i.e. the queue wasn't empty; otherwise returns FALSE.
Sets the queue to auto-delete its contents if enable is TRUE and not to delete them if 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 careful about copying the queue: you might find yourself with two diff --git a/doc/html/qscrollview.html b/doc/html/qscrollview.html index 887e8377..4c97fbbe 100644 --- a/doc/html/qscrollview.html +++ b/doc/html/qscrollview.html @@ -152,7 +152,7 @@ The TQScrollView widget provides a scrolling area with on-demand scroll bars.
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 "resizePolicy" property Sets the scrollview to have a static background if y is TRUE, or a scrolling background if 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.
See also hasStaticBackground(). diff --git a/doc/html/qsessionmanager.html b/doc/html/qsessionmanager.html index 9ad3ae9f..04077a50 100644 --- a/doc/html/qsessionmanager.html +++ b/doc/html/qsessionmanager.html @@ -106,7 +106,7 @@ the session is shut down, it wants to be restarted at the start of the next session.
TQSessionManager::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.) TQSessionManager::RestartImmediately - the application wants to be started immediately whenever it is not running. TQSessionManager::RestartNever - the application does not want to be restarted diff --git a/doc/html/qsocket.html b/doc/html/qsocket.html index 1899f20b..955ef062 100644 --- a/doc/html/qsocket.html +++ b/doc/html/qsocket.html @@ -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 TQIODevice::size() exactly. The documentation for open(), close(), flush(), size(), at(), atEnd(), readBlock(), writeBlock(), getch(), putch(), ungetch() and readLine() describes the diff --git a/doc/html/qsocketdevice.html b/doc/html/qsocketdevice.html index 3b835040..571bee68 100644 --- a/doc/html/qsocketdevice.html +++ b/doc/html/qsocketdevice.html @@ -249,7 +249,7 @@ Returns TRUE if this is a valid socket; otherwise returns FALSE. Specifies how many pending connections a server socket can have. Returns TRUE if the operation was successful; otherwise returns -FALSE. A backlog value of 50 is tquite common. +FALSE. A backlog value of 50 is quite common. 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().
See also bind() and accept(). diff --git a/doc/html/qt.dcf b/doc/html/qt.dcf index 0ea63b12..107f90c7 100644 --- a/doc/html/qt.dcf +++ b/doc/html/qt.dcf @@ -185,7 +185,7 @@
polish postEvent processEvents -tquit +quit qwsDecoration qwsEventFilter qwsSetCustomColors diff --git a/doc/html/qtimer.html b/doc/html/qtimer.html index db1f7910..6b20cb85 100644 --- a/doc/html/qtimer.html +++ b/doc/html/qtimer.html @@ -147,7 +147,7 @@ to create a local TQTimer object. 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(); } diff --git a/doc/html/qtooltip.html b/doc/html/qtooltip.html index 7f501c2a..4ddd9b9e 100644 --- a/doc/html/qtooltip.html +++ b/doc/html/qtooltip.html @@ -102,21 +102,21 @@ lets the mouse hover for five seconds or moves the mouse outsideTo add a tip to a widget, call the static function TQToolTip::add() with the widget and tip as arguments:
- TQToolTip::add( tquitButton, "Leave the application" ); + TQToolTip::add( quitButton, "Leave the application" );This is the simplest and most common use of TQToolTip. The tip -will be deleted automatically when tquitButton is deleted, but +will be deleted automatically when quitButton is deleted, but you can remove it yourself, too:
- TQToolTip::remove( tquitButton ); + TQToolTip::remove( quitButton );You can also display another text (typically in a status bar), courtesy of TQToolTipGroup. This example assumes that grp is a TQToolTipGroup * and is already connected to the appropriate status bar:
- 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" ); diff --git a/doc/html/qwerty-example.html b/doc/html/qwerty-example.html index b9d16bd8..8bd0b6e8 100644 --- a/doc/html/qwerty-example.html +++ b/doc/html/qwerty-example.html @@ -492,7 +492,7 @@ 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(); }diff --git a/doc/html/qwidget.html b/doc/html/qwidget.html index 982c0a19..2d76389b 100644 --- a/doc/html/qwidget.html +++ b/doc/html/qwidget.html @@ -569,7 +569,7 @@ If not, it will be a child of parent, and be constrained by parent< widget flag).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 TQt Designer (you can name a widget in TQt Designer, and connect() to it using the name in your code). The dumpObjectTree() debugging function also uses it. @@ -606,10 +606,10 @@ somewhere else, then releases, your 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. -
mouseDoubleClickEvent() - not tquite as obvious as it might seem. +
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 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, @@ -855,7 +855,7 @@ no matter if the widget is visible or not. last visible top level widget is closed. Note that closing the TQApplication::mainWidget() terminates the application. -
See also closeEvent(), TQCloseEvent, hide(), TQApplication::tquit(), TQApplication::setMainWidget(), and TQApplication::lastWindowClosed(). +
See also closeEvent(), TQCloseEvent, hide(), TQApplication::quit(), TQApplication::setMainWidget(), and TQApplication::lastWindowClosed().
void TQWidget::closeEvent ( TQCloseEvent * e ) [virtual protected]
diff --git a/doc/html/qxmlsimplereader.html b/doc/html/qxmlsimplereader.html index fa9092dd..57b112ab 100644 --- a/doc/html/qxmlsimplereader.html +++ b/doc/html/qxmlsimplereader.html @@ -115,7 +115,7 @@ with the incremental argument set to TRUE.Returns FALSE if a parsing error occurs; otherwise returns TRUE.
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 finished parsing is not considered to be an error: you can diff --git a/doc/html/regexptester-example.html b/doc/html/regexptester-example.html index 4e16660b..8afc5d77 100644 --- a/doc/html/regexptester-example.html +++ b/doc/html/regexptester-example.html @@ -75,7 +75,7 @@ public: TQTable *resultTable; TQPushButton *executePushButton; TQPushButton *copyPushButton; - TQPushButton *tquitPushButton; + TQPushButton *quitPushButton; TQStatusBar *statusBar; public slots: @@ -132,7 +132,7 @@ private: 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); @@ -148,7 +148,7 @@ private: 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); @@ -165,7 +165,7 @@ private: 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(); } @@ -267,7 +267,7 @@ void RegexpTester::languageChange() wildcardCheckBox->setText(tr("&Wildcard")); copyPushButton->setText(tr("&Copy")); executePushButton->setText(tr("&Execute")); - tquitPushButton->setText(tr("&Quit")); + quitPushButton->setText(tr("&Quit")); } @@ -282,7 +282,7 @@ 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(); } diff --git a/doc/html/richtext-example.html b/doc/html/richtext-example.html index 692e7a48..8276b17f 100644 --- a/doc/html/richtext-example.html +++ b/doc/html/richtext-example.html @@ -182,7 +182,7 @@ static const char* sayings[] = { 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() ) ); diff --git a/doc/html/rot-example.html b/doc/html/rot-example.html index 91835dc2..2f66bf1e 100644 --- a/doc/html/rot-example.html +++ b/doc/html/rot-example.html @@ -103,14 +103,14 @@ private: 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(); } diff --git a/doc/html/scrollview-example.html b/doc/html/scrollview-example.html index eb78ca25..31f30e80 100644 --- a/doc/html/scrollview-example.html +++ b/doc/html/scrollview-example.html @@ -83,7 +83,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 ) { @@ -247,7 +247,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 ); @@ -473,7 +473,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(); } diff --git a/doc/html/showimg-example.html b/doc/html/showimg-example.html index ff42ab33..99828891 100644 --- a/doc/html/showimg-example.html +++ b/doc/html/showimg-example.html @@ -195,7 +195,7 @@ private slots: 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 ); @@ -865,7 +865,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(); } diff --git a/doc/html/signalsandslots.html b/doc/html/signalsandslots.html index 02a0d156..a3f18f2a 100644 --- a/doc/html/signalsandslots.html +++ b/doc/html/signalsandslots.html @@ -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. -
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 diff --git a/doc/html/simple-application-example.html b/doc/html/simple-application-example.html index 0eb57587..fd7877e3 100644 --- a/doc/html/simple-application-example.html +++ b/doc/html/simple-application-example.html @@ -408,7 +408,7 @@ 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(); } diff --git a/doc/html/simple-application.html b/doc/html/simple-application.html index 239908cd..b029bc84 100644 --- a/doc/html/simple-application.html +++ b/doc/html/simple-application.html @@ -118,7 +118,7 @@ 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(); } @@ -141,9 +141,9 @@ behave the way X clients are expected to.
We create an ApplicationWindow as a top-level widget, set its window system caption to "Document 1", and show() it.
a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(tquit()) ); +a.connect( &a, SIGNAL(lastWindowClosed()), &a, SLOT(quit()) );-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 TQApplication.
return a.exec();@@ -157,7 +157,7 @@ that TQApplication returns when it leaves the event loop.-
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 #includes worth mentioning: diff --git a/doc/html/sound-example.html b/doc/html/sound-example.html index 0ebf892e..8fe39cee 100644 --- a/doc/html/sound-example.html +++ b/doc/html/sound-example.html @@ -128,7 +128,7 @@ private: 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); } diff --git a/doc/html/t10-main-cpp.html b/doc/html/t10-main-cpp.html index a0b86164..1e575a89 100644 --- a/doc/html/t10-main-cpp.html +++ b/doc/html/t10-main-cpp.html @@ -58,10 +58,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 ); @@ -82,7 +82,7 @@ public: 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 ); diff --git a/doc/html/t11-main-cpp.html b/doc/html/t11-main-cpp.html index 3a059a06..5c852f89 100644 --- a/doc/html/t11-main-cpp.html +++ b/doc/html/t11-main-cpp.html @@ -58,10 +58,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 ); @@ -87,7 +87,7 @@ public: 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 ); diff --git a/doc/html/t12-main-cpp.html b/doc/html/t12-main-cpp.html index 2106eb5e..e20f3dd0 100644 --- a/doc/html/t12-main-cpp.html +++ b/doc/html/t12-main-cpp.html @@ -58,10 +58,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 ); @@ -87,7 +87,7 @@ public: 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 ); diff --git a/doc/html/t13-gamebrd-cpp.html b/doc/html/t13-gamebrd-cpp.html index 62f0a481..41ecdaca 100644 --- a/doc/html/t13-gamebrd-cpp.html +++ b/doc/html/t13-gamebrd-cpp.html @@ -53,10 +53,10 @@ body { background: #ffffff; color: black; } 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 ); @@ -101,7 +101,7 @@ body { background: #ffffff; color: black; } = 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 ); diff --git a/doc/html/t14-gamebrd-cpp.html b/doc/html/t14-gamebrd-cpp.html index 38289264..5130978d 100644 --- a/doc/html/t14-gamebrd-cpp.html +++ b/doc/html/t14-gamebrd-cpp.html @@ -55,10 +55,10 @@ body { background: #ffffff; color: black; } 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 ); @@ -112,10 +112,10 @@ body { background: #ffffff; color: black; } 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 ); diff --git a/doc/html/t7-main-cpp.html b/doc/html/t7-main-cpp.html index 2355f394..bd7132d3 100644 --- a/doc/html/t7-main-cpp.html +++ b/doc/html/t7-main-cpp.html @@ -58,10 +58,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 ); diff --git a/doc/html/t8-main-cpp.html b/doc/html/t8-main-cpp.html index 0d5f4d01..b0233cdb 100644 --- a/doc/html/t8-main-cpp.html +++ b/doc/html/t8-main-cpp.html @@ -58,10 +58,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 ); @@ -77,7 +77,7 @@ public: 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 ); diff --git a/doc/html/t9-main-cpp.html b/doc/html/t9-main-cpp.html index e9ca64c0..6ecb0751 100644 --- a/doc/html/t9-main-cpp.html +++ b/doc/html/t9-main-cpp.html @@ -58,10 +58,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 ); @@ -74,7 +74,7 @@ public: 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 ); diff --git a/doc/html/tabdialog-example.html b/doc/html/tabdialog-example.html index a38da337..a40d1b40 100644 --- a/doc/html/tabdialog-example.html +++ b/doc/html/tabdialog-example.html @@ -106,7 +106,7 @@ protected: setupTab2(); setupTab3(); - connect( this, SIGNAL( applyButtonPressed() ), qApp, SLOT( tquit() ) ); + connect( this, SIGNAL( applyButtonPressed() ), qApp, SLOT( quit() ) ); } void TabDialog::setupTab1() diff --git a/doc/html/themes-example.html b/doc/html/themes-example.html index dbd93459..b30208b1 100644 --- a/doc/html/themes-example.html +++ b/doc/html/themes-example.html @@ -2253,7 +2253,7 @@ private: } 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(); diff --git a/doc/html/tictac-example.html b/doc/html/tictac-example.html index 32dde137..c1631b5b 100644 --- a/doc/html/tictac-example.html +++ b/doc/html/tictac-example.html @@ -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 TQWidget @@ -141,7 +141,7 @@ private: void newState(); TQComboBox *whoStarts; TQPushButton *newGame; - TQPushButton *tquit; + TQPushButton *quit; TQLabel *message; TicTacGameBoard *board; }; @@ -478,12 +478,12 @@ void TicTacGameBoard::computerMove() 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(); } diff --git a/doc/html/tutorial1-02.html b/doc/html/tutorial1-02.html index 125537d4..7b84b5ec 100644 --- a/doc/html/tutorial1-02.html +++ b/doc/html/tutorial1-02.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; }
Having created a window in Chapter 1, 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.
/**************************************************************** ** @@ -51,14 +51,14 @@ 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(); }@@ -72,22 +72,22 @@ int main( int argc, char **argv )Since this program uses TQFont, 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. -
TQPushButton tquit( "Quit", 0 ); +
TQPushButton quit( "Quit", 0 );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. -
tquit.resize( 75, 30 ); +
quit.resize( 75, 30 );We've chosen another size for the button since the text is a bit shorter than "Hello world!". We could also have used TQFontMetrics to set right size. -
tquit.setFont( TQFont( "Times", 18, TQFont::Bold ) ); +
quit.setFont( TQFont( "Times", 18, TQFont::Bold ) );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.
It is also possible to change the default font (using TQApplication::setFont()) for the whole application. -
TQObject::connect( &tquit, SIGNAL(clicked()), &a, SLOT(tquit()) ); +
TQObject::connect( &quit, SIGNAL(clicked()), &a, SLOT(quit()) );connect() is perhaps the most central feature of TQt. Note that connect() is a static function in TQObject. Do not confuse it @@ -97,8 +97,8 @@ that inherit TQObject, directly or indirectly). Every TQt object can have both signals (to send messages) and slots (to receive messages). All widgets are TQt objects. They inherit TQWidget which in turn inherits TQObject. -
Here, the clicked() signal of tquit is connected to the tquit() slot of a, so that when the button is clicked, the -application tquits. +
Here, the clicked() signal of quit is connected to the quit() slot of a, so that when the button is clicked, the +application quits.
The Signals and Slots documentation describes this topic in detail.
Behavior @@ -111,7 +111,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 TQPushButton you can connect to tquit? +
Are there any other signals in TQPushButton you can connect to quit? Hint: The TQPushButton inherits most of its behavior from TQButton.
You're now ready for Chapter 3.
[Previous tutorial] diff --git a/doc/html/tutorial1-03.html b/doc/html/tutorial1-03.html index b7bb972d..b760c089 100644 --- a/doc/html/tutorial1-03.html +++ b/doc/html/tutorial1-03.html @@ -53,10 +53,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(); @@ -80,7 +80,7 @@ space according to each child's TQWidget::size
box.resize( 200, 120 );We set its width to 200 pixels and the height to 120 pixels. -
TQPushButton tquit( "Quit", &box ); +
TQPushButton quit( "Quit", &box );A child is born.
This TQPushButton is created with both a text ("Quit") and a parent diff --git a/doc/html/tutorial1-04.html b/doc/html/tutorial1-04.html index 005aa983..820cc797 100644 --- a/doc/html/tutorial1-04.html +++ b/doc/html/tutorial1-04.html @@ -59,11 +59,11 @@ public: 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()) ); } @@ -116,15 +116,15 @@ constructor.
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. -
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 ) );Here we create and set up a child widget of this widget (the new widget's -parent is this) which has the widget name "tquit". The widget +parent is 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 tquit is a local variable in the constructor. MyWidget +
Note that quit 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.)
The setGeometry() call does the same as move() and resize() did in the previous chapters. -
connect( tquit, SIGNAL(clicked()), qApp, SLOT(tquit()) ); +
connect( quit, SIGNAL(clicked()), qApp, SLOT(quit()) ); }Because the MyWidget class doesn't know about the application object, it diff --git a/doc/html/tutorial1-05.html b/doc/html/tutorial1-05.html index 8aabed70..23944871 100644 --- a/doc/html/tutorial1-05.html +++ b/doc/html/tutorial1-05.html @@ -59,10 +59,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" ); @@ -152,7 +152,7 @@ makefile and build the application.) buttons to set the number base.
You can also change the slider's range.
Perhaps it would have been better to use TQSpinBox 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 Chapter 6.
[Previous tutorial] [Next tutorial] diff --git a/doc/html/tutorial1-06.html b/doc/html/tutorial1-06.html index 96d8cb28..e85f34bf 100644 --- a/doc/html/tutorial1-06.html +++ b/doc/html/tutorial1-06.html @@ -77,10 +77,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 ); @@ -136,10 +136,10 @@ is renamed.
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()) );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 diff --git a/doc/html/tutorial1-08.html b/doc/html/tutorial1-08.html index afb3e339..bd65a26d 100644 --- a/doc/html/tutorial1-08.html +++ b/doc/html/tutorial1-08.html @@ -221,7 +221,7 @@ manage the children of any widget.
As the comment indicates, we create a two-by-two array with ten pixel borders. (The constructor for TQGridLayout can be a little cryptic, so it's good to put in such comments.) -
grid->addWidget( tquit, 0, 0 ); +
grid->addWidget( quit, 0, 0 );We add the Quit button in the top-left cell of the grid: 0, 0.
grid->addWidget( angle, 1, 0, TQt::AlignTop ); diff --git a/doc/html/tutorial1-10.html b/doc/html/tutorial1-10.html index a5793690..e25f0c19 100644 --- a/doc/html/tutorial1-10.html +++ b/doc/html/tutorial1-10.html @@ -119,7 +119,7 @@ the drawing a little bit. emit forceChanged( f ); }-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.
void CannonField::paintEvent( TQPaintEvent *e ) diff --git a/doc/html/tutorial1-14.html b/doc/html/tutorial1-14.html index b155373e..957e9983 100644 --- a/doc/html/tutorial1-14.html +++ b/doc/html/tutorial1-14.html @@ -221,12 +221,12 @@ keys. Note that an accelerator is a child of a widget and will be destroyed when that widget is destroyed. TQAccel is 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 both keys, we make both Enter and Return invoke fire().
accel->connectItem( accel->insertItem( CTRL+Key_Q ), - qApp, SLOT(tquit()) ); + qApp, SLOT(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). @@ -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 TQt namespace class.
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 );diff --git a/doc/html/tutorial2-05.html b/doc/html/tutorial2-05.html index 9f9bbec0..93195a32 100644 --- a/doc/html/tutorial2-05.html +++ b/doc/html/tutorial2-05.html @@ -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. -Each action is represented by a private slot, e.g. fileNew(), optionsSetData(), etc. We also have tquite a number of private +
Each action is represented by a private slot, e.g. fileNew(), 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.
For the sake of convenience and compilation speed the chart form's @@ -503,7 +503,7 @@ item id. } }
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.
void ChartForm::saveOptions() diff --git a/doc/html/tutorial2-08.html b/doc/html/tutorial2-08.html index 77719f58..b8dbfd86 100644 --- a/doc/html/tutorial2-08.html +++ b/doc/html/tutorial2-08.html @@ -106,7 +106,7 @@ member functions.We set a caption for the dialog and resize it.
tableButtonBox = new TQVBoxLayout( this, 11, 6, "table button box layout" );-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.
table = new TQTable( this, "data table" ); diff --git a/doc/html/xml.html b/doc/html/xml.html index 2167b785..688f5a0f 100644 --- a/doc/html/xml.html +++ b/doc/html/xml.html @@ -527,7 +527,7 @@ attribute from the http://trolltech.com/fnord/ namespace to book:au prefix fnord that is declared in the book:author element.Clearly the 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:
- attributes without a prefix don't belong to any XML namespace at all, not even to the default namespace; diff --git a/doc/i18n.doc b/doc/i18n.doc index d9b7a7ef..76646402 100644 --- a/doc/i18n.doc +++ b/doc/i18n.doc @@ -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 diff --git a/doc/man/man3/qaccel.3qt b/doc/man/man3/qaccel.3qt index 07e8f3ee..9c5e23e5 100644 --- a/doc/man/man3/qaccel.3qt +++ b/doc/man/man3/qaccel.3qt @@ -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 diff --git a/doc/man/man3/qapplication.3qt b/doc/man/man3/qapplication.3qt index d76b7561..88db7b84 100644 --- a/doc/man/man3/qapplication.3qt +++ b/doc/man/man3/qapplication.3qt @@ -466,7 +466,7 @@ Since it also deals with common command line arguments, it is usually a good ide .PP
.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 @@ -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. diff --git a/doc/man/man3/qcdestyle.3qt b/doc/man/man3/qcdestyle.3qt index 5835be2b..9f5b92f8 100644 --- a/doc/man/man3/qcdestyle.3qt +++ b/doc/man/man3/qcdestyle.3qt @@ -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 diff --git a/doc/man/man3/qcloseevent.3qt b/doc/man/man3/qcloseevent.3qt index 03ed1172..1032d13a 100644 --- a/doc/man/man3/qcloseevent.3qt +++ b/doc/man/man3/qcloseevent.3qt @@ -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. diff --git a/doc/man/man3/qcolorgroup.3qt b/doc/man/man3/qcolorgroup.3qt index 0bde5506..de2e82f8 100644 --- a/doc/man/man3/qcolorgroup.3qt +++ b/doc/man/man3/qcolorgroup.3qt @@ -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:.ce 1 diff --git a/doc/man/man3/qdialog.3qt b/doc/man/man3/qdialog.3qt index 31f3911b..7d23207f 100644 --- a/doc/man/man3/qdialog.3qt +++ b/doc/man/man3/qdialog.3qt @@ -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 diff --git a/doc/man/man3/qeventloop.3qt b/doc/man/man3/qeventloop.3qt index a7210002..cf7a0fee 100644 --- a/doc/man/man3/qeventloop.3qt +++ b/doc/man/man3/qeventloop.3qt @@ -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" diff --git a/doc/man/man3/qfont.3qt b/doc/man/man3/qfont.3qt index 962ba612..d3c413ff 100644 --- a/doc/man/man3/qfont.3qt +++ b/doc/man/man3/qfont.3qt @@ -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 diff --git a/doc/man/man3/qglcontext.3qt b/doc/man/man3/qglcontext.3qt index d90d57f6..13ff2fbc 100644 --- a/doc/man/man3/qglcontext.3qt +++ b/doc/man/man3/qglcontext.3qt @@ -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" diff --git a/doc/man/man3/qhebrewcodec.3qt b/doc/man/man3/qhebrewcodec.3qt index 63a39d67..e07d93ef 100644 --- a/doc/man/man3/qhebrewcodec.3qt +++ b/doc/man/man3/qhebrewcodec.3qt @@ -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 diff --git a/doc/man/man3/qlistbox.3qt b/doc/man/man3/qlistbox.3qt index 9d842ca1..7608d627 100644 --- a/doc/man/man3/qlistbox.3qt +++ b/doc/man/man3/qlistbox.3qt @@ -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 diff --git a/doc/man/man3/qmenubar.3qt b/doc/man/man3/qmenubar.3qt index e1308a6b..f31b2d3e 100644 --- a/doc/man/man3/qmenubar.3qt +++ b/doc/man/man3/qmenubar.3qt @@ -218,7 +218,7 @@ Qt/Mac also provides a menubar merging feature to make QMenuBar conform more clo .PP .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 @@ -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 diff --git a/doc/man/man3/qmenudata.3qt b/doc/man/man3/qmenudata.3qt index 9199b1b0..306f5d4f 100644 --- a/doc/man/man3/qmenudata.3qt +++ b/doc/man/man3/qmenudata.3qt @@ -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 diff --git a/doc/man/man3/qnetworkprotocol.3qt b/doc/man/man3/qnetworkprotocol.3qt index 6760cc76..3d1a1519 100644 --- a/doc/man/man3/qnetworkprotocol.3qt +++ b/doc/man/man3/qnetworkprotocol.3qt @@ -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 diff --git a/doc/man/man3/qobject.3qt b/doc/man/man3/qobject.3qt index 8dcb7c82..e1d36547 100644 --- a/doc/man/man3/qobject.3qt +++ b/doc/man/man3/qobject.3qt @@ -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 diff --git a/doc/man/man3/qpopupmenu.3qt b/doc/man/man3/qpopupmenu.3qt index a20cd7c5..10d3fff5 100644 --- a/doc/man/man3/qpopupmenu.3qt +++ b/doc/man/man3/qpopupmenu.3qt @@ -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 diff --git a/doc/man/man3/qptrqueue.3qt b/doc/man/man3/qptrqueue.3qt index 66fc1a6a..592506e0 100644 --- a/doc/man/man3/qptrqueue.3qt +++ b/doc/man/man3/qptrqueue.3qt @@ -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 diff --git a/doc/man/man3/qscrollview.3qt b/doc/man/man3/qscrollview.3qt index 611a870e..617341f1 100644 --- a/doc/man/man3/qscrollview.3qt +++ b/doc/man/man3/qscrollview.3qt @@ -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" diff --git a/doc/man/man3/qsessionmanager.3qt b/doc/man/man3/qsessionmanager.3qt index db170b1f..5a7eb0e7 100644 --- a/doc/man/man3/qsessionmanager.3qt +++ b/doc/man/man3/qsessionmanager.3qt @@ -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 diff --git a/doc/man/man3/qsocket.3qt b/doc/man/man3/qsocket.3qt index 7dd6273b..65072178 100644 --- a/doc/man/man3/qsocket.3qt +++ b/doc/man/man3/qsocket.3qt @@ -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 diff --git a/doc/man/man3/qsocketdevice.3qt b/doc/man/man3/qsocketdevice.3qt index 7814ce3a..d18322ee 100644 --- a/doc/man/man3/qsocketdevice.3qt +++ b/doc/man/man3/qsocketdevice.3qt @@ -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 diff --git a/doc/man/man3/qtimer.3qt b/doc/man/man3/qtimer.3qt index 50cb9a85..b4b492bc 100644 --- a/doc/man/man3/qtimer.3qt +++ b/doc/man/man3/qtimer.3qt @@ -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 diff --git a/doc/man/man3/qtooltip.3qt b/doc/man/man3/qtooltip.3qt index 2511f9ed..30be67b7 100644 --- a/doc/man/man3/qtooltip.3qt +++ b/doc/man/man3/qtooltip.3qt @@ -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 diff --git a/doc/man/man3/qwidget.3qt b/doc/man/man3/qwidget.3qt index 007f06f2..2da51743 100644 --- a/doc/man/man3/qwidget.3qt +++ b/doc/man/man3/qwidget.3qt @@ -1028,7 +1028,7 @@ Every widget's constructor accepts two or three standard arguments:.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 diff --git a/doc/man/man3/qxmlsimplereader.3qt b/doc/man/man3/qxmlsimplereader.3qt index 2c4f5253..5b1d6d72 100644 --- a/doc/man/man3/qxmlsimplereader.3qt +++ b/doc/man/man3/qxmlsimplereader.3qt @@ -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 diff --git a/doc/misc.doc b/doc/misc.doc index bae26156..cb7c84b3 100644 --- a/doc/misc.doc +++ b/doc/misc.doc @@ -978,7 +978,7 @@ OS 8 addendum.\endlink The Microsoft Windows User Experience, 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 diff --git a/doc/network.doc b/doc/network.doc index 7b36384d..5b2eaec5 100644 --- a/doc/network.doc +++ b/doc/network.doc @@ -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: diff --git a/doc/qptrqueue.doc b/doc/qptrqueue.doc index 40a1f52d..f67f6d21 100644 --- a/doc/qptrqueue.doc +++ b/doc/qptrqueue.doc @@ -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 diff --git a/doc/signalsandslots.doc b/doc/signalsandslots.doc index 3762f337..fc46ce9e 100644 --- a/doc/signalsandslots.doc +++ b/doc/signalsandslots.doc @@ -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 diff --git a/doc/tutorial.doc b/doc/tutorial.doc index 2220e876..ad56d271 100644 --- a/doc/tutorial.doc +++ b/doc/tutorial.doc @@ -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). diff --git a/doc/tutorial2.doc b/doc/tutorial2.doc index 9d68e51f..91099788 100644 --- a/doc/tutorial2.doc +++ b/doc/tutorial2.doc @@ -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. diff --git a/doc/xml.doc b/doc/xml.doc index b5f63c5c..30f4d120 100644 --- a/doc/xml.doc +++ b/doc/xml.doc @@ -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; diff --git a/examples/README b/examples/README index eaf566bf..e8c0a570 100644 --- a/examples/README +++ b/examples/README @@ -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. diff --git a/examples/action/application.cpp b/examples/action/application.cpp index 23a3a875..9cea0a45 100644 --- a/examples/action/application.cpp +++ b/examples/action/application.cpp @@ -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() ) ); diff --git a/examples/action/main.cpp b/examples/action/main.cpp index 21521163..3c632611 100644 --- a/examples/action/main.cpp +++ b/examples/action/main.cpp @@ -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(); } diff --git a/examples/addressbook/main.cpp b/examples/addressbook/main.cpp index 33b69833..c1df2139 100644 --- a/examples/addressbook/main.cpp +++ b/examples/addressbook/main.cpp @@ -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; diff --git a/examples/addressbook/mainwindow.cpp b/examples/addressbook/mainwindow.cpp index e6f705b5..4d2d1fdd 100644 --- a/examples/addressbook/mainwindow.cpp +++ b/examples/addressbook/mainwindow.cpp @@ -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() diff --git a/examples/application/main.cpp b/examples/application/main.cpp index f6a4ae3f..357d448e 100644 --- a/examples/application/main.cpp +++ b/examples/application/main.cpp @@ -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(); } diff --git a/examples/canvas/canvas.cpp b/examples/canvas/canvas.cpp index 0be87285..5dfd8e0a 100644 --- a/examples/canvas/canvas.cpp +++ b/examples/canvas/canvas.cpp @@ -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 ); diff --git a/examples/canvas/main.cpp b/examples/canvas/main.cpp index 3666ae95..65e8a5d0 100644 --- a/examples/canvas/main.cpp +++ b/examples/canvas/main.cpp @@ -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(); } diff --git a/examples/chart/chartform.cpp b/examples/chart/chartform.cpp index 4317b8f0..43b26af7 100644 --- a/examples/chart/chartform.cpp +++ b/examples/chart/chartform.cpp @@ -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() ) ); diff --git a/examples/customlayout/main.cpp b/examples/customlayout/main.cpp index 694fcf8f..4f2d15e1 100644 --- a/examples/customlayout/main.cpp +++ b/examples/customlayout/main.cpp @@ -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 ); diff --git a/examples/demo/textdrawing/textedit.cpp b/examples/demo/textdrawing/textedit.cpp index 57949a7a..515523b4 100644 --- a/examples/demo/textdrawing/textedit.cpp +++ b/examples/demo/textdrawing/textedit.cpp @@ -316,7 +316,7 @@ void TextEdit::fileClose() void TextEdit::fileExit() { - qApp->tquit(); + qApp->quit(); } void TextEdit::editUndo() diff --git a/examples/distributor/main.cpp b/examples/distributor/main.cpp index 2a8a30cb..9813afd8 100644 --- a/examples/distributor/main.cpp +++ b/examples/distributor/main.cpp @@ -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(); } diff --git a/examples/dragdrop/main.cpp b/examples/dragdrop/main.cpp index 539c8251..91676c56 100644 --- a/examples/dragdrop/main.cpp +++ b/examples/dragdrop/main.cpp @@ -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(); } diff --git a/examples/extension/main.cpp b/examples/extension/main.cpp index 608ef06a..4266b807 100644 --- a/examples/extension/main.cpp +++ b/examples/extension/main.cpp @@ -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(); } diff --git a/examples/extension/mainform.ui b/examples/extension/mainform.ui index db156785..6afd73f4 100644 --- a/examples/extension/mainform.ui +++ b/examples/extension/mainform.ui @@ -29,7 +29,7 @@
- tquitPushButton +quitPushButton &Quit @@ -45,10 +45,10 @@optionsDlg() - tquitPushButton +quitPushButton clicked() MainForm -tquit() +quit() @@ -64,7 +64,7 @@ optionsDlg() -tquit() +quit() init() diff --git a/examples/extension/mainform.ui.h b/examples/extension/mainform.ui.h index 82fc700d..c531b997 100644 --- a/examples/extension/mainform.ui.h +++ b/examples/extension/mainform.ui.h @@ -40,7 +40,7 @@ void MainForm::optionsDlg() } -void MainForm::tquit() +void MainForm::quit() { TQApplication::exit( 0 ); } diff --git a/examples/hello/main.cpp b/examples/hello/main.cpp index 45e9e58e..d8e401b3 100644 --- a/examples/hello/main.cpp +++ b/examples/hello/main.cpp @@ -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 ); diff --git a/examples/helpdemo/doc/manual.html b/examples/helpdemo/doc/manual.html index 8410a99d..7816c7f0 100644 --- a/examples/helpdemo/doc/manual.html +++ b/examples/helpdemo/doc/manual.html @@ -60,6 +60,6 @@
-Click this button to tquit this example application.
+Click this button to quit this example application.