diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /kdeprint/tests/richpage.cpp | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/tests/richpage.cpp')
-rw-r--r-- | kdeprint/tests/richpage.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/kdeprint/tests/richpage.cpp b/kdeprint/tests/richpage.cpp index 9b175894b..f12040b71 100644 --- a/kdeprint/tests/richpage.cpp +++ b/kdeprint/tests/richpage.cpp @@ -1,38 +1,38 @@ #include "richpage.h" -#include <qlabel.h> -#include <qspinbox.h> -#include <qcombobox.h> -#include <qfontdatabase.h> -#include <qlayout.h> +#include <tqlabel.h> +#include <tqspinbox.h> +#include <tqcombobox.h> +#include <tqfontdatabase.h> +#include <tqlayout.h> -RichPage::RichPage(QWidget *parent, const char *name) +RichPage::RichPage(TQWidget *parent, const char *name) : KPrintDialogPage(parent,name) { m_title = "Rich Text Options"; - margin_ = new QSpinBox(this); + margin_ = new TQSpinBox(this); margin_->setRange(1,999); margin_->setValue(72); - fontsize_ = new QSpinBox(this); + fontsize_ = new TQSpinBox(this); fontsize_->setRange(4,100); fontsize_->setValue(10); - fontname_ = new QComboBox(this); + fontname_ = new TQComboBox(this); QFontDatabase db; QStringList fonts = db.families(); fontname_->insertStringList(fonts); - fontname_->setCurrentItem(fonts.findIndex(QString::fromLatin1("times"))); + fontname_->setCurrentItem(fonts.findIndex(TQString::fromLatin1("times"))); if (fontname_->currentItem() < 0) fontname_->setCurrentItem(0); - QLabel *l1 = new QLabel("Margin:",this); - QLabel *l2 = new QLabel("Font name:",this); - QLabel *l3 = new QLabel("Font size:",this); + QLabel *l1 = new TQLabel("Margin:",this); + QLabel *l2 = new TQLabel("Font name:",this); + QLabel *l3 = new TQLabel("Font size:",this); - QHBoxLayout *s1 = new QHBoxLayout(0, 0, 10); - QHBoxLayout *s2 = new QHBoxLayout(0, 0, 10); - QVBoxLayout *main_ = new QVBoxLayout(this, 10, 10); + QHBoxLayout *s1 = new TQHBoxLayout(0, 0, 10); + QHBoxLayout *s2 = new TQHBoxLayout(0, 0, 10); + QVBoxLayout *main_ = new TQVBoxLayout(this, 10, 10); main_->addLayout(s1,0); main_->addSpacing(20); @@ -55,7 +55,7 @@ RichPage::~RichPage() { } -void RichPage::setOptions(const QMap<QString,QString>& opts) +void RichPage::setOptions(const TQMap<TQString,TQString>& opts) { QString value; @@ -77,7 +77,7 @@ void RichPage::setOptions(const QMap<QString,QString>& opts) fontsize_->setValue(value.toInt()); } -void RichPage::getOptions(QMap<QString,QString>& opts, bool) +void RichPage::getOptions(TQMap<TQString,TQString>& opts, bool) { opts["app-rich-margin"] = margin_->text(); opts["app-rich-fontname"] = fontname_->currentText(); |