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/management/kmwbackend.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/management/kmwbackend.cpp')
-rw-r--r-- | kdeprint/management/kmwbackend.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kdeprint/management/kmwbackend.cpp b/kdeprint/management/kmwbackend.cpp index 481651e87..0a2958737 100644 --- a/kdeprint/management/kmwbackend.cpp +++ b/kdeprint/management/kmwbackend.cpp @@ -33,7 +33,7 @@ #include <kdialog.h> #include <kdebug.h> -class KRadioButton : public QRadioButton +class KRadioButton : public TQRadioButton { public: KRadioButton(const TQString& txt, TQWidget *parent = 0, const char *name = 0); @@ -73,7 +73,7 @@ bool KMWBackend::isValid(TQString& msg) void KMWBackend::initPrinter(KMPrinter *p) { - QString s = p->option("kde-backend"); + TQString s = p->option("kde-backend"); int ID(-1); if (!s.isEmpty()) @@ -101,10 +101,10 @@ void KMWBackend::updatePrinter(KMPrinter *p) if (ID == KMWizard::Class) p->setType(KMPrinter::Class); else p->setType(KMPrinter::Printer); p->setOption("kde-backend",TQString::number(ID)); - QString s = m_buttons->selected()->text(); + TQString s = m_buttons->selected()->text(); s.replace(TQRegExp("&(?=\\w)"), TQString::tqfromLatin1("")); p->setOption("kde-backend-description",s); - setNextPage((m_map.contains(ID) ? m_map[ID] : KMWizard::Error)); + setNextPage((m_map.tqcontains(ID) ? m_map[ID] : KMWizard::Error)); } void KMWBackend::addBackend( int ID, bool on, int nextpage ) @@ -171,7 +171,7 @@ void KMWBackend::addBackend(int ID, const TQString& txt, bool on, const TQString void KMWBackend::enableBackend(int ID, bool on) { - QButton *btn = m_buttons->find(ID); + TQButton *btn = static_cast<TQButton*>(m_buttons->find(ID)); if (btn) btn->setEnabled(on); } |