summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/pcheckbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/propeditor/pcheckbox.cpp')
-rw-r--r--lib/widgets/propeditor/pcheckbox.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/lib/widgets/propeditor/pcheckbox.cpp b/lib/widgets/propeditor/pcheckbox.cpp
index 15aacbff..3f406e4d 100644
--- a/lib/widgets/propeditor/pcheckbox.cpp
+++ b/lib/widgets/propeditor/pcheckbox.cpp
@@ -19,9 +19,9 @@
***************************************************************************/
#include "pcheckbox.h"
-#include <qlayout.h>
-#include <qcheckbox.h>
-#include <qpainter.h>
+#include <tqlayout.h>
+#include <tqcheckbox.h>
+#include <tqpainter.h>
#ifndef PURE_QT
#include <klocale.h>
@@ -31,37 +31,37 @@
namespace PropertyLib{
-PCheckBox::PCheckBox(MultiProperty *property, QWidget *parent, const char *name)
+PCheckBox::PCheckBox(MultiProperty *property, TQWidget *parent, const char *name)
:PropertyWidget(property, parent, name)
{
- QHBoxLayout *l = new QHBoxLayout(this, 0, 0);
- m_edit = new QCheckBox(this);
- m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
+ TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0);
+ m_edit = new TQCheckBox(this);
+ m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
l->addWidget(m_edit);
- connect(m_edit, SIGNAL(toggled(bool)), this, SLOT(updateProperty(bool)));
+ connect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool)));
}
-QVariant PCheckBox::value() const
+TQVariant PCheckBox::value() const
{
- return QVariant(m_edit->isChecked());
+ return TQVariant(m_edit->isChecked());
}
-void PCheckBox::setValue(const QVariant &value, bool emitChange)
+void PCheckBox::setValue(const TQVariant &value, bool emitChange)
{
- disconnect(m_edit, SIGNAL(toggled(bool)), this, SLOT(updateProperty(bool)));
+ disconnect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool)));
m_edit->setChecked(value.toBool());
- connect(m_edit, SIGNAL(toggled(bool)), this, SLOT(updateProperty(bool)));
+ connect(m_edit, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(updateProperty(bool)));
if (emitChange)
emit propertyChanged(m_property, value);
}
void PCheckBox::updateProperty(bool val)
{
- emit propertyChanged(m_property, QVariant(val));
+ emit propertyChanged(m_property, TQVariant(val));
}
-void PCheckBox::drawViewer(QPainter *p, const QColorGroup &cg, const QRect &r, const QVariant &value)
+void PCheckBox::drawViewer(TQPainter *p, const TQColorGroup &cg, const TQRect &r, const TQVariant &value)
{
p->setBrush(cg.background());
p->setPen(Qt::NoPen);