diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 22:19:39 +0000 |
commit | 625904bd3097f9749450428904ca14ff2531824d (patch) | |
tree | a45c43d5de71cb720078fa1272a4339815a919be /kregexpeditor/qt-only | |
parent | 6335dc55802871b5a43492f217b6edbb420204c4 (diff) | |
download | tdeutils-625904bd3097f9749450428904ca14ff2531824d.tar.gz tdeutils-625904bd3097f9749450428904ca14ff2531824d.zip |
rename the following methods:
tqparent parent
tqmask mask
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kregexpeditor/qt-only')
-rw-r--r-- | kregexpeditor/qt-only/compat.cpp | 20 | ||||
-rw-r--r-- | kregexpeditor/qt-only/compat.h | 10 |
2 files changed, 15 insertions, 15 deletions
diff --git a/kregexpeditor/qt-only/compat.cpp b/kregexpeditor/qt-only/compat.cpp index 528099e..a7a5d12 100644 --- a/kregexpeditor/qt-only/compat.cpp +++ b/kregexpeditor/qt-only/compat.cpp @@ -27,16 +27,16 @@ TQString i18n( const TQString& a, const TQString& b) { } KDialogBase::KDialogBase( int /*dialogFace*/, const TQString &caption, int buttonMask, - ButtonCode defaultButton, TQWidget *tqparent, const char *name, + ButtonCode defaultButton, TQWidget *parent, const char *name, bool modal ) - :TQDialog( tqparent, name, modal ) + :TQDialog( parent, name, modal ) { init( buttonMask, defaultButton, caption ); } -KDialogBase::KDialogBase( TQWidget* tqparent, const char* name, bool modal, +KDialogBase::KDialogBase( TQWidget* parent, const char* name, bool modal, const TQString& caption, int buttonMask ) - : TQDialog( tqparent, name, modal ) + : TQDialog( parent, name, modal ) { init( buttonMask, Ok, caption ); } @@ -92,24 +92,24 @@ void KDialogBase::slotCancel() emit finished(); } -int KMessageBox::warningYesNo(TQWidget *tqparent, const TQString &text, const TQString &caption ) +int KMessageBox::warningYesNo(TQWidget *parent, const TQString &text, const TQString &caption ) { - int code = warning( tqparent, caption, text, tr("No"), tr("Yes") ); + int code = warning( parent, caption, text, tr("No"), tr("Yes") ); if ( code == 0 ) return Yes; else return No; } -int KMessageBox::information( TQWidget* tqparent, const TQString& text, const TQString& caption, +int KMessageBox::information( TQWidget* parent, const TQString& text, const TQString& caption, const TQString& /*dontShowAgainName*/ ) { - return TQMessageBox::information( tqparent, caption, text ); + return TQMessageBox::information( parent, caption, text ); } -int KMessageBox::sorry( TQWidget* tqparent, const TQString& text, const TQString& caption ) +int KMessageBox::sorry( TQWidget* parent, const TQString& text, const TQString& caption ) { - return TQMessageBox::information( tqparent, caption, text ); + return TQMessageBox::information( parent, caption, text ); } diff --git a/kregexpeditor/qt-only/compat.h b/kregexpeditor/qt-only/compat.h index f09cbbf..cd3d10f 100644 --- a/kregexpeditor/qt-only/compat.h +++ b/kregexpeditor/qt-only/compat.h @@ -45,9 +45,9 @@ public: KDialogBase ( int dialogFace, const TQString &caption, int buttonMask, ButtonCode defaultButton, - TQWidget *tqparent=0, const char *name=0, bool modal=true ); + TQWidget *parent=0, const char *name=0, bool modal=true ); - KDialogBase( TQWidget* tqparent, const char* name = 0, bool modal = true, + KDialogBase( TQWidget* parent, const char* name = 0, bool modal = true, const TQString& caption = TQString(), int buttonMask = 0 ); @@ -76,11 +76,11 @@ class KMessageBox :public TQMessageBox TQ_OBJECT public: enum ButtonCode { Ok = 1, Cancel = 2, Yes = 3, No = 4, Continue = 5 }; - static int warningYesNo (TQWidget *tqparent, const TQString &text, + static int warningYesNo (TQWidget *parent, const TQString &text, const TQString &caption = TQString() ); - static int information( TQWidget* tqparent, const TQString& text, const TQString& caption = TQString(), + static int information( TQWidget* parent, const TQString& text, const TQString& caption = TQString(), const TQString& /*dontShowAgainName*/ = TQString() ); - static int sorry( TQWidget* tqparent, const TQString& text, const TQString& caption = TQString() ); + static int sorry( TQWidget* parent, const TQString& text, const TQString& caption = TQString() ); }; #endif /* COMPAT_H */ |