diff options
Diffstat (limited to 'lib/koproperty/editors/timeedit.cpp')
-rw-r--r-- | lib/koproperty/editors/timeedit.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/koproperty/editors/timeedit.cpp b/lib/koproperty/editors/timeedit.cpp index 3d38d39b..25972f0b 100644 --- a/lib/koproperty/editors/timeedit.cpp +++ b/lib/koproperty/editors/timeedit.cpp @@ -20,43 +20,43 @@ #include "timeedit.h" -#include <qdatetimeedit.h> -#include <qrangecontrol.h> -#include <qobjectlist.h> -#include <qpainter.h> -#include <qlayout.h> -#include <qvariant.h> -#include <qdatetime.h> +#include <tqdatetimeedit.h> +#include <tqrangecontrol.h> +#include <tqobjectlist.h> +#include <tqpainter.h> +#include <tqlayout.h> +#include <tqvariant.h> +#include <tqdatetime.h> #include <klocale.h> #include <kglobal.h> using namespace KoProperty; -TimeEdit::TimeEdit(Property *property, QWidget *parent, const char *name) - : Widget(property, parent, name) +TimeEdit::TimeEdit(Property *property, TQWidget *tqparent, const char *name) + : Widget(property, tqparent, name) { - QHBoxLayout *l = new QHBoxLayout(this, 0, 0); - m_edit = new QTimeEdit(this); - m_edit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0); + m_edit = new TQTimeEdit(this); + m_edit->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); m_edit->setMinimumHeight(5); l->addWidget(m_edit); setLeavesTheSpaceForRevertButton(true); - connect(m_edit, SIGNAL(valueChanged(const QTime&)), this, SLOT(slotValueChanged(const QTime&))); + connect(m_edit, TQT_SIGNAL(valueChanged(const TQTime&)), this, TQT_SLOT(slotValueChanged(const TQTime&))); } TimeEdit::~TimeEdit() {} -QVariant +TQVariant TimeEdit::value() const { return m_edit->time(); } void -TimeEdit::setValue(const QVariant &value, bool emitChange) +TimeEdit::setValue(const TQVariant &value, bool emitChange) { m_edit->blockSignals(true); m_edit->setTime(value.toTime()); @@ -66,14 +66,14 @@ TimeEdit::setValue(const QVariant &value, bool emitChange) } void -TimeEdit::drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value) +TimeEdit::drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value) { Widget::drawViewer(p, cg, r, KGlobal::locale()->formatTime(value.toTime(), true /* include sec*/)); -// p->drawText(r, Qt::AlignLeft | Qt::AlignVCenter | Qt::SingleLine, KGlobal::locale()->formatTime(value.toTime(), true /* include sec*/)); +// p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine, KGlobal::locale()->formatTime(value.toTime(), true /* include sec*/)); } void -TimeEdit::slotValueChanged(const QTime&) +TimeEdit::slotValueChanged(const TQTime&) { emit valueChanged(this); } |