diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-16 02:40:35 +0000 |
commit | bab40890696ec68c337dc290880423a0602b83c7 (patch) | |
tree | 6ba03f720b1fa88235ba339e7aedb4455430357e /kdeprint/cups/kmwbanners.cpp | |
parent | f7e71d47719ab6094cf4a9fafffa5ea351973522 (diff) | |
download | tdelibs-bab40890696ec68c337dc290880423a0602b83c7.tar.gz tdelibs-bab40890696ec68c337dc290880423a0602b83c7.zip |
Finished remaining porting to new TQt API
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214736 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/cups/kmwbanners.cpp')
-rw-r--r-- | kdeprint/cups/kmwbanners.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kdeprint/cups/kmwbanners.cpp b/kdeprint/cups/kmwbanners.cpp index 7755e9774..72964c697 100644 --- a/kdeprint/cups/kmwbanners.cpp +++ b/kdeprint/cups/kmwbanners.cpp @@ -31,7 +31,7 @@ TQStringList defaultBanners() { - QStringList bans; + TQStringList bans; TQPtrList<KMPrinter> *list = KMFactory::self()->manager()->printerList(false); if (list && list->count() > 0) { @@ -39,7 +39,7 @@ TQStringList defaultBanners() for (;it.current() && !it.current()->isPrinter(); ++it) ; if (it.current() && KMFactory::self()->manager()->completePrinter(it.current())) { - QString s = list->getFirst()->option("kde-banners-supported"); + TQString s = list->getFirst()->option("kde-banners-supported"); bans = TQStringList::split(',',s,false); } } @@ -89,18 +89,18 @@ KMWBanners::KMWBanners(TQWidget *parent, const char *name) m_start = new TQComboBox(this); m_end = new TQComboBox(this); - QLabel *l1 = new TQLabel(i18n("&Starting banner:"),this); - QLabel *l2 = new TQLabel(i18n("&Ending banner:"),this); + TQLabel *l1 = new TQLabel(i18n("&Starting banner:"),this); + TQLabel *l2 = new TQLabel(i18n("&Ending banner:"),this); l1->setBuddy(m_start); l2->setBuddy(m_end); - QLabel *l0 = new TQLabel(this); + TQLabel *l0 = new TQLabel(this); l0->setText(i18n("<p>Select the default banners associated with this printer. These " "banners will be inserted before and/or after each print job sent " "to the printer. If you don't want to use banners, select <b>No Banner</b>.</p>")); - QGridLayout *lay = new TQGridLayout(this, 5, 2, 0, 10); + TQGridLayout *lay = new TQGridLayout(this, 5, 2, 0, 10); lay->setColStretch(1,1); lay->addRowSpacing(1,20); lay->setRowStretch(4,1); @@ -128,11 +128,11 @@ void KMWBanners::initPrinter(KMPrinter *p) m_end->insertItem( i18n( mapBanner(*it).utf8() ) ); } } - QStringList l = TQStringList::split(',',p->option("kde-banners"),false); + TQStringList l = TQStringList::split(',',p->option("kde-banners"),false); while (l.count() < 2) l.append("none"); - m_start->setCurrentItem(m_bans.findIndex(l[0])); - m_end->setCurrentItem(m_bans.findIndex(l[1])); + m_start->setCurrentItem(m_bans.tqfindIndex(l[0])); + m_end->setCurrentItem(m_bans.tqfindIndex(l[1])); } } |