summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/pfontbutton.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/pfontbutton.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/pfontbutton.cpp')
-rw-r--r--lib/widgets/propeditor/pfontbutton.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/widgets/propeditor/pfontbutton.cpp b/lib/widgets/propeditor/pfontbutton.cpp
index e4fdf7eb..dc976b8f 100644
--- a/lib/widgets/propeditor/pfontbutton.cpp
+++ b/lib/widgets/propeditor/pfontbutton.cpp
@@ -19,9 +19,9 @@
***************************************************************************/
#include "pfontbutton.h"
-#include <qlayout.h>
-#include <qpainter.h>
-#include <qpushbutton.h>
+#include <tqlayout.h>
+#include <tqpainter.h>
+#include <tqpushbutton.h>
#include <kfontrequester.h>
@@ -33,47 +33,47 @@
namespace PropertyLib{
-PFontButton::PFontButton(MultiProperty* property, QWidget* parent, const char* name)
+PFontButton::PFontButton(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 KFontRequester(this);
- m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
+ m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
#ifndef PURE_QT
m_edit->button()->setText(i18n("..."));
#endif
l->addWidget(m_edit);
- connect(m_edit, SIGNAL(fontSelected(const QFont& )), this, SLOT(updateProperty(const QFont& )));
+ connect(m_edit, TQT_SIGNAL(fontSelected(const TQFont& )), this, TQT_SLOT(updateProperty(const TQFont& )));
}
-QVariant PFontButton::value() const
+TQVariant PFontButton::value() const
{
- return QVariant(m_edit->font());
+ return TQVariant(m_edit->font());
}
-void PFontButton::drawViewer(QPainter* p, const QColorGroup& cg, const QRect& r, const QVariant& value)
+void PFontButton::drawViewer(TQPainter* p, const TQColorGroup& cg, const TQRect& r, const TQVariant& value)
{
p->setPen(Qt::NoPen);
p->setBrush(cg.background());
p->drawRect(r);
- QFontInfo fi(value.toFont());
+ TQFontInfo fi(value.toFont());
p->drawText(r, Qt::AlignLeft | Qt::AlignVCenter | Qt::SingleLine,
- fi.family() + (fi.bold() ? i18n(" Bold") : QString("")) +
- (fi.italic() ? i18n(" Italic") : QString("")) +
- " " + QString("%1").arg(fi.pointSize()) );
+ fi.family() + (fi.bold() ? i18n(" Bold") : TQString("")) +
+ (fi.italic() ? i18n(" Italic") : TQString("")) +
+ " " + TQString("%1").arg(fi.pointSize()) );
}
-void PFontButton::setValue(const QVariant& value, bool emitChange)
+void PFontButton::setValue(const TQVariant& value, bool emitChange)
{
- disconnect(m_edit, SIGNAL(fontSelected(const QFont&)), this, SLOT(updateProperty(const QFont&)));
+ disconnect(m_edit, TQT_SIGNAL(fontSelected(const TQFont&)), this, TQT_SLOT(updateProperty(const TQFont&)));
m_edit->setFont(value.toFont());
- connect(m_edit, SIGNAL(fontSelected(const QFont& )), this, SLOT(updateProperty(const QFont& )));
+ connect(m_edit, TQT_SIGNAL(fontSelected(const TQFont& )), this, TQT_SLOT(updateProperty(const TQFont& )));
if (emitChange)
emit propertyChanged(m_property, value);
}
-void PFontButton::updateProperty(const QFont &// font
+void PFontButton::updateProperty(const TQFont &// font
)
{
emit propertyChanged(m_property, value());