diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-01-07 03:45:53 +0000 |
commit | 10308be19ef7fa44699562cc75946e7ea1fdf6b9 (patch) | |
tree | 4bc444c00a79e88105f2cfce5b6209994c413ca0 /kdeprint/driver.cpp | |
parent | 307136d8eef0ba133b78ceee8e901138d4c996a1 (diff) | |
download | tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.tar.gz tdelibs-10308be19ef7fa44699562cc75946e7ea1fdf6b9.zip |
Revert automated changes
Sorry guys, they are just not ready for prime time
Work will continue as always
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/driver.cpp')
-rw-r--r-- | kdeprint/driver.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kdeprint/driver.cpp b/kdeprint/driver.cpp index 39ca77e06..ce411f0a4 100644 --- a/kdeprint/driver.cpp +++ b/kdeprint/driver.cpp @@ -61,7 +61,7 @@ DriverItem* DrBase::createItem(DriverItem *parent, DriverItem *after) void DrBase::setOptions(const TQMap<TQString,TQString>& opts) { - if (opts.tqcontains(name())) setValueText(opts[name()]); + if (opts.contains(name())) setValueText(opts[name()]); } void DrBase::getOptions(TQMap<TQString,TQString>& opts, bool incldef) @@ -138,7 +138,7 @@ void DrMain::addPageSize(DrPageSize *ps) void DrMain::removeOptionGlobally(const TQString& name) { DrGroup *grp(0); - DrBase *opt = tqfindOption(name, &grp); + DrBase *opt = findOption(name, &grp); if (opt && grp) { @@ -151,7 +151,7 @@ void DrMain::removeOptionGlobally(const TQString& name) void DrMain::removeGroupGlobally(DrGroup *grp) { DrGroup *parent(0); - if (tqfindGroup(grp, &parent) && parent) + if (findGroup(grp, &parent) && parent) { parent->removeGroup(grp); if (parent->isEmpty() && parent != this) @@ -224,7 +224,7 @@ void DrGroup::addObject(DrBase *optgrp) void DrGroup::removeOption(const TQString& name) { - DrBase *opt = m_options.tqfind(name); + DrBase *opt = m_options.find(name); if (opt) { m_listoptions.removeRef(opt); @@ -262,28 +262,28 @@ void DrGroup::createTree(DriverItem *parent) item = dit.current()->createItem(parent, item); } -DrBase* DrGroup::tqfindOption(const TQString& name, DrGroup **parentGroup) +DrBase* DrGroup::findOption(const TQString& name, DrGroup **parentGroup) { - DrBase *opt = m_options.tqfind(name); + DrBase *opt = m_options.find(name); if (!opt) { TQPtrListIterator<DrGroup> it(m_subgroups); for (;it.current() && !opt; ++it) - opt = it.current()->tqfindOption(name, parentGroup); + opt = it.current()->findOption(name, parentGroup); } else if (parentGroup) *parentGroup = this; return opt; } -DrGroup* DrGroup::tqfindGroup(DrGroup *grp, DrGroup ** parentGroup) +DrGroup* DrGroup::findGroup(DrGroup *grp, DrGroup ** parentGroup) { - DrGroup *group = (m_subgroups.tqfindRef(grp) == -1 ? 0 : grp); + DrGroup *group = (m_subgroups.findRef(grp) == -1 ? 0 : grp); if (!group) { TQPtrListIterator<DrGroup> it(m_subgroups); for (;it.current() && !group; ++it) - group = it.current()->tqfindGroup(grp, parentGroup); + group = it.current()->findGroup(grp, parentGroup); } else if (parentGroup) *parentGroup = this; @@ -334,7 +334,7 @@ void DrGroup::flattenGroup(TQMap<TQString, DrBase*>& optmap, int& index) optmap[oit.current()->name()] = oit.current(); if (name().isEmpty()) - optmap[TQString::tqfromLatin1("group%1").arg(index++)] = this; + optmap[TQString::fromLatin1("group%1").arg(index++)] = this; else optmap[name()] = this; @@ -567,7 +567,7 @@ TQString DrListOption::prettyText() void DrListOption::setValueText(const TQString& s) { - m_current = tqfindChoice(s); + m_current = findChoice(s); if (!m_current) { bool ok; @@ -577,7 +577,7 @@ void DrListOption::setValueText(const TQString& s) } } -DrBase* DrListOption::tqfindChoice(const TQString& txt) +DrBase* DrListOption::findChoice(const TQString& txt) { TQPtrListIterator<DrBase> it(m_choices); for (;it.current();++it) @@ -647,8 +647,8 @@ DrConstraint::DrConstraint(const DrConstraint& d) bool DrConstraint::check(DrMain *driver) { - if (!m_option1) m_option1 = (DrListOption*)driver->tqfindOption(m_opt1); - if (!m_option2) m_option2 = (DrListOption*)driver->tqfindOption(m_opt2); + if (!m_option1) m_option1 = (DrListOption*)driver->findOption(m_opt1); + if (!m_option2) m_option2 = (DrListOption*)driver->findOption(m_opt2); if (m_option1 && m_option2 && m_option1->currentChoice() && m_option2->currentChoice()) { bool f1(false), f2(false); |