From bf7f88413be3831a9372d323d02fc0335b9f9188 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 26 May 2011 21:04:57 +0000 Subject: TQt4 port Gwenview This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gwenview@1233720 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gvcore/inputdialog.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/gvcore/inputdialog.cpp') diff --git a/src/gvcore/inputdialog.cpp b/src/gvcore/inputdialog.cpp index e273969..cdd4267 100644 --- a/src/gvcore/inputdialog.cpp +++ b/src/gvcore/inputdialog.cpp @@ -21,9 +21,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. // Self #include "inputdialog.moc" -// Qt -#include -#include +// TQt +#include +#include // KDE #include @@ -32,25 +32,25 @@ namespace Gwenview { struct InputDialog::Private { KLineEdit* mLineEdit; - QLabel* mLabel; + TQLabel* mLabel; }; -InputDialog::InputDialog(QWidget* parent) -: KDialogBase(parent, "InputDialog", true, QString::null, +InputDialog::InputDialog(TQWidget* tqparent) +: KDialogBase(tqparent, "InputDialog", true, TQString(), KDialogBase::Ok|KDialogBase::Cancel) { d = new Private; - QVBox* page = makeVBoxMainWidget(); - d->mLabel = new QLabel(page); + TQVBox* page = makeVBoxMainWidget(); + d->mLabel = new TQLabel(page); d->mLineEdit = new KLineEdit(page); d->mLineEdit->setFocus(); setMinimumWidth(350); - connect(d->mLineEdit, SIGNAL(textChanged(const QString&)), - this, SLOT(updateButtons()) ); + connect(d->mLineEdit, TQT_SIGNAL(textChanged(const TQString&)), + this, TQT_SLOT(updateButtons()) ); } @@ -59,7 +59,7 @@ InputDialog::~InputDialog() { } -void InputDialog::setLabel(const QString& label) { +void InputDialog::setLabel(const TQString& label) { d->mLabel->setText(label); } -- cgit v1.2.3