diff options
Diffstat (limited to 'kiosktool/filetypeeditComponent.cpp')
-rw-r--r-- | kiosktool/filetypeeditComponent.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/kiosktool/filetypeeditComponent.cpp b/kiosktool/filetypeeditComponent.cpp index 4e3fbaa..ce9b815 100644 --- a/kiosktool/filetypeeditComponent.cpp +++ b/kiosktool/filetypeeditComponent.cpp @@ -19,9 +19,9 @@ #include "filetypeeditComponent.h" -#include <qdir.h> -#include <qdom.h> -#include <qfileinfo.h> +#include <tqdir.h> +#include <tqdom.h> +#include <tqfileinfo.h> #include <kapplication.h> #include <kdebug.h> @@ -35,7 +35,7 @@ #include "kioskrun.h" #include "kiosksync.h" -FileTypeEditComponent::FileTypeEditComponent( QObject *parent) +FileTypeEditComponent::FileTypeEditComponent( TQObject *parent) : Component(parent) { } @@ -61,15 +61,15 @@ FileTypeEditComponent::setupFinished() // Install mimetype files { - QString mimetypeFiles = KioskRun::self()->locateLocal("mime", QString::null); - QString mimetypeSaveFiles = KioskRun::self()->locateSave("mime", QString::null); + TQString mimetypeFiles = KioskRun::self()->locateLocal("mime", TQString()); + TQString mimetypeSaveFiles = KioskRun::self()->locateSave("mime", TQString()); KioskSync mimeDir(kapp->mainWidget()); mimeDir.addDir(mimetypeFiles, KURL()); - QStringList newMimetypeFiles = mimeDir.listFiles(); + TQStringList newMimetypeFiles = mimeDir.listFiles(); - for(QStringList::ConstIterator it = newMimetypeFiles.begin(); + for(TQStringList::ConstIterator it = newMimetypeFiles.begin(); it != newMimetypeFiles.end(); ++it) { if ((*it).endsWith(".desktop")) @@ -83,15 +83,15 @@ FileTypeEditComponent::setupFinished() // Install legacy .desktop files { - QString legacyApplications = KioskRun::self()->locateLocal("apps", QString::null); - QString legacySaveApplications = KioskRun::self()->locateSave("apps", QString::null); + TQString legacyApplications = KioskRun::self()->locateLocal("apps", TQString()); + TQString legacySaveApplications = KioskRun::self()->locateSave("apps", TQString()); KioskSync legacyDir(kapp->mainWidget()); legacyDir.addDir(legacyApplications, KURL()); - QStringList newLegacyApplications = legacyDir.listFiles(); + TQStringList newLegacyApplications = legacyDir.listFiles(); - for(QStringList::ConstIterator it = newLegacyApplications.begin(); + for(TQStringList::ConstIterator it = newLegacyApplications.begin(); it != newLegacyApplications.end(); ++it) { if ((*it).endsWith(".desktop") || (*it).endsWith(".kdelnk") || (*it).endsWith(".directory")) @@ -105,15 +105,15 @@ FileTypeEditComponent::setupFinished() // Install .desktop files { - QString xdgApplications = KioskRun::self()->locateLocal("xdgdata-apps", QString::null); - QString xdgSaveApplications = KioskRun::self()->locateSave("xdgdata-apps", QString::null); + TQString xdgApplications = KioskRun::self()->locateLocal("xdgdata-apps", TQString()); + TQString xdgSaveApplications = KioskRun::self()->locateSave("xdgdata-apps", TQString()); - QDir dir(xdgApplications); - QStringList newXdgApplications = dir.entryList(QDir::All, QDir::Unsorted); + TQDir dir(xdgApplications); + TQStringList newXdgApplications = dir.entryList(TQDir::All, TQDir::Unsorted); newXdgApplications.remove("."); newXdgApplications.remove(".."); - for(QStringList::ConstIterator it = newXdgApplications.begin(); + for(TQStringList::ConstIterator it = newXdgApplications.begin(); it != newXdgApplications.end(); ++it) { if ((*it).endsWith(".desktop") || (*it).endsWith(".kdelnk")) |