summaryrefslogtreecommitdiffstats
path: root/karm/ktimewidget.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-15 15:50:21 -0600
committerTimothy Pearson <[email protected]>2011-12-15 15:50:21 -0600
commit3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12 (patch)
tree89de88213bd261e4ccaade899ab2d6ec34b3a5a7 /karm/ktimewidget.cpp
parent1dad5f662a09dfc5cc041caffe0f674044a4dcec (diff)
downloadtdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.tar.gz
tdepim-3ca10fd9a2dc631429d3b5d5c5e42a7d211d5a12.zip
Rename a number of old tq methods that are no longer tq specific
Diffstat (limited to 'karm/ktimewidget.cpp')
-rw-r--r--karm/ktimewidget.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/karm/ktimewidget.cpp b/karm/ktimewidget.cpp
index 2eaf32b20..c287867d3 100644
--- a/karm/ktimewidget.cpp
+++ b/karm/ktimewidget.cpp
@@ -1,7 +1,7 @@
#include <stdlib.h> // abs()
#include <tqlabel.h>
-#include <tqlayout.h>
+#include <layout.h>
#include <tqlineedit.h>
#include <tqstring.h>
#include <tqvalidator.h>
@@ -63,38 +63,38 @@ protected:
KArmTimeWidget::KArmTimeWidget( TQWidget* parent, const char* name )
: TQWidget(parent, name)
{
- TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
+ TQHBoxLayout *layout = new TQHBoxLayout(this);
_hourLE = new TQLineEdit( this);
// 9999 hours > 1 year!
// 999 hours = 41 days (That should be enough ...)
_hourLE->setFixedWidth( fontMetrics().maxWidth() * 3
+ 2 * _hourLE->frameWidth() + 2);
- tqlayout->addWidget(_hourLE);
+ layout->addWidget(_hourLE);
TimeValidator *validator = new TimeValidator( HOUR, _hourLE,
"Validator for _hourLE");
_hourLE->setValidator( validator );
- _hourLE->tqsetAlignment( TQt::AlignRight );
+ _hourLE->setAlignment( TQt::AlignRight );
TQLabel *hr = new TQLabel( i18n( "abbreviation for hours", " hr. " ), this );
- tqlayout->addWidget( hr );
+ layout->addWidget( hr );
_minuteLE = new KarmLineEdit(this);
// Minutes lineedit: Make room for 2 digits
_minuteLE->setFixedWidth( fontMetrics().maxWidth() * 2
+ 2 * _minuteLE->frameWidth() + 2);
- tqlayout->addWidget(_minuteLE);
+ layout->addWidget(_minuteLE);
validator = new TimeValidator( MINUTE, _minuteLE, "Validator for _minuteLE");
_minuteLE->setValidator( validator );
_minuteLE->setMaxLength(2);
- _minuteLE->tqsetAlignment( TQt::AlignRight );
+ _minuteLE->setAlignment( TQt::AlignRight );
TQLabel *min = new TQLabel( i18n( "abbreviation for minutes", " min. " ), this );
- tqlayout->addWidget( min );
+ layout->addWidget( min );
- tqlayout->addStretch(1);
+ layout->addStretch(1);
setFocusProxy( _hourLE );
}
@@ -111,7 +111,7 @@ void KArmTimeWidget::setTime( long minutes )
dummy.setNum( minutepart );
if (minutepart < 10 ) {
- dummy = TQString::tqfromLatin1( "0" ) + dummy;
+ dummy = TQString::fromLatin1( "0" ) + dummy;
}
_minuteLE->setText( dummy );
}