summaryrefslogtreecommitdiffstats
path: root/kdeprint/tests/richpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdeprint/tests/richpage.cpp')
-rw-r--r--kdeprint/tests/richpage.cpp36
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();