diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:33:34 +0000 |
commit | c663b6440964f6ac48027143ac9e63298991f9d0 (patch) | |
tree | 6d8b0c5a5f9db1ee16acf98b1397cea9126b281d /kwin/clients/kwmtheme/cli_installer/main.cpp | |
parent | a061f7191beebb0e4a3b0c0a7c534ec5f22f2dc7 (diff) | |
download | tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.tar.gz tdebase-c663b6440964f6ac48027143ac9e63298991f9d0.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwin/clients/kwmtheme/cli_installer/main.cpp')
-rw-r--r-- | kwin/clients/kwmtheme/cli_installer/main.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kwin/clients/kwmtheme/cli_installer/main.cpp b/kwin/clients/kwmtheme/cli_installer/main.cpp index bdc04a1de..abf2bad3d 100644 --- a/kwin/clients/kwmtheme/cli_installer/main.cpp +++ b/kwin/clients/kwmtheme/cli_installer/main.cpp @@ -1,5 +1,5 @@ -#include <qfile.h> -#include <qdir.h> +#include <tqfile.h> +#include <tqdir.h> #include <kapplication.h> #include <ksimpleconfig.h> #include <kglobal.h> @@ -17,10 +17,10 @@ static KCmdLineOptions options[] = KCmdLineLastOption }; -void copy(const QString &src, const QString &dest) +void copy(const TQString &src, const TQString &dest) { - QFile copyInput(src); - QFile copyOutput(dest); + TQFile copyInput(src); + TQFile copyOutput(dest); if(!copyInput.open(IO_ReadOnly)){ kdWarning() << "Couldn't open " << src << endl; return; @@ -48,25 +48,25 @@ int main(int argc, char **argv) return(1); } - QString srcStr = QString(QFile::decodeName(args->arg(0))); - QFile f(srcStr); - QString tmpStr; + TQString srcStr = TQString(TQFile::decodeName(args->arg(0))); + TQFile f(srcStr); + TQString tmpStr; if(!f.exists()){ kdWarning() << "Specified theme config file doesn't exist!" << endl; return(2); } - QStringList appDirs = KGlobal::dirs()->findDirs("data", "kwin"); - QString localDirStr = *(appDirs.end()); + TQStringList appDirs = KGlobal::dirs()->findDirs("data", "kwin"); + TQString localDirStr = *(appDirs.end()); if(localDirStr.isEmpty()){ localDirStr = KGlobal::dirs()->saveLocation("data", "kwin"); } localDirStr += "/pics/"; - if(!QFile::exists(localDirStr)) - QDir().mkdir(localDirStr); + if(!TQFile::exists(localDirStr)) + TQDir().mkdir(localDirStr); - QFileInfo fi(f); + TQFileInfo fi(f); KSimpleConfig input(fi.absFilePath()); srcStr = fi.dirPath(true) + "/"; KConfig *output = KGlobal::config(); |