From ce0c60d7b9a0be4dd17c25bf627d807d9432d953 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 1 Jul 2011 05:51:05 +0000 Subject: TQt4 port krename This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/krename@1238984 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- krename/myinputdialog.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'krename/myinputdialog.cpp') diff --git a/krename/myinputdialog.cpp b/krename/myinputdialog.cpp index 10428d2..f922bb5 100644 --- a/krename/myinputdialog.cpp +++ b/krename/myinputdialog.cpp @@ -20,26 +20,26 @@ #include #include #include -#include -#include -#include +#include +#include +#include -MyInputDialog::MyInputDialog( QString filename, bool revertEnabled, QWidget* parent ) - : QDialog( parent, 0, true, 0 ) +MyInputDialog::MyInputDialog( TQString filename, bool revertEnabled, TQWidget* tqparent ) + : TQDialog( tqparent, 0, true, 0 ) { // I do not think this has to be translated setCaption( "KRename" ); - MyInputDialogLayout = new QVBoxLayout( this, 11, 6, "MyInputDialogLayout"); - Layout = new QHBoxLayout( 0, 0, 6, "Layout"); + MyInputDialogLayout = new TQVBoxLayout( this, 11, 6, "MyInputDialogLayout"); + Layout = new TQHBoxLayout( 0, 0, 6, "Layout"); - TextLabel1 = new QLabel( this, "TextLabel1" ); + TextLabel1 = new TQLabel( this, "TextLabel1" ); TextLabel1->setText( i18n( "Please input a new filename:" ) ); text = new KLineEdit( this, "text" ); text->setText( filename ); - QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); + TQSpacerItem* spacer = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); buttonKrename = new KPushButton( this, "buttonKrename" ); buttonKrename->setText( i18n( "&Revert Changes" ) ); @@ -67,19 +67,19 @@ MyInputDialog::MyInputDialog( QString filename, bool revertEnabled, QWidget* par MyInputDialogLayout->addWidget( text ); MyInputDialogLayout->addLayout( Layout ); - connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); - connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); - connect( buttonKrename, SIGNAL( clicked() ), this, SLOT( krename() ) ); - connect( buttonFilename, SIGNAL( clicked() ), this, SLOT( slotFilename() ) ); + connect( buttonCancel, TQT_SIGNAL( clicked() ), this, TQT_SLOT( reject() ) ); + connect( buttonOk, TQT_SIGNAL( clicked() ), this, TQT_SLOT( accept() ) ); + connect( buttonKrename, TQT_SIGNAL( clicked() ), this, TQT_SLOT( krename() ) ); + connect( buttonFilename, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotFilename() ) ); - QToolTip::add( buttonKrename, i18n("Use the filename that is generated by " + TQToolTip::add( buttonKrename, i18n("Use the filename that is generated by " "KRename instead of your changes." ) ); } MyInputDialog::~MyInputDialog() { } - QString MyInputDialog::filename() const + TQString MyInputDialog::filename() const { return text->text(); } -- cgit v1.2.3