summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/pyesnobutton.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /lib/widgets/propeditor/pyesnobutton.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/widgets/propeditor/pyesnobutton.cpp')
-rw-r--r--lib/widgets/propeditor/pyesnobutton.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/widgets/propeditor/pyesnobutton.cpp b/lib/widgets/propeditor/pyesnobutton.cpp
index 763ac630..308570be 100644
--- a/lib/widgets/propeditor/pyesnobutton.cpp
+++ b/lib/widgets/propeditor/pyesnobutton.cpp
@@ -19,9 +19,9 @@
***************************************************************************/
#include "pyesnobutton.h"
-#include <qlayout.h>
-#include <qpainter.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqpushbutton.h>
#ifndef PURE_QT
#include <klocale.h>
@@ -31,34 +31,34 @@
namespace PropertyLib{
-PYesNoButton::PYesNoButton(MultiProperty* property, QWidget* parent, const char* name)
+PYesNoButton::PYesNoButton(MultiProperty* property, TQWidget* parent, const char* name)
:PropertyWidget(property, parent, name)
{
- QHBoxLayout *l = new QHBoxLayout(this, 0, 0);
- m_edit = new QPushButton(this);
+ TQHBoxLayout *l = new TQHBoxLayout(this, 0, 0);
+ m_edit = new TQPushButton(this);
m_edit->setToggleButton(true);
- m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
+ 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 PYesNoButton::value() const
+TQVariant PYesNoButton::value() const
{
- return QVariant(m_edit->isOn());
+ return TQVariant(m_edit->isOn());
}
-void PYesNoButton::drawViewer(QPainter* p, const QColorGroup& cg, const QRect& r, const QVariant& value)
+void PYesNoButton::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect& r, const TQVariant& value)
{
PropertyWidget::drawViewer(p, cg, r, value.toBool() ? i18n("Yes") : i18n("No"));
}
-void PYesNoButton::setValue(const QVariant& value, bool emitChange)
+void PYesNoButton::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->setDown(value.toBool());
value.toBool() ? m_edit->setText(i18n("Yes")) : m_edit->setText(i18n("No"));
- 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);
}