summaryrefslogtreecommitdiffstats
path: root/karm/ktimewidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-04-13 00:46:47 +0000
commit67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7 (patch)
tree5f52a9eada2e9f3654fc327d7c14dfef570a6ecb /karm/ktimewidget.cpp
parent2ee4bf4fd5eff93b2fbef0ff8e8063edffc5da5c (diff)
downloadtdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.tar.gz
tdepim-67e29a054cfcb1b0d2fe6b0a316cf6b3eec087b7.zip
Initial conversion of kdepim to TQt
This will probably require some tweaking before it will build under Qt4, however Qt3 builds are OK. Any alterations this commit makes to kdepim behaviour under Qt3 are unintentional and should be fixed. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1227832 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 dba305fef..b1f7790f6 100644
--- a/karm/ktimewidget.cpp
+++ b/karm/ktimewidget.cpp
@@ -13,11 +13,11 @@
enum ValidatorType { HOUR, MINUTE };
-class TimeValidator : public QValidator
+class TimeValidator : public TQValidator
{
public:
- TimeValidator( ValidatorType tp, TQWidget *parent=0, const char *name=0)
- : TQValidator(parent, name)
+ TimeValidator( ValidatorType tp, TQWidget *tqparent=0, const char *name=0)
+ : TQValidator(tqparent, name)
{
_tp = tp;
}
@@ -42,12 +42,12 @@ class TimeValidator : public QValidator
};
-class KarmLineEdit : public QLineEdit
+class KarmLineEdit : public TQLineEdit
{
public:
- KarmLineEdit( TQWidget* parent, const char* name = 0 )
- : TQLineEdit( parent, name ) {}
+ KarmLineEdit( TQWidget* tqparent, const char* name = 0 )
+ : TQLineEdit( tqparent, name ) {}
protected:
@@ -60,8 +60,8 @@ protected:
};
-KArmTimeWidget::KArmTimeWidget( TQWidget* parent, const char* name )
- : TQWidget(parent, name)
+KArmTimeWidget::KArmTimeWidget( TQWidget* tqparent, const char* name )
+ : TQWidget(tqparent, name)
{
TQHBoxLayout *tqlayout = new TQHBoxLayout(this);
@@ -74,7 +74,7 @@ KArmTimeWidget::KArmTimeWidget( TQWidget* parent, const char* name )
TimeValidator *validator = new TimeValidator( HOUR, _hourLE,
"Validator for _hourLE");
_hourLE->setValidator( validator );
- _hourLE->tqsetAlignment( Qt::AlignRight );
+ _hourLE->tqsetAlignment( TQt::AlignRight );
TQLabel *hr = new TQLabel( i18n( "abbreviation for hours", " hr. " ), this );
@@ -89,7 +89,7 @@ KArmTimeWidget::KArmTimeWidget( TQWidget* parent, const char* name )
validator = new TimeValidator( MINUTE, _minuteLE, "Validator for _minuteLE");
_minuteLE->setValidator( validator );
_minuteLE->setMaxLength(2);
- _minuteLE->tqsetAlignment( Qt::AlignRight );
+ _minuteLE->tqsetAlignment( TQt::AlignRight );
TQLabel *min = new TQLabel( i18n( "abbreviation for minutes", " min. " ), this );
tqlayout->addWidget( min );