summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/pfontbutton.cpp
diff options
context:
space:
mode:
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());