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/management/kmconfigfonts.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/management/kmconfigfonts.cpp')
-rw-r--r-- | kdeprint/management/kmconfigfonts.cpp | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kdeprint/management/kmconfigfonts.cpp b/kdeprint/management/kmconfigfonts.cpp index c7b4420cb..e59f75728 100644 --- a/kdeprint/management/kmconfigfonts.cpp +++ b/kdeprint/management/kmconfigfonts.cpp @@ -19,14 +19,14 @@ #include "kmconfigfonts.h" -#include <qgroupbox.h> +#include <tqgroupbox.h> #include <kpushbutton.h> -#include <qlayout.h> -#include <qheader.h> -#include <qlabel.h> -#include <qcheckbox.h> -#include <qsettings.h> -#include <qwhatsthis.h> +#include <tqlayout.h> +#include <tqheader.h> +#include <tqlabel.h> +#include <tqcheckbox.h> +#include <tqsettings.h> +#include <tqwhatsthis.h> #include <klocale.h> #include <kconfig.h> @@ -36,17 +36,17 @@ #include <klistview.h> #include <kdialog.h> -KMConfigFonts::KMConfigFonts(QWidget *parent, const char *name) +KMConfigFonts::KMConfigFonts(TQWidget *parent, const char *name) : KMConfigPage(parent, name) { setPageName(i18n("Fonts")); setPageHeader(i18n("Font Settings")); setPagePixmap("fonts"); - QGroupBox *box = new QGroupBox(0, Qt::Vertical, i18n("Fonts Embedding"), this); - QGroupBox *box2 = new QGroupBox(0, Qt::Vertical, i18n("Fonts Path"), this); + QGroupBox *box = new TQGroupBox(0, Qt::Vertical, i18n("Fonts Embedding"), this); + QGroupBox *box2 = new TQGroupBox(0, Qt::Vertical, i18n("Fonts Path"), this); - m_embedfonts = new QCheckBox(i18n("&Embed fonts in PostScript data when printing"), box); + m_embedfonts = new TQCheckBox(i18n("&Embed fonts in PostScript data when printing"), box); m_fontpath = new KListView(box2); m_fontpath->addColumn(""); m_fontpath->header()->setStretchEnabled(true, 0); @@ -58,14 +58,14 @@ KMConfigFonts::KMConfigFonts(QWidget *parent, const char *name) m_down = new KPushButton(KGuiItem(i18n("&Down"), "down"), box2); m_add = new KPushButton(KGuiItem(i18n("&Add"), "add"), box2); m_remove = new KPushButton(KGuiItem(i18n("&Remove"), "editdelete"), box2); - QLabel *lab0 = new QLabel(i18n("Additional director&y:"), box2); + QLabel *lab0 = new TQLabel(i18n("Additional director&y:"), box2); lab0->setBuddy(m_addpath); - QVBoxLayout *l0 = new QVBoxLayout(box->layout(), KDialog::spacingHint()); + QVBoxLayout *l0 = new TQVBoxLayout(box->layout(), KDialog::spacingHint()); l0->addWidget(m_embedfonts); - QVBoxLayout *l1 = new QVBoxLayout(box2->layout(), KDialog::spacingHint()); + QVBoxLayout *l1 = new TQVBoxLayout(box2->layout(), KDialog::spacingHint()); l1->addWidget(m_fontpath); - QHBoxLayout *l2 = new QHBoxLayout(0, 0, KDialog::spacingHint()); + QHBoxLayout *l2 = new TQHBoxLayout(0, 0, KDialog::spacingHint()); l1->addLayout(l2); l2->addWidget(m_up); l2->addWidget(m_down); @@ -73,30 +73,30 @@ KMConfigFonts::KMConfigFonts(QWidget *parent, const char *name) l1->addSpacing(10); l1->addWidget(lab0); l1->addWidget(m_addpath); - QHBoxLayout *l3 = new QHBoxLayout(0, 0, KDialog::spacingHint()); + QHBoxLayout *l3 = new TQHBoxLayout(0, 0, KDialog::spacingHint()); l1->addLayout(l3); l3->addStretch(1); l3->addWidget(m_add); - QVBoxLayout *l4 = new QVBoxLayout(this, 0, KDialog::spacingHint()); + QVBoxLayout *l4 = new TQVBoxLayout(this, 0, KDialog::spacingHint()); l4->addWidget(box); l4->addWidget(box2); - QWhatsThis::add(m_embedfonts, + TQWhatsThis::add(m_embedfonts, i18n("These options will automatically put fonts in the PostScript file " "which are not present on the printer. Font embedding usually produces better print results " "(closer to what you see on the screen), but larger print data as well.")); - QWhatsThis::add(m_fontpath, + TQWhatsThis::add(m_fontpath, i18n("When using font embedding you can select additional directories where " "KDE should search for embeddable font files. By default, the X server " "font path is used, so adding those directories is not needed. The default " "search path should be sufficient in most cases.")); - connect(m_remove, SIGNAL(clicked()), SLOT(slotRemove())); - connect(m_add, SIGNAL(clicked()), SLOT(slotAdd())); - connect(m_up, SIGNAL(clicked()), SLOT(slotUp())); - connect(m_down, SIGNAL(clicked()), SLOT(slotDown())); - connect(m_fontpath, SIGNAL(selectionChanged()), SLOT(slotSelected())); - connect(m_addpath, SIGNAL(textChanged(const QString&)), SLOT(slotTextChanged(const QString&))); + connect(m_remove, TQT_SIGNAL(clicked()), TQT_SLOT(slotRemove())); + connect(m_add, TQT_SIGNAL(clicked()), TQT_SLOT(slotAdd())); + connect(m_up, TQT_SIGNAL(clicked()), TQT_SLOT(slotUp())); + connect(m_down, TQT_SIGNAL(clicked()), TQT_SLOT(slotDown())); + connect(m_fontpath, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotSelected())); + connect(m_addpath, TQT_SIGNAL(textChanged(const TQString&)), TQT_SLOT(slotTextChanged(const TQString&))); m_add->setEnabled(false); m_remove->setEnabled(false); m_up->setEnabled(false); @@ -109,8 +109,8 @@ void KMConfigFonts::loadConfig(KConfig *) m_embedfonts->setChecked(settings.readBoolEntry("/qt/embedFonts", true)); QStringList paths = settings.readListEntry("/qt/fontPath", ':'); QListViewItem *item(0); - for (QStringList::ConstIterator it=paths.begin(); it!=paths.end(); ++it) - item = new QListViewItem(m_fontpath, item, *it); + for (TQStringList::ConstIterator it=paths.begin(); it!=paths.end(); ++it) + item = new TQListViewItem(m_fontpath, item, *it); } void KMConfigFonts::saveConfig(KConfig *) @@ -142,7 +142,7 @@ void KMConfigFonts::slotAdd() QListViewItem *lastItem(m_fontpath->firstChild()); while (lastItem && lastItem->nextSibling()) lastItem = lastItem->nextSibling(); - QListViewItem *item = new QListViewItem(m_fontpath, lastItem, m_addpath->url()); + QListViewItem *item = new TQListViewItem(m_fontpath, lastItem, m_addpath->url()); m_fontpath->setSelected(item, true); } @@ -159,7 +159,7 @@ void KMConfigFonts::slotUp() QListViewItem *citem = m_fontpath->selectedItem(), *nitem = 0; if (!citem || !citem->itemAbove()) return; - nitem = new QListViewItem(m_fontpath, citem->itemAbove()->itemAbove(), citem->text(0)); + nitem = new TQListViewItem(m_fontpath, citem->itemAbove()->itemAbove(), citem->text(0)); delete citem; m_fontpath->setSelected(nitem, true); } @@ -169,12 +169,12 @@ void KMConfigFonts::slotDown() QListViewItem *citem = m_fontpath->selectedItem(), *nitem = 0; if (!citem || !citem->itemBelow()) return; - nitem = new QListViewItem(m_fontpath, citem->itemBelow(), citem->text(0)); + nitem = new TQListViewItem(m_fontpath, citem->itemBelow(), citem->text(0)); delete citem; m_fontpath->setSelected(nitem, true); } -void KMConfigFonts::slotTextChanged(const QString& t) +void KMConfigFonts::slotTextChanged(const TQString& t) { m_add->setEnabled(!t.isEmpty()); } |