diff options
Diffstat (limited to 'src/gui/dialogs/UnusedAudioSelectionDialog.cpp')
-rw-r--r-- | src/gui/dialogs/UnusedAudioSelectionDialog.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/gui/dialogs/UnusedAudioSelectionDialog.cpp b/src/gui/dialogs/UnusedAudioSelectionDialog.cpp index 0a44168..b15fe07 100644 --- a/src/gui/dialogs/UnusedAudioSelectionDialog.cpp +++ b/src/gui/dialogs/UnusedAudioSelectionDialog.cpp @@ -28,25 +28,25 @@ #include <klocale.h> #include <kdialogbase.h> #include <klistview.h> -#include <qfileinfo.h> -#include <qlabel.h> -#include <qlistview.h> -#include <qstring.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqfileinfo.h> +#include <tqlabel.h> +#include <tqlistview.h> +#include <tqstring.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -UnusedAudioSelectionDialog::UnusedAudioSelectionDialog(QWidget *parent, - QString introductoryText, - std::vector<QString> fileNames, +UnusedAudioSelectionDialog::UnusedAudioSelectionDialog(TQWidget *parent, + TQString introductoryText, + std::vector<TQString> fileNames, bool offerCancel) : KDialogBase(parent, 0, true, i18n("Select Unused Audio Files"), (offerCancel ? (Ok | Cancel) : Ok)) { - QVBox *vbox = makeVBoxMainWidget(); - new QLabel(introductoryText, vbox); + TQVBox *vbox = makeVBoxMainWidget(); + new TQLabel(introductoryText, vbox); m_listView = new KListView(vbox); @@ -55,27 +55,27 @@ UnusedAudioSelectionDialog::UnusedAudioSelectionDialog(QWidget *parent, m_listView->addColumn(i18n("Last modified date")); for (unsigned int i = 0; i < fileNames.size(); ++i) { - QString fileName = fileNames[i]; - QFileInfo info(fileName); - QString fileSize = i18n(" (not found) "); - QString fileDate; + TQString fileName = fileNames[i]; + TQFileInfo info(fileName); + TQString fileSize = i18n(" (not found) "); + TQString fileDate; if (info.exists()) { - fileSize = QString(" %1 ").arg(info.size()); - fileDate = QString(" %1 ").arg(info.lastModified().toString()); + fileSize = TQString(" %1 ").arg(info.size()); + fileDate = TQString(" %1 ").arg(info.lastModified().toString()); } - QListViewItem *item = new KListViewItem + TQListViewItem *item = new KListViewItem (m_listView, fileName, fileSize, fileDate); } - m_listView->setSelectionMode(QListView::Multi); + m_listView->setSelectionMode(TQListView::Multi); } -std::vector<QString> +std::vector<TQString> UnusedAudioSelectionDialog::getSelectedAudioFileNames() const { - std::vector<QString> selectedNames; + std::vector<TQString> selectedNames; - QListViewItem *item = m_listView->firstChild(); + TQListViewItem *item = m_listView->firstChild(); while (item) { |