summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/pfontcombo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/propeditor/pfontcombo.cpp')
-rw-r--r--lib/widgets/propeditor/pfontcombo.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/widgets/propeditor/pfontcombo.cpp b/lib/widgets/propeditor/pfontcombo.cpp
index 368f18d9..8b0ee7a7 100644
--- a/lib/widgets/propeditor/pfontcombo.cpp
+++ b/lib/widgets/propeditor/pfontcombo.cpp
@@ -22,61 +22,61 @@
#ifndef PURE_QT
#include <kfontcombo.h>
#else
-#include <qcombobox.h>
+#include <tqcombobox.h>
#endif
-#include <qlayout.h>
+#include <tqlayout.h>
#ifdef PURE_QT
-#include <qfontdatabase.h>
+#include <tqfontdatabase.h>
#endif
namespace PropertyLib{
-PFontCombo::PFontCombo(MultiProperty *property, QWidget *parent, const char *name)
+PFontCombo::PFontCombo(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 KFontCombo(this);
- m_edit->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::MinimumExpanding);
+ m_edit->setSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::MinimumExpanding);
l->addWidget(m_edit);
/*adymo: KFontCombo seems to have a bug: when it is not editable, the signals
- activated(int) and textChanged(const QString &) are not emitted*/
+ activated(int) and textChanged(const TQString &) are not emitted*/
#ifdef PURE_QT
- QFontDatabase fonts;
+ TQFontDatabase fonts;
m_edit->insertStringList(fonts.families());
- connect(m_edit, SIGNAL(activated(const QString &)), this, SLOT(updateProperty(const QString&)));
+ connect(m_edit, TQT_SIGNAL(activated(const TQString &)), this, TQT_SLOT(updateProperty(const TQString&)));
#else
- connect(m_edit, SIGNAL(textChanged(const QString&)), this, SLOT(updateProperty(const QString&)));
+ connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
#endif
}
-QVariant PFontCombo::value() const
+TQVariant PFontCombo::value() const
{
#ifndef PURE_QT
- return QVariant(m_edit->currentFont());
+ return TQVariant(m_edit->currentFont());
#else
- return QVariant(m_edit->currentText());
+ return TQVariant(m_edit->currentText());
#endif
}
-void PFontCombo::setValue(const QVariant &value, bool emitChange)
+void PFontCombo::setValue(const TQVariant &value, bool emitChange)
{
- disconnect(m_edit, SIGNAL(textChanged(const QString&)), this, SLOT(updateProperty(const QString&)));
+ disconnect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
#ifndef PURE_QT
m_edit->setCurrentFont(value.toString());
#else
m_edit->setCurrentText(value.toString());
#endif
- connect(m_edit, SIGNAL(textChanged(const QString&)), this, SLOT(updateProperty(const QString&)));
+ connect(m_edit, TQT_SIGNAL(textChanged(const TQString&)), this, TQT_SLOT(updateProperty(const TQString&)));
if (emitChange)
emit propertyChanged(m_property, value);
}
-void PFontCombo::updateProperty(const QString &val)
+void PFontCombo::updateProperty(const TQString &val)
{
- emit propertyChanged(m_property, QVariant(val));
+ emit propertyChanged(m_property, TQVariant(val));
}
}