summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/pdatetimeedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/propeditor/pdatetimeedit.cpp')
-rw-r--r--lib/widgets/propeditor/pdatetimeedit.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/widgets/propeditor/pdatetimeedit.cpp b/lib/widgets/propeditor/pdatetimeedit.cpp
index 8f561888..5e414c77 100644
--- a/lib/widgets/propeditor/pdatetimeedit.cpp
+++ b/lib/widgets/propeditor/pdatetimeedit.cpp
@@ -19,28 +19,28 @@
***************************************************************************/
#include "pdatetimeedit.h"
-#include <qdatetimeedit.h>
-#include <qpainter.h>
-#include <qlayout.h>
+#include <tqdatetimeedit.h>
+#include <tqpainter.h>
+#include <tqlayout.h>
namespace PropertyLib{
-PDateTimeEdit::PDateTimeEdit(MultiProperty* property, QWidget* parent, const char* name): PropertyWidget(property, parent, name)
+PDateTimeEdit::PDateTimeEdit(MultiProperty* property, TQWidget* parent, const char* name): PropertyWidget(property, parent, name)
{
- QHBoxLayout *l = new QHBoxLayout(this, 0, 0);
+ TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0);
m_edit = new QDateTimeEdit(this);
- m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
+ m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
l->addWidget(m_edit);
- connect(m_edit, SIGNAL(valueChanged(const QDateTime&)), this, SLOT(updateProperty(const QDateTime&)));
+ connect(m_edit, TQT_SIGNAL(valueChanged(const TQDateTime&)), this, TQT_SLOT(updateProperty(const TQDateTime&)));
}
-QVariant PDateTimeEdit::value() const
+TQVariant PDateTimeEdit::value() const
{
- return QVariant(m_edit->dateTime());
+ return TQVariant(m_edit->dateTime());
}
-void PDateTimeEdit::drawViewer(QPainter* p, const QColorGroup& cg, const QRect& r, const QVariant& value)
+void PDateTimeEdit::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect& r, const TQVariant& value)
{
p->setPen(Qt::NoPen);
p->setBrush(cg.background());
@@ -48,18 +48,18 @@ void PDateTimeEdit::drawViewer(QPainter* p, const QColorGroup& cg, const QRect&
p->drawText(r, Qt::AlignLeft | Qt::AlignVCenter | Qt::SingleLine, value.toDateTime().toString(Qt::LocalDate));
}
-void PDateTimeEdit::setValue(const QVariant& value, bool emitChange)
+void PDateTimeEdit::setValue(const TQVariant& value, bool emitChange)
{
- disconnect(m_edit, SIGNAL(valueChanged(const QDateTime&)), this, SLOT(updateProperty(const QDateTime&)));
+ disconnect(m_edit, TQT_SIGNAL(valueChanged(const TQDateTime&)), this, TQT_SLOT(updateProperty(const TQDateTime&)));
m_edit->setDateTime(value.toDateTime());
- connect(m_edit, SIGNAL(valueChanged(const QDateTime&)), this, SLOT(updateProperty(const QDateTime&)));
+ connect(m_edit, TQT_SIGNAL(valueChanged(const TQDateTime&)), this, TQT_SLOT(updateProperty(const TQDateTime&)));
if (emitChange)
emit propertyChanged(m_property, value);
}
-void PDateTimeEdit::updateProperty(const QDateTime &val)
+void PDateTimeEdit::updateProperty(const TQDateTime &val)
{
- emit propertyChanged(m_property, QVariant(val));
+ emit propertyChanged(m_property, TQVariant(val));
}
}