diff options
Diffstat (limited to 'src/kvilib/tal/kvi_tal_filedialog.cpp')
-rw-r--r-- | src/kvilib/tal/kvi_tal_filedialog.cpp | 50 |
1 files changed, 25 insertions, 25 deletions
diff --git a/src/kvilib/tal/kvi_tal_filedialog.cpp b/src/kvilib/tal/kvi_tal_filedialog.cpp index b345fd0b..5760a90c 100644 --- a/src/kvilib/tal/kvi_tal_filedialog.cpp +++ b/src/kvilib/tal/kvi_tal_filedialog.cpp @@ -29,10 +29,10 @@ #ifdef COMPILE_USE_QT4 - #include <qdir.h> + #include <tqdir.h> - KviTalFileDialog::KviTalFileDialog(const QString &dirName,const QString &filter,QWidget *parent,const char *name,bool modal) - : QFileDialog(parent,"",dirName,filter) + KviTalFileDialog::KviTalFileDialog(const TQString &dirName,const TQString &filter,TQWidget *tqparent,const char *name,bool modal) + : TQFileDialog(tqparent,"",dirName,filter) { setModal(modal); } @@ -46,29 +46,29 @@ switch(m) { case AnyFile: - QFileDialog::setFileMode(QFileDialog::AnyFile); + TQFileDialog::setFileMode(TQFileDialog::AnyFile); break; case ExistingFile: - QFileDialog::setFileMode(QFileDialog::ExistingFile); + TQFileDialog::setFileMode(TQFileDialog::ExistingFile); break; case ExistingFiles: - QFileDialog::setFileMode(QFileDialog::ExistingFiles); + TQFileDialog::setFileMode(TQFileDialog::ExistingFiles); break; case Directory: - QFileDialog::setFileMode(QFileDialog::Directory); + TQFileDialog::setFileMode(TQFileDialog::Directory); break; case DirectoryOnly: - QFileDialog::setFileMode(QFileDialog::DirectoryOnly); + TQFileDialog::setFileMode(TQFileDialog::DirectoryOnly); break; default: - QFileDialog::setFileMode(QFileDialog::AnyFile); + TQFileDialog::setFileMode(TQFileDialog::AnyFile); break; } } - void KviTalFileDialog::setDirectory(const QString &szDirectory) + void KviTalFileDialog::setDirectory(const TQString &szDirectory) { - QFileDialog::setDirectory(szDirectory); + TQFileDialog::setDirectory(szDirectory); } @@ -78,8 +78,8 @@ #ifdef COMPILE_KDE_SUPPORT - KviTalFileDialog::KviTalFileDialog(const QString &dirName,const QString &filter,QWidget *parent,const char *name,bool modal) - : KFileDialog(dirName,filter,parent,name,modal) + KviTalFileDialog::KviTalFileDialog(const TQString &dirName,const TQString &filter,TQWidget *tqparent,const char *name,bool modal) + : KFileDialog(dirName,filter,tqparent,name,modal) { clearWFlags(WDestructiveClose); } @@ -117,7 +117,7 @@ } } - void KviTalFileDialog::setDirectory(const QString &szDirectory) + void KviTalFileDialog::setDirectory(const TQString &szDirectory) { setURL(szDirectory); } @@ -127,10 +127,10 @@ #else - #include <qdir.h> + #include <tqdir.h> - KviTalFileDialog::KviTalFileDialog(const QString &dirName,const QString &filter,QWidget *parent,const char *name,bool modal) - : QFileDialog(dirName,filter,parent,name,modal) + KviTalFileDialog::KviTalFileDialog(const TQString &dirName,const TQString &filter,TQWidget *tqparent,const char *name,bool modal) + : TQFileDialog(dirName,filter,tqparent,name,modal) { clearWFlags(WDestructiveClose); } @@ -144,29 +144,29 @@ switch(m) { case AnyFile: - setMode(QFileDialog::AnyFile); + setMode(TQFileDialog::AnyFile); break; case ExistingFile: - setMode(QFileDialog::ExistingFile); + setMode(TQFileDialog::ExistingFile); break; case ExistingFiles: - setMode(QFileDialog::ExistingFiles); + setMode(TQFileDialog::ExistingFiles); break; case Directory: - setMode(QFileDialog::Directory); + setMode(TQFileDialog::Directory); break; case DirectoryOnly: - setMode(QFileDialog::DirectoryOnly); + setMode(TQFileDialog::DirectoryOnly); break; default: - setMode(QFileDialog::AnyFile); + setMode(TQFileDialog::AnyFile); break; } } - void KviTalFileDialog::setDirectory(const QString &szDirectory) + void KviTalFileDialog::setDirectory(const TQString &szDirectory) { - setDir(QDir(szDirectory)); + setDir(TQDir(szDirectory)); } |