summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/pcolorcombo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/propeditor/pcolorcombo.cpp')
-rw-r--r--lib/widgets/propeditor/pcolorcombo.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/widgets/propeditor/pcolorcombo.cpp b/lib/widgets/propeditor/pcolorcombo.cpp
index ecb3e618..eeac7de8 100644
--- a/lib/widgets/propeditor/pcolorcombo.cpp
+++ b/lib/widgets/propeditor/pcolorcombo.cpp
@@ -19,34 +19,34 @@
***************************************************************************/
#include "pcolorcombo.h"
-#include <qlayout.h>
-#include <qpainter.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
#include <kcolorcombo.h>
namespace PropertyLib{
-PColorCombo::PColorCombo(MultiProperty *property, QWidget *parent, const char *name)
+PColorCombo::PColorCombo(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 KColorCombo(this);
- m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
+ m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
l->addWidget(m_edit);
- connect(m_edit, SIGNAL(activated(int)), this, SLOT(updateProperty(int)));
+ connect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
}
-QVariant PColorCombo::value() const
+TQVariant PColorCombo::value() const
{
- return QVariant(m_edit->color());
+ return TQVariant(m_edit->color());
}
-void PColorCombo::setValue(const QVariant &value, bool emitChange)
+void PColorCombo::setValue(const TQVariant &value, bool emitChange)
{
- disconnect(m_edit, SIGNAL(activated(int)), this, SLOT(updateProperty(int)));
+ disconnect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
m_edit->setColor(value.toColor());
- connect(m_edit, SIGNAL(activated(int)), this, SLOT(updateProperty(int)));
+ connect(m_edit, TQT_SIGNAL(activated(int)), this, TQT_SLOT(updateProperty(int)));
if (emitChange)
emit propertyChanged(m_property, value);
}
@@ -56,7 +56,7 @@ void PColorCombo::updateProperty(int /*val*/)
emit propertyChanged(m_property, value());
}
-void PColorCombo::drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value)
+void PColorCombo::drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value)
{
p->setPen(Qt::NoPen);
p->setBrush(cg.background());
@@ -64,9 +64,9 @@ void PColorCombo::drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r,
p->setBrush(value.toColor());
p->setPen(Qt::SolidLine);
- QRect r2(r);
- r2.setTopLeft(r.topLeft() + QPoint(5,5));
- r2.setBottomRight(r.bottomRight() - QPoint(5,5));
+ TQRect r2(r);
+ r2.setTopLeft(r.topLeft() + TQPoint(5,5));
+ r2.setBottomRight(r.bottomRight() - TQPoint(5,5));
p->drawRect(r2);
}