summaryrefslogtreecommitdiffstats
path: root/lib/koproperty/editors/pointedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/koproperty/editors/pointedit.cpp')
-rw-r--r--lib/koproperty/editors/pointedit.cpp40
1 files changed, 20 insertions, 20 deletions
diff --git a/lib/koproperty/editors/pointedit.cpp b/lib/koproperty/editors/pointedit.cpp
index 60d74a899..d251e969f 100644
--- a/lib/koproperty/editors/pointedit.cpp
+++ b/lib/koproperty/editors/pointedit.cpp
@@ -21,10 +21,10 @@
#include "pointedit.h"
#include "editoritem.h"
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qpainter.h>
-#include <qtooltip.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqtooltip.h>
#include <kactivelabel.h>
#include <klocale.h>
@@ -34,17 +34,17 @@
using namespace KoProperty;
-PointEdit::PointEdit(Property *property, QWidget *parent, const char *name)
- : Widget(property, parent, name)
+PointEdit::PointEdit(Property *property, TQWidget *tqparent, const char *name)
+ : Widget(property, tqparent, name)
{
setHasBorders(false);
m_edit = new KActiveLabel(this);
- m_edit->setFocusPolicy(NoFocus);
+ m_edit->setFocusPolicy(TQ_NoFocus);
// m_edit->setIndent(KPROPEDITOR_ITEM_MARGIN);
- m_edit->setPaletteBackgroundColor(palette().active().base());
- m_edit->setWordWrap( QTextEdit::NoWrap );
-// m_edit->setBackgroundMode(Qt::PaletteBase);
-// m_edit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
+ m_edit->setPaletteBackgroundColor(tqpalette().active().base());
+ m_edit->setWordWrap( TQTextEdit::NoWrap );
+// m_edit->setBackgroundMode(TQt::PaletteBase);
+// m_edit->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding);
m_edit->setMinimumHeight(5);
setEditor(m_edit);
// setFocusWidget(m_edit);
@@ -53,33 +53,33 @@ PointEdit::PointEdit(Property *property, QWidget *parent, const char *name)
PointEdit::~PointEdit()
{}
-QVariant
+TQVariant
PointEdit::value() const
{
return m_value;
}
void
-PointEdit::setValue(const QVariant &value, bool emitChange)
+PointEdit::setValue(const TQVariant &value, bool emitChange)
{
m_value = value;
m_edit->selectAll(false);
- m_edit->setText(QString(POINTEDIT_MASK).arg(value.toPoint().x()).arg(value.toPoint().y()));
- QToolTip::add(this, QString("%1, %2").arg(value.toPoint().x()).arg(value.toPoint().y()));
+ m_edit->setText(TQString(POINTEDIT_MASK).tqarg(value.toPoint().x()).tqarg(value.toPoint().y()));
+ TQToolTip::add(this, TQString("%1, %2").tqarg(value.toPoint().x()).tqarg(value.toPoint().y()));
if (emitChange)
emit valueChanged(this);
}
void
-PointEdit::drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value)
+PointEdit::drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value)
{
- QRect rect(r);
+ TQRect rect(r);
rect.setBottom(r.bottom()+1);
- Widget::drawViewer(p, cg, rect, QString(POINTEDIT_MASK).arg(value.toPoint().x()).arg(value.toPoint().y()));
+ Widget::drawViewer(p, cg, rect, TQString(POINTEDIT_MASK).tqarg(value.toPoint().x()).tqarg(value.toPoint().y()));
// p->eraseRect(r);
-// p->drawText(r, Qt::AlignLeft | Qt::AlignVCenter | Qt::SingleLine,
-// QString("[ %1, %2 ]").arg(value.toPoint().x()).arg(value.toPoint().y()));
+// p->drawText(r, TQt::AlignLeft | TQt::AlignVCenter | TQt::SingleLine,
+// TQString("[ %1, %2 ]").tqarg(value.toPoint().x()).tqarg(value.toPoint().y()));
}
void