diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /lib/widgets/propeditor/pfontcombo.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-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/pfontcombo.cpp')
-rw-r--r-- | lib/widgets/propeditor/pfontcombo.cpp | 36 |
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)); } } |