diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-29 16:05:55 +0000 |
commit | 87a016680e3677da3993f333561e79eb0cead7d5 (patch) | |
tree | cbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/filemetainfo.cpp | |
parent | 6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff) | |
download | ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip |
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/filemetainfo.cpp')
-rw-r--r-- | src/filemetainfo.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/filemetainfo.cpp b/src/filemetainfo.cpp index 34baccd..7c3c630 100644 --- a/src/filemetainfo.cpp +++ b/src/filemetainfo.cpp @@ -57,7 +57,7 @@ void MetaInfo::load( KConfig * conf ) } -OutputMethodInfo::Method::Type MetaInfo::toMethod( const QString & id ) +OutputMethodInfo::Method::Type MetaInfo::toMethod( const TQString & id ) { if ( id == "SaveAndLoad" ) return OutputMethodInfo::Method::SaveAndLoad; @@ -69,7 +69,7 @@ OutputMethodInfo::Method::Type MetaInfo::toMethod( const QString & id ) } -QString MetaInfo::toID( OutputMethodInfo::Method::Type method ) +TQString MetaInfo::toID( OutputMethodInfo::Method::Type method ) { switch (method) { @@ -89,7 +89,7 @@ QString MetaInfo::toID( OutputMethodInfo::Method::Type method ) //BEGIN class FileMetaInfo FileMetaInfo::FileMetaInfo() - : QObject() + : TQObject() { m_metaInfoConfig = new KConfig( "metainfo", false, false, "appdata" ); loadAllMetaInfo(); @@ -153,7 +153,7 @@ void FileMetaInfo::grabMetaInfo( const KURL & url, OutputMethodDlg * dlg ) void FileMetaInfo::initializeFromMetaInfo( const KURL & url, OutputMethodDlg * dlg ) { - if ( !dlg || url.isEmpty() || !m_metaInfoMap.contains(url) ) + if ( !dlg || url.isEmpty() || !m_metaInfoMap.tqcontains(url) ) return; OutputMethodInfo::Method::Type method = m_metaInfoMap[url].outputMethodInfo().method(); @@ -185,9 +185,9 @@ void FileMetaInfo::saveAllMetaInfo() void FileMetaInfo::loadAllMetaInfo() { - QStringList urlList = m_metaInfoConfig->groupList(); - const QStringList::iterator end = urlList.end(); - for ( QStringList::iterator it = urlList.begin(); it != end; ++it ) + TQStringList urlList = m_metaInfoConfig->groupList(); + const TQStringList::iterator end = urlList.end(); + for ( TQStringList::iterator it = urlList.begin(); it != end; ++it ) { m_metaInfoConfig->setGroup(*it); m_metaInfoMap[*it].load(m_metaInfoConfig); |