diff options
Diffstat (limited to 'src/dialogs/qmessagebox.cpp')
| -rw-r--r-- | src/dialogs/qmessagebox.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/dialogs/qmessagebox.cpp b/src/dialogs/qmessagebox.cpp index 929be411a..5ddcb7506 100644 --- a/src/dialogs/qmessagebox.cpp +++ b/src/dialogs/qmessagebox.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 @@ -676,10 +676,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()) ); } @@ -1118,7 +1118,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(); @@ -1169,7 +1169,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(); @@ -1221,7 +1221,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(); @@ -1273,7 +1273,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(); @@ -1304,7 +1304,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 @@ -1361,7 +1361,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() ) @@ -1618,9 +1618,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(); |
