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/kmconfigfilter.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/kmconfigfilter.cpp')
-rw-r--r-- | kdeprint/management/kmconfigfilter.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/kdeprint/management/kmconfigfilter.cpp b/kdeprint/management/kmconfigfilter.cpp index 1a62112f7..10dff4749 100644 --- a/kdeprint/management/kmconfigfilter.cpp +++ b/kdeprint/management/kmconfigfilter.cpp @@ -21,12 +21,12 @@ #include "kmmanager.h" #include "kmfactory.h" -#include <qgroupbox.h> -#include <qlineedit.h> -#include <qtoolbutton.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qapplication.h> +#include <tqgroupbox.h> +#include <tqlineedit.h> +#include <tqtoolbutton.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqapplication.h> #include <klocale.h> #include <kconfig.h> @@ -34,38 +34,38 @@ #include <klistbox.h> #include <kdialog.h> -KMConfigFilter::KMConfigFilter(QWidget *parent, const char *name) +KMConfigFilter::KMConfigFilter(TQWidget *parent, const char *name) : KMConfigPage(parent, name) { setPageName(i18n("Filter")); setPageHeader(i18n("Printer Filtering Settings")); setPagePixmap("filter"); - QGroupBox *box = new QGroupBox(0, Qt::Vertical, i18n("Printer Filter"), this); + QGroupBox *box = new TQGroupBox(0, Qt::Vertical, i18n("Printer Filter"), this); m_list1 = new KListBox(box); m_list1->setSelectionMode(KListBox::Extended); m_list2 = new KListBox(box); m_list2->setSelectionMode(KListBox::Extended); - m_add = new QToolButton( box ); - m_add->setIconSet(QApplication::reverseLayout() ? SmallIconSet( "back" ) : SmallIconSet( "forward" )); - m_remove = new QToolButton( box ); - m_remove->setIconSet(QApplication::reverseLayout() ? SmallIconSet( "forward" ) : SmallIconSet( "back" )); - m_locationre = new QLineEdit(box); - QLabel *lab = new QLabel(box); + m_add = new TQToolButton( box ); + m_add->setIconSet(TQApplication::reverseLayout() ? SmallIconSet( "back" ) : SmallIconSet( "forward" )); + m_remove = new TQToolButton( box ); + m_remove->setIconSet(TQApplication::reverseLayout() ? SmallIconSet( "forward" ) : SmallIconSet( "back" )); + m_locationre = new TQLineEdit(box); + QLabel *lab = new TQLabel(box); lab->setText(i18n("The printer filtering allows you to view only a specific set of " "printers instead of all of them. This may be useful when there are a " "lot of printers available but you only use a few ones. Select the " "printers you want to see from the list on the left or enter a <b>Location</b> " "filter (ex: Group_1*). Both are cumulative and ignored if empty.")); lab->setTextFormat(Qt::RichText); - QLabel *lab1 = new QLabel(i18n("Location filter:"), box); + QLabel *lab1 = new TQLabel(i18n("Location filter:"), box); - QVBoxLayout *l0 = new QVBoxLayout(this, 0, KDialog::spacingHint()); + QVBoxLayout *l0 = new TQVBoxLayout(this, 0, KDialog::spacingHint()); l0->addWidget(box, 1); - QVBoxLayout *l1 = new QVBoxLayout(box->layout(), KDialog::spacingHint()); + QVBoxLayout *l1 = new TQVBoxLayout(box->layout(), KDialog::spacingHint()); l1->addWidget(lab); - QGridLayout *l2 = new QGridLayout(0, 4, 3, 0, KDialog::spacingHint()); + QGridLayout *l2 = new TQGridLayout(0, 4, 3, 0, KDialog::spacingHint()); l1->addLayout(l2); l2->setRowStretch(0, 1); l2->setRowStretch(3, 1); @@ -75,15 +75,15 @@ KMConfigFilter::KMConfigFilter(QWidget *parent, const char *name) l2->addMultiCellWidget(m_list2, 0, 3, 2, 2); l2->addWidget(m_add, 1, 1); l2->addWidget(m_remove, 2, 1); - QHBoxLayout *l3 = new QHBoxLayout(0, 0, KDialog::spacingHint()); + QHBoxLayout *l3 = new TQHBoxLayout(0, 0, KDialog::spacingHint()); l1->addLayout(l3, 0); l3->addWidget(lab1, 0); l3->addWidget(m_locationre, 1); - connect(m_add, SIGNAL(clicked()), SLOT(slotAddClicked())); - connect(m_remove, SIGNAL(clicked()), SLOT(slotRemoveClicked())); - connect(m_list1, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged())); - connect(m_list2, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged())); + connect(m_add, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddClicked())); + connect(m_remove, TQT_SIGNAL(clicked()), TQT_SLOT(slotRemoveClicked())); + connect(m_list1, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotSelectionChanged())); + connect(m_list2, TQT_SIGNAL(selectionChanged()), TQT_SLOT(slotSelectionChanged())); m_add->setEnabled(false); m_remove->setEnabled(false); } @@ -92,7 +92,7 @@ void KMConfigFilter::loadConfig(KConfig *conf) { conf->setGroup("Filter"); QStringList m_plist = conf->readListEntry("Printers"); - QPtrListIterator<KMPrinter> it(*(KMManager::self()->printerListComplete(false))); + TQPtrListIterator<KMPrinter> it(*(KMManager::self()->printerListComplete(false))); for (; it.current(); ++it) { if (!it.current()->isSpecial() && !it.current()->isVirtual()) |