diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kppp/logview/log.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kppp/logview/log.cpp')
-rw-r--r-- | kppp/logview/log.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kppp/logview/log.cpp b/kppp/logview/log.cpp index b0251d53..93be0098 100644 --- a/kppp/logview/log.cpp +++ b/kppp/logview/log.cpp @@ -23,37 +23,37 @@ #include <stdlib.h> #include <stdio.h> -#include <qprogressdialog.h> -#include <qdir.h> +#include <tqprogressdialog.h> +#include <tqdir.h> #include <kapplication.h> #include <klocale.h> #include <kstandarddirs.h> #include <kdebug.h> -QPtrList<LogInfo> logList; -QProgressDialog *dlg; +TQPtrList<LogInfo> logList; +TQProgressDialog *dlg; int loadLogs() { int logsize = 0; - QString logdirname = locateLocal("data", "kppp/Log/"); - QDir logdir(logdirname, "*.log"); + TQString logdirname = locateLocal("data", "kppp/Log/"); + TQDir logdir(logdirname, "*.log"); kdDebug(5002) << "logdirname: " << logdirname << endl; // get log file size const QFileInfoList *list = logdir.entryInfoList(); QFileInfoListIterator it( *list ); - QFileInfo *fi; + TQFileInfo *fi; while ((fi = it.current()) != 0) { logsize += fi->size(); ++it; } - dlg = new QProgressDialog(i18n("Loading log files"), - QString::null, + dlg = new TQProgressDialog(i18n("Loading log files"), + TQString::null, logsize); dlg->setProgress(0); @@ -71,11 +71,11 @@ int loadLogs() { return retval; } -int loadLog(QString fname) { +int loadLog(TQString fname) { FILE *f; int warning=0; - f = fopen(QFile::encodeName(fname), "r"); + f = fopen(TQFile::encodeName(fname), "r"); if(f == NULL) return 1; |