summaryrefslogtreecommitdiffstats
path: root/src/dialogs/qdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs/qdialog.cpp')
-rw-r--r--src/dialogs/qdialog.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/dialogs/qdialog.cpp b/src/dialogs/qdialog.cpp
index 1ef49e0c0..a25ad609f 100644
--- a/src/dialogs/qdialog.cpp
+++ b/src/dialogs/qdialog.cpp
@@ -359,15 +359,15 @@ void TQDialog::hideSpecial()
TQPushButton *pb;
while ( (pb = (TQPushButton*)it.current()) ) {
if ( !showOK &&
- pb->text() == qApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Ok] ) ) {
+ pb->text() == tqApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Ok] ) ) {
pb->hide();
showOK = TRUE;
} else if ( !showX &&
- pb->text() == qApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Cancel] ) ) {
+ pb->text() == tqApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Cancel] ) ) {
pb->hide();
showX = TRUE;
} else if ( !showQ &&
- pb->text() == qApp->tr("Help") ) {
+ pb->text() == tqApp->tr("Help") ) {
pb->hide();
showQ = TRUE;
}
@@ -432,7 +432,7 @@ int TQDialog::exec()
show();
in_loop = TRUE;
- qApp->enter_loop();
+ tqApp->enter_loop();
if ( !wasShowModal )
clearWFlags( WShowModal );
@@ -465,14 +465,14 @@ void TQDialog::done( int r )
setResult( r );
// emulate TQWidget::close()
- bool isMain = qApp->mainWidget() == this;
+ bool isMain = tqApp->mainWidget() == this;
bool checkLastWindowClosed = isTopLevel() && !isPopup();
if ( checkLastWindowClosed
- && qApp->receivers(SIGNAL(lastWindowClosed())) ) {
+ && tqApp->receivers(SIGNAL(lastWindowClosed())) ) {
/* if there is no non-withdrawn top level window left (except
the desktop, popups, or dialogs with parents), we emit the
lastWindowClosed signal */
- TQWidgetList *list = qApp->topLevelWidgets();
+ TQWidgetList *list = tqApp->topLevelWidgets();
TQWidget *widget = list->first();
while ( widget ) {
if ( !widget->isHidden()
@@ -484,10 +484,10 @@ void TQDialog::done( int r )
}
delete list;
if ( widget == 0 )
- emit qApp->lastWindowClosed();
+ emit tqApp->lastWindowClosed();
}
if ( isMain )
- qApp->quit();
+ tqApp->quit();
else if ( testWFlags(WDestructiveClose) ) {
clearWFlags(WDestructiveClose);
deleteLater();
@@ -644,8 +644,8 @@ bool TQDialog::event( TQEvent *e )
{
TQString bName =
(e->type() == TQEvent::OkRequest)
- ? qApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Ok] )
- : qApp->tr( "Help" );
+ ? tqApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Ok] )
+ : tqApp->tr( "Help" );
TQObjectList *list = queryList( "TQPushButton" );
TQObjectListIt it( *list );
@@ -712,10 +712,10 @@ void TQDialog::show()
#if defined(Q_WS_X11)
if (!parentWidget() && testWFlags(WShowModal)
- && qApp->mainWidget() && qApp->mainWidget()->isVisible()
- && !qApp->mainWidget()->isMinimized()) {
+ && tqApp->mainWidget() && tqApp->mainWidget()->isVisible()
+ && !tqApp->mainWidget()->isMinimized()) {
// make sure the transient for hint is set properly for modal dialogs
- x11SetWindowTransient( qApp->mainWidget());
+ x11SetWindowTransient( tqApp->mainWidget());
}
#endif // Q_WS_X11
@@ -900,7 +900,7 @@ void TQDialog::hide()
TQWidget::hide();
if ( in_loop ) {
in_loop = FALSE;
- qApp->exit_loop();
+ tqApp->exit_loop();
}
}