summaryrefslogtreecommitdiffstats
path: root/src/kernel/qapplication.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-11-14 22:33:41 -0600
committerTimothy Pearson <[email protected]>2011-11-14 22:33:41 -0600
commit0f92dd542b65bc910caaf190b7c623aa5158c86a (patch)
tree120ab7e08fa0ffc354ef58d100f79a33c92aa6e6 /src/kernel/qapplication.cpp
parentd796c9dd933ab96ec83b9a634feedd5d32e1ba3f (diff)
downloadtqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.tar.gz
tqt3-0f92dd542b65bc910caaf190b7c623aa5158c86a.zip
Fix native TQt3 accidental conversion to tquit
Diffstat (limited to 'src/kernel/qapplication.cpp')
-rw-r--r--src/kernel/qapplication.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/kernel/qapplication.cpp b/src/kernel/qapplication.cpp
index 437361f88..6c0bde41e 100644
--- a/src/kernel/qapplication.cpp
+++ b/src/kernel/qapplication.cpp
@@ -188,7 +188,7 @@
enter_loop(),
exit_loop(),
exit(),
- tquit().
+ quit().
sendEvent(),
postEvent(),
sendPostedEvents(),
@@ -952,8 +952,8 @@ void TQApplication::initialize( int argc, char **argv )
app_argc = argc;
app_argv = argv;
- tquit_now = FALSE;
- tquit_code = 0;
+ quit_now = FALSE;
+ quit_code = 0;
TQWidget::createMapper(); // create widget mapper
#ifndef QT_NO_PALETTE
(void) palette(); // trigger creation of application palette
@@ -2130,20 +2130,20 @@ TQFontMetrics TQApplication::fontMetrics()
Tells the application to exit with return code 0 (success).
Equivalent to calling TQApplication::exit( 0 ).
- It's common to connect the lastWindowClosed() signal to tquit(), and
+ It's common to connect the lastWindowClosed() signal to quit(), and
you also often connect e.g. TQButton::clicked() or signals in
TQAction, TQPopupMenu or TQMenuBar to it.
Example:
\code
- TQPushButton *tquitButton = new TQPushButton( "Quit" );
- connect( tquitButton, SIGNAL(clicked()), qApp, SLOT(tquit()) );
+ TQPushButton *quitButton = new TQPushButton( "Quit" );
+ connect( quitButton, SIGNAL(clicked()), qApp, SLOT(quit()) );
\endcode
\sa exit() aboutToQuit() lastWindowClosed() TQAction
*/
-void TQApplication::tquit()
+void TQApplication::quit()
{
TQApplication::exit( 0 );
}
@@ -2161,15 +2161,15 @@ void TQApplication::tquit()
TQPopupMenu* file = new TQPopupMenu( this );
file->insertItem( "&Quit", qApp, SLOT(closeAllWindows()), CTRL+Key_Q );
- // when the last window is closed, the application should tquit
- connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( tquit() ) );
+ // when the last window is closed, the application should quit
+ connect( qApp, SIGNAL( lastWindowClosed() ), qApp, SLOT( quit() ) );
\endcode
The windows are closed in random order, until one window does not
accept the close event.
\sa TQWidget::close(), TQWidget::closeEvent(), lastWindowClosed(),
- tquit(), topLevelWidgets(), TQWidget::isTopLevel()
+ quit(), topLevelWidgets(), TQWidget::isTopLevel()
*/
void TQApplication::closeAllWindows()
@@ -2219,7 +2219,7 @@ void TQApplication::aboutTQt()
top level window.
The signal is very useful when your application has many top level
- widgets but no main widget. You can then connect it to the tquit()
+ widgets but no main widget. You can then connect it to the quit()
slot.
For convenience, this signal is \e not emitted for transient top level
@@ -2231,16 +2231,16 @@ void TQApplication::aboutTQt()
/*!
\fn void TQApplication::aboutToQuit()
- This signal is emitted when the application is about to tquit the
+ This signal is emitted when the application is about to quit the
main event loop, e.g. when the event loop level drops to zero.
- This may happen either after a call to tquit() from inside the
+ This may happen either after a call to quit() from inside the
application or when the users shuts down the entire desktop session.
The signal is particularly useful if your application has to do some
last-second cleanup. Note that no user interaction is possible in
this state.
- \sa tquit()
+ \sa quit()
*/
@@ -2551,7 +2551,7 @@ bool TQApplication::event( TQEvent *e )
if(ce->isAccepted())
return TRUE;
} else if (e->type() == TQEvent::Quit) {
- tquit();
+ quit();
return TRUE;
}
return TQObject::event(e);
@@ -2738,7 +2738,7 @@ TQEventLoop *TQApplication::eventLoop()
/*!
Enters the main event loop and waits until exit() is called or the
main widget is destroyed, and returns the value that was set to
- exit() (which is 0 if exit() is called via tquit()).
+ exit() (which is 0 if exit() is called via quit()).
It is necessary to call this function to start event handling. The
main event loop receives events from the window system and
@@ -2754,7 +2754,7 @@ TQEventLoop *TQApplication::eventLoop()
TQTimer with 0 timeout. More advanced idle processing schemes can
be achieved using processEvents().
- \sa tquit(), exit(), processEvents(), setMainWidget()
+ \sa quit(), exit(), processEvents(), setMainWidget()
*/
int TQApplication::exec()
{
@@ -2775,7 +2775,7 @@ int TQApplication::exec()
function \e does return to the caller -- it is event processing that
stops.
- \sa tquit(), exec()
+ \sa quit(), exec()
*/
void TQApplication::exit( int retcode )
{
@@ -4176,7 +4176,7 @@ bool TQApplication::reverseLayout()
\value RestartAnyway the application wants to be started at the
start of the next session, no matter what. (This is useful for
- utilities that run just after startup and then tquit.)
+ utilities that run just after startup and then quit.)
\value RestartImmediately the application wants to be started
immediately whenever it is not running.