summaryrefslogtreecommitdiffstats
path: root/kdeprint/foomatic2loader.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-01-03 04:12:51 +0000
commit560378aaca1784ba19806a0414a32b20c744de39 (patch)
treece0dfd7c3febf2a1adc7603d1019a8be2083c415 /kdeprint/foomatic2loader.cpp
parentd4d5af1cdbd3cc65d095e0afc5b1f4260091cf5d (diff)
downloadtdelibs-560378aaca1784ba19806a0414a32b20c744de39.tar.gz
tdelibs-560378aaca1784ba19806a0414a32b20c744de39.zip
Automated conversion for enhanced compatibility with TQt for Qt4 3.4.0 TP1
NOTE: This will not compile with Qt4 (yet), however it does compile with Qt3 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1211081 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdeprint/foomatic2loader.cpp')
-rw-r--r--kdeprint/foomatic2loader.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kdeprint/foomatic2loader.cpp b/kdeprint/foomatic2loader.cpp
index 4ca1464dd..2e00feae3 100644
--- a/kdeprint/foomatic2loader.cpp
+++ b/kdeprint/foomatic2loader.cpp
@@ -141,7 +141,7 @@ DrMain* Foomatic2Loader::buildDriver() const
if ( m_foodata.isEmpty() )
return NULL;
- TQVariant v = m_foodata.find( "VAR" ).data();
+ TQVariant v = m_foodata.tqfind( "VAR" ).data();
if ( !v.isNull() && v.type() == TQVariant::Map )
{
DrMain *driver = new DrMain;
@@ -151,8 +151,8 @@ DrMain* Foomatic2Loader::buildDriver() const
driver->set( "matic_printer", v.mapFind( "id" ).data().toString() );
driver->set( "matic_driver", v.mapFind( "driver" ).data().toString() );
driver->set( "text", TQString( "%1 %2 (%3)" ).arg( driver->get( "manufacturer" ) ).arg( driver->get( "model" ) ).arg( driver->get( "matic_driver" ) ) );
- if ( m_foodata.contains( "POSTPIPE" ) )
- driver->set( "postpipe", m_foodata.find( "POSTPIPE" ).data().toString() );
+ if ( m_foodata.tqcontains( "POSTPIPE" ) )
+ driver->set( "postpipe", m_foodata.tqfind( "POSTPIPE" ).data().toString() );
v = v.mapFind( "args" ).data();
if ( !v.isNull() && v.type() == TQVariant::List )
{
@@ -166,7 +166,7 @@ DrMain* Foomatic2Loader::buildDriver() const
{
TQString group = DrGroup::groupForOption( opt->name() );
DrGroup *grp = NULL;
- if ( !groups.contains( group ) )
+ if ( !groups.tqcontains( group ) )
{
grp = new DrGroup;
grp->set( "text", group );
@@ -211,7 +211,7 @@ DrMain* Foomatic2Loader::modifyDriver( DrMain *driver ) const
TQValueList<DrBase*> optList;
DrGroup *grp = NULL;
- TQVariant V = m_foodata.find( "VAR" ).data();
+ TQVariant V = m_foodata.tqfind( "VAR" ).data();
if ( !V.isNull() && V.type() == TQVariant::Map )
{
TQVariant v = V.mapFind( "args" ).data();
@@ -268,7 +268,7 @@ DrMain* Foomatic2Loader::modifyDriver( DrMain *driver ) const
grp->set( "text", i18n( "Adjustments" ) );
driver->addGroup( grp );
}
- DrBase *oldOpt = driver->findOption( opt->name() );
+ DrBase *oldOpt = driver->tqfindOption( opt->name() );
if ( oldOpt && oldOpt->type() == DrBase::List )
{
TQPtrListIterator<DrBase> it( *( static_cast<DrListOption*>( oldOpt )->choices() ) );