From a1bd60b34891ccc77056c190d7871bc4b14fe654 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 21:31:21 +0000 Subject: TQt4 port kdetoys This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1238103 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kteatime/timeedit.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'kteatime/timeedit.cpp') diff --git a/kteatime/timeedit.cpp b/kteatime/timeedit.cpp index 8cd3d60..5344520 100644 --- a/kteatime/timeedit.cpp +++ b/kteatime/timeedit.cpp @@ -13,8 +13,8 @@ #include "timeedit.h" #include "timeedit.moc" -WrappingSpinBox::WrappingSpinBox(int minValue, int maxValue, int step, TQWidget *parent, const char *name) - : TQSpinBox(minValue, maxValue, step, parent, name) +WrappingSpinBox::WrappingSpinBox(int minValue, int maxValue, int step, TQWidget *tqparent, const char *name) + : TQSpinBox(minValue, maxValue, step, tqparent, name) { } @@ -49,27 +49,27 @@ void WrappingSpinBox::stepDown() // ------------------------------------------------------------------------- -TimeEdit::TimeEdit(TQWidget* parent, const char* name) - : TQWidget(parent, name) +TimeEdit::TimeEdit(TQWidget* tqparent, const char* name) + : TQWidget(tqparent, name) { - layout = new TQHBoxLayout(this); + tqlayout = new TQHBoxLayout(this); minuteBox = new TQSpinBox(0, 300, 1, this); -// minuteBox->setFixedSize(minuteBox->sizeHint()); +// minuteBox->setFixedSize(minuteBox->tqsizeHint()); TQLabel* min = new TQLabel(i18n(" min"), this); - min->setFixedSize(min->sizeHint()); + min->setFixedSize(min->tqsizeHint()); secondBox = new WrappingSpinBox(0, 59, 1, this); secondBox->setWrapping(true); -// secondBox->setFixedSize(secondBox->sizeHint()); +// secondBox->setFixedSize(secondBox->tqsizeHint()); TQLabel* sec = new TQLabel(i18n(" sec"),this); - sec->setFixedSize(sec->sizeHint()); + sec->setFixedSize(sec->tqsizeHint()); - layout->addWidget(minuteBox); - layout->addWidget(min); + tqlayout->addWidget(minuteBox); + tqlayout->addWidget(min); - layout->addWidget(secondBox); - layout->addWidget(sec); + tqlayout->addWidget(secondBox); + tqlayout->addWidget(sec); connect(minuteBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(spinBoxValueChanged(int)) ); connect(secondBox, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(spinBoxValueChanged(int)) ); -- cgit v1.2.3