diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/dialogs/FileLocateDialog.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/dialogs/FileLocateDialog.cpp')
-rw-r--r-- | src/gui/dialogs/FileLocateDialog.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gui/dialogs/FileLocateDialog.cpp b/src/gui/dialogs/FileLocateDialog.cpp index 4f153c8..5b2a370 100644 --- a/src/gui/dialogs/FileLocateDialog.cpp +++ b/src/gui/dialogs/FileLocateDialog.cpp @@ -29,19 +29,19 @@ #include "misc/Debug.h" #include <kdialogbase.h> #include <kfiledialog.h> -#include <qfileinfo.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqfileinfo.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqstring.h> +#include <tqwidget.h> namespace Rosegarden { -FileLocateDialog::FileLocateDialog(QWidget *parent, - const QString &file, - const QString & /*path*/): +FileLocateDialog::FileLocateDialog(TQWidget *parent, + const TQString &file, + const TQString & /*path*/): KDialogBase(parent, 0, true, i18n("Locate audio file"), User1 | User2 | User3, @@ -52,12 +52,12 @@ FileLocateDialog::FileLocateDialog(QWidget *parent, i18n("&Locate")), m_file(file) { - QHBox *w = makeHBoxMainWidget(); - QString label = + TQHBox *w = makeHBoxMainWidget(); + TQString label = i18n("Can't find file \"%1\".\n" "Would you like to try and locate this file or skip it?").arg(m_file); - QLabel *labelW = new QLabel(label, w); + TQLabel *labelW = new TQLabel(label, w); labelW->setAlignment(Qt::AlignCenter); labelW->setMinimumHeight(60); } @@ -69,8 +69,8 @@ FileLocateDialog::slotUser3() m_file = KFileDialog::getOpenFileName (":WAVS", i18n("%1|Requested file (%2)\n*.wav|WAV files (*.wav)") - .arg(QFileInfo(m_file).fileName()) - .arg(QFileInfo(m_file).fileName()), + .arg(TQFileInfo(m_file).fileName()) + .arg(TQFileInfo(m_file).fileName()), this, i18n("Select an Audio File")); RG_DEBUG << "FileLocateDialog::slotUser3() : m_file = " << m_file << endl; @@ -79,7 +79,7 @@ FileLocateDialog::slotUser3() RG_DEBUG << "FileLocateDialog::slotUser3() : reject\n"; reject(); } else { - QFileInfo fileInfo(m_file); + TQFileInfo fileInfo(m_file); m_path = fileInfo.dirPath(); accept(); } |