diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 19:20:52 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-30 19:20:52 +0000 |
commit | e86f8310a920cbf1ecfac955fbad05916e954693 (patch) | |
tree | ddc018560d03c6aa794d9f399d006e5e3aa597f0 /src/knowitchooser.cpp | |
parent | 1829a84466f690d4a6a10ddab91cea0f45ec9d77 (diff) | |
download | knowit-e86f8310a920cbf1ecfac955fbad05916e954693.tar.gz knowit-e86f8310a920cbf1ecfac955fbad05916e954693.zip |
TQt4 port knowit
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/knowit@1238876 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/knowitchooser.cpp')
-rw-r--r-- | src/knowitchooser.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/knowitchooser.cpp b/src/knowitchooser.cpp index 61e6542..bdffb7f 100644 --- a/src/knowitchooser.cpp +++ b/src/knowitchooser.cpp @@ -17,10 +17,10 @@ #include "knowitchooser.h" -#include <qcheckbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qvbox.h> +#include <tqcheckbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqvbox.h> #include <kcombobox.h> #include <klocale.h> @@ -29,30 +29,30 @@ KnowitChooser::KnowitChooser(int flags) : KDialogBase(Plain, i18n("Export"), Ok|Cancel, Ok) { - QLabel* l1; - QLabel* l2; - QVBoxLayout* layout = new QVBoxLayout(plainPage()); - layout->addWidget(l1 = new QLabel(i18n("&Exported notes:"), plainPage())); - layout->addWidget(notes = new KComboBox(plainPage(), "Notes")); + TQLabel* l1; + TQLabel* l2; + TQVBoxLayout* tqlayout = new TQVBoxLayout(plainPage()); + tqlayout->addWidget(l1 = new TQLabel(i18n("&Exported notes:"), plainPage())); + tqlayout->addWidget(notes = new KComboBox(plainPage(), "Notes")); l1->setBuddy(notes); notes->insertItem(i18n("All")); - notes->insertItem(i18n("Current with children")); + notes->insertItem(i18n("Current with tqchildren")); notes->insertItem(i18n("Current only")); - layout->addWidget(l2 = new QLabel(i18n("&Encoding:"), plainPage())); - layout->addWidget(charset = new KComboBox(plainPage(), "Encoding")); + tqlayout->addWidget(l2 = new TQLabel(i18n("&Encoding:"), plainPage())); + tqlayout->addWidget(charset = new KComboBox(plainPage(), "Encoding")); l2->setBuddy(charset); charset->insertItem(i18n("Local (8-bit)")); charset->insertItem(i18n("UTF-8")); - layout->addItem(new QSpacerItem(0, 10)); - layout->addWidget(enumerate = new QCheckBox(i18n("Numbered titles"), + tqlayout->addItem(new TQSpacerItem(0, 10)); + tqlayout->addWidget(enumerate = new TQCheckBox(i18n("Numbered titles"), plainPage(), "Numbered")); - layout->addWidget(toc = new QCheckBox(i18n("Table of contents"), + tqlayout->addWidget(toc = new TQCheckBox(i18n("Table of contents"), plainPage(), "TOC")); - layout->addWidget(rule = new QCheckBox(i18n("Rule betweeen notes"), + tqlayout->addWidget(rule = new TQCheckBox(i18n("Rule betweeen notes"), plainPage(), "Rule")); - layout->addWidget(style = new QCheckBox(i18n("Use editor font and colors"), + tqlayout->addWidget(style = new TQCheckBox(i18n("Use editor font and colors"), plainPage(), "Style")); setChoice(flags); } |