summaryrefslogtreecommitdiffstats
path: root/lib/koproperty/editors/pointedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/koproperty/editors/pointedit.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 60d74a89..d251e969 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