diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
commit | 0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch) | |
tree | 2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kig/misc/kigfiledialog.cc | |
parent | 83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff) | |
download | tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kig/misc/kigfiledialog.cc')
-rw-r--r-- | kig/misc/kigfiledialog.cc | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kig/misc/kigfiledialog.cc b/kig/misc/kigfiledialog.cc index 6b8d8cb4..2d7ea08f 100644 --- a/kig/misc/kigfiledialog.cc +++ b/kig/misc/kigfiledialog.cc @@ -18,14 +18,14 @@ #include "kigfiledialog.h" #include "kigfiledialog.moc" -#include <qfile.h> -#include <qpoint.h> +#include <tqfile.h> +#include <tqpoint.h> #include <klocale.h> #include <kmessagebox.h> -KigFileDialog::KigFileDialog( const QString& startDir, const QString& filter, - const QString& caption, QWidget* parent ) +KigFileDialog::KigFileDialog( const TQString& startDir, const TQString& filter, + const TQString& caption, TQWidget* parent ) : KFileDialog( startDir, filter, parent, "kigfiledialog", true ), mow( 0L ) { @@ -35,7 +35,7 @@ KigFileDialog::KigFileDialog( const QString& startDir, const QString& filter, moptcaption = i18n( "Options" ); } -void KigFileDialog::setOptionsWidget( QWidget* w ) +void KigFileDialog::setOptionsWidget( TQWidget* w ) { mow = w; } @@ -46,10 +46,10 @@ void KigFileDialog::accept() // the selected file name _before_ the dialog is accept()'ed or // reject()'ed... in every case, below we make sure to accept() or // reject()... - setResult( QDialog::Accepted ); + setResult( TQDialog::Accepted ); - QString sFile = selectedFile(); - if ( QFile::exists( sFile ) ) + TQString sFile = selectedFile(); + if ( TQFile::exists( sFile ) ) { int ret = KMessageBox::warningContinueCancel( this, i18n( "The file \"%1\" already exists. Do you wish to overwrite it?" ) @@ -64,15 +64,15 @@ void KigFileDialog::accept() { KDialogBase* optdlg = new KDialogBase( this, "optdlg", true, moptcaption, Cancel|Ok, Cancel, true ); - mow->reparent( optdlg, QPoint() ); + mow->reparent( optdlg, TQPoint() ); optdlg->setMainWidget( mow ); - optdlg->exec() == QDialog::Accepted ? KFileDialog::accept() : KFileDialog::reject(); + optdlg->exec() == TQDialog::Accepted ? KFileDialog::accept() : KFileDialog::reject(); } else KFileDialog::accept(); } -void KigFileDialog::setOptionCaption( const QString& caption ) +void KigFileDialog::setOptionCaption( const TQString& caption ) { if ( caption.isEmpty() ) return; |