diff options
Diffstat (limited to 'tqtinterface/qt4/src/dialogs/tqmessagebox.h')
-rw-r--r-- | tqtinterface/qt4/src/dialogs/tqmessagebox.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/tqtinterface/qt4/src/dialogs/tqmessagebox.h b/tqtinterface/qt4/src/dialogs/tqmessagebox.h index c567814..f9b0ac9 100644 --- a/tqtinterface/qt4/src/dialogs/tqmessagebox.h +++ b/tqtinterface/qt4/src/dialogs/tqmessagebox.h @@ -65,10 +65,10 @@ public: enum Icon { NoIcon = 0, Information = 1, Warning = 2, Critical = 3, Question = 4 }; - TQMessageBox( TQWidget* tqparent=0, const char* name=0 ); + TQMessageBox( TQWidget* parent=0, const char* name=0 ); TQMessageBox( const TQString& caption, const TQString &text, Icon icon, int button0, int button1, int button2, - TQWidget* tqparent=0, const char* name=0, bool modal=TRUE, + TQWidget* parent=0, const char* name=0, bool modal=TRUE, WFlags f=(WFlags)TQt::WStyle_DialogBorder ); ~TQMessageBox(); @@ -76,10 +76,10 @@ public: Retry = 6, Ignore = 7, YesAll = 8, NoAll = 9, ButtonMask = 0xff, Default = 0x100, Escape = 0x200, FlagMask = 0x300 }; - static int information( TQWidget *tqparent, const TQString &caption, + static int information( TQWidget *parent, const TQString &caption, const TQString& text, int button0, int button1=0, int button2=0 ); - static int information( TQWidget *tqparent, const TQString &caption, + static int information( TQWidget *parent, const TQString &caption, const TQString& text, const TQString& button0Text = TQString::null, const TQString& button1Text = TQString::null, @@ -87,10 +87,10 @@ public: int defaultButtonNumber = 0, int escapeButtonNumber = -1 ); - static int question( TQWidget *tqparent, const TQString &caption, + static int question( TQWidget *parent, const TQString &caption, const TQString& text, int button0, int button1=0, int button2=0 ); - static int question( TQWidget *tqparent, const TQString &caption, + static int question( TQWidget *parent, const TQString &caption, const TQString& text, const TQString& button0Text = TQString::null, const TQString& button1Text = TQString::null, @@ -98,10 +98,10 @@ public: int defaultButtonNumber = 0, int escapeButtonNumber = -1 ); - static int warning( TQWidget *tqparent, const TQString &caption, + static int warning( TQWidget *parent, const TQString &caption, const TQString& text, int button0, int button1, int button2=0 ); - static int warning( TQWidget *tqparent, const TQString &caption, + static int warning( TQWidget *parent, const TQString &caption, const TQString& text, const TQString& button0Text = TQString::null, const TQString& button1Text = TQString::null, @@ -109,10 +109,10 @@ public: int defaultButtonNumber = 0, int escapeButtonNumber = -1 ); - static int critical( TQWidget *tqparent, const TQString &caption, + static int critical( TQWidget *parent, const TQString &caption, const TQString& text, int button0, int button1, int button2=0 ); - static int critical( TQWidget *tqparent, const TQString &caption, + static int critical( TQWidget *parent, const TQString &caption, const TQString& text, const TQString& button0Text = TQString::null, const TQString& button1Text = TQString::null, @@ -120,18 +120,18 @@ public: int defaultButtonNumber = 0, int escapeButtonNumber = -1 ); - static void about( TQWidget *tqparent, const TQString &caption, + static void about( TQWidget *parent, const TQString &caption, const TQString& text ); - static void aboutTQt( TQWidget *tqparent, + static void aboutTQt( TQWidget *parent, const TQString& caption=TQString::null ); /* OBSOLETE */ static int message( const TQString &caption, const TQString& text, const TQString& buttonText=TQString::null, - TQWidget *tqparent=0, const char * =0 ) { - return TQMessageBox::information( tqparent, caption, text, + TQWidget *parent=0, const char * =0 ) { + return TQMessageBox::information( parent, caption, text, buttonText.isEmpty() ? tqtr("OK") : buttonText ) == 0; } @@ -141,8 +141,8 @@ public: const TQString& text, const TQString& yesButtonText=TQString::null, const TQString& noButtonText=TQString::null, - TQWidget *tqparent=0, const char * = 0 ) { - return TQMessageBox::information( tqparent, caption, text, + TQWidget *parent=0, const char * = 0 ) { + return TQMessageBox::information( parent, caption, text, yesButtonText.isEmpty() ? tqtr("OK") : yesButtonText, noButtonText ) == 0; |