diff options
Diffstat (limited to 'src/dialogs/tqmessagebox.cpp')
| -rw-r--r-- | src/dialogs/tqmessagebox.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/dialogs/tqmessagebox.cpp b/src/dialogs/tqmessagebox.cpp index b90840cf7..436194325 100644 --- a/src/dialogs/tqmessagebox.cpp +++ b/src/dialogs/tqmessagebox.cpp @@ -483,7 +483,7 @@ const char * mb_texts[] = { */ TQMessageBox::TQMessageBox( TQWidget *parent, const char *name ) - : TQDialog( parent, name, TRUE, WStyle_Customize | WStyle_DialogBorder | WStyle_Title | WStyle_SysMenu ) + : TQDialog( parent, name, true, WStyle_Customize | WStyle_DialogBorder | WStyle_Title | WStyle_SysMenu ) { init( Ok, 0, 0 ); } @@ -545,7 +545,7 @@ TQMessageBox::TQMessageBox( TQWidget *parent, const char *name ) modal dialog box. If \a parent is a widget, the message box becomes modal relative to \a parent. - If \a modal is TRUE the message box is modal; otherwise it + If \a modal is true the message box is modal; otherwise it is modeless. The \a parent, \a name, \a modal, and \a f arguments are passed to @@ -674,10 +674,10 @@ void TQMessageBox::init( int button0, int button1, int button2 ) tr(mb_texts[mbd->button[i]]), this, buttonName ); if ( mbd->defButton == i ) { - mbd->pb[i]->setDefault( TRUE ); + mbd->pb[i]->setDefault( true ); mbd->pb[i]->setFocus(); } - mbd->pb[i]->setAutoDefault( TRUE ); + mbd->pb[i]->setAutoDefault( true ); mbd->pb[i]->setFocusPolicy( TQWidget::StrongFocus ); connect( mbd->pb[i], TQ_SIGNAL(clicked()), TQ_SLOT(buttonClicked()) ); } @@ -1116,7 +1116,7 @@ int TQMessageBox::information( TQWidget *parent, #endif TQMessageBox *mb = new TQMessageBox( caption, text, Information, button0, button1, button2, - parent, "qt_msgbox_information", TRUE, + parent, "qt_msgbox_information", true, WDestructiveClose); TQ_CHECK_PTR( mb ); return mb->exec(); @@ -1167,7 +1167,7 @@ int TQMessageBox::question( TQWidget *parent, #endif TQMessageBox *mb = new TQMessageBox( caption, text, Question, button0, button1, button2, - parent, "qt_msgbox_information", TRUE, + parent, "qt_msgbox_information", true, WDestructiveClose); TQ_CHECK_PTR( mb ); return mb->exec(); @@ -1219,7 +1219,7 @@ int TQMessageBox::warning( TQWidget *parent, #endif TQMessageBox *mb = new TQMessageBox( caption, text, Warning, button0, button1, button2, - parent, "qt_msgbox_warning", TRUE, + parent, "qt_msgbox_warning", true, WDestructiveClose); TQ_CHECK_PTR( mb ); return mb->exec(); @@ -1271,7 +1271,7 @@ int TQMessageBox::critical( TQWidget *parent, #endif TQMessageBox *mb = new TQMessageBox( caption, text, Critical, button0, button1, button2, - parent, "qt_msgbox_critical", TRUE, + parent, "qt_msgbox_critical", true, WDestructiveClose); TQ_CHECK_PTR( mb ); return mb->exec(); @@ -1302,7 +1302,7 @@ void TQMessageBox::about( TQWidget *parent, const TQString &caption, TQMessageBox *mb = new TQMessageBox( caption, text, Information, Ok + Default, 0, 0, - parent, "qt_msgbox_simple_about_box", TRUE, + parent, "qt_msgbox_simple_about_box", true, WDestructiveClose); TQ_CHECK_PTR( mb ); #ifndef TQT_NO_WIDGET_TOPEXTRA @@ -1359,7 +1359,7 @@ static int textBox( TQWidget *parent, TQMessageBox::Icon severity, TQMessageBox *mb = new TQMessageBox( caption, text, severity, b[0], b[1], b[2], - parent, "qt_msgbox_information", TRUE, + parent, "qt_msgbox_information", true, TQt::WDestructiveClose); TQ_CHECK_PTR( mb ); if ( button0Text.isEmpty() ) @@ -1616,9 +1616,9 @@ void TQMessageBox::aboutTQt( TQWidget *parent, const TQString &caption ) #endif mb->setButtonText( 0, tr("OK") ); if ( mb->mbd && mb->mbd->pb[0] ) { - mb->mbd->pb[0]->setAutoDefault( TRUE ); + mb->mbd->pb[0]->setAutoDefault( true ); mb->mbd->pb[0]->setFocusPolicy( TQWidget::StrongFocus ); - mb->mbd->pb[0]->setDefault( TRUE ); + mb->mbd->pb[0]->setDefault( true ); mb->mbd->pb[0]->setFocus(); } mb->exec(); |
