diff options
Diffstat (limited to 'lib/koproperty/editors/linestyledit.cpp')
-rw-r--r-- | lib/koproperty/editors/linestyledit.cpp | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/lib/koproperty/editors/linestyledit.cpp b/lib/koproperty/editors/linestyledit.cpp index 0d2353ff..91783e20 100644 --- a/lib/koproperty/editors/linestyledit.cpp +++ b/lib/koproperty/editors/linestyledit.cpp @@ -21,11 +21,11 @@ #include "linestyleedit.h" #include "editoritem.h" -#include <qpainter.h> -#include <qpixmap.h> -#include <qcombobox.h> -#include <qlayout.h> -#include <qvariant.h> +#include <tqpainter.h> +#include <tqpixmap.h> +#include <tqcombobox.h> +#include <tqlayout.h> +#include <tqvariant.h> using namespace KoProperty; @@ -135,39 +135,39 @@ using namespace KoProperty; "................................................"}; -LineStyleEdit::LineStyleEdit(Property *property, QWidget *parent, const char *name) - : Widget(property, parent, name) +LineStyleEdit::LineStyleEdit(Property *property, TQWidget *tqparent, const char *name) + : Widget(property, tqparent, name) { - QHBoxLayout *l = new QHBoxLayout(this, 0, 0); - m_edit = new QComboBox(this); - m_edit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); + TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0); + m_edit = new TQComboBox(this); + m_edit->tqsetSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding); m_edit->setMinimumHeight(5); l->addWidget(m_edit); - m_edit->insertItem(QPixmap(nopen)); - m_edit->insertItem(QPixmap(solid)); - m_edit->insertItem(QPixmap(dash)); - m_edit->insertItem(QPixmap(dashdot)); - m_edit->insertItem(QPixmap(dashdotdot)); + m_edit->insertItem(TQPixmap(nopen)); + m_edit->insertItem(TQPixmap(solid)); + m_edit->insertItem(TQPixmap(dash)); + m_edit->insertItem(TQPixmap(dashdot)); + m_edit->insertItem(TQPixmap(dashdotdot)); setLeavesTheSpaceForRevertButton(true); setFocusWidget(m_edit); - connect(m_edit, SIGNAL(activated(int)), this, SLOT(slotValueChanged(int))); + connect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotValueChanged(int))); } LineStyleEdit::~LineStyleEdit() {} -QVariant +TQVariant LineStyleEdit::value() const { return m_edit->currentItem(); } void -LineStyleEdit::setValue(const QVariant &value, bool emitChange) +LineStyleEdit::setValue(const TQVariant &value, bool emitChange) { - if (!value.canCast(QVariant::Int)) + if (!value.canCast(TQVariant::Int)) return; if ((value.toInt() > 5) || (value.toInt() < 0)) return; @@ -180,29 +180,29 @@ LineStyleEdit::setValue(const QVariant &value, bool emitChange) } void -LineStyleEdit::drawViewer(QPainter *p, const QColorGroup &, const QRect &r, const QVariant &value) +LineStyleEdit::drawViewer(TQPainter *p, const TQColorGroup &, const TQRect &r, const TQVariant &value) { p->eraseRect(r); - if (!value.canCast(QVariant::Int)) + if (!value.canCast(TQVariant::Int)) return; - QPixmap px; + TQPixmap px; switch (value.toInt()) { case 0: - px = QPixmap(nopen); + px = TQPixmap(nopen); break; case 1: - px = QPixmap(solid); + px = TQPixmap(solid); break; case 2: - px = QPixmap(dash); + px = TQPixmap(dash); break; case 3: - px = QPixmap(dashdot); + px = TQPixmap(dashdot); break; case 4: - px = QPixmap(dashdotdot); + px = TQPixmap(dashdotdot); break; default: return; |