summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/ImportDeviceDialog.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/dialogs/ImportDeviceDialog.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-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/ImportDeviceDialog.cpp')
-rw-r--r--src/gui/dialogs/ImportDeviceDialog.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/src/gui/dialogs/ImportDeviceDialog.cpp b/src/gui/dialogs/ImportDeviceDialog.cpp
index 58a6ce5..cde1cac 100644
--- a/src/gui/dialogs/ImportDeviceDialog.cpp
+++ b/src/gui/dialogs/ImportDeviceDialog.cpp
@@ -24,7 +24,7 @@
#include "ImportDeviceDialog.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kapplication.h>
#include <klocale.h>
@@ -40,21 +40,21 @@
#include <kmessagebox.h>
#include <kurl.h>
#include <kio/netaccess.h>
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qgroupbox.h>
-#include <qhbox.h>
-#include <qlabel.h>
-#include <qradiobutton.h>
-#include <qstring.h>
-#include <qvbox.h>
-#include <qwidget.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqgroupbox.h>
+#include <tqhbox.h>
+#include <tqlabel.h>
+#include <tqradiobutton.h>
+#include <tqstring.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
namespace Rosegarden
{
-ImportDeviceDialog::ImportDeviceDialog(QWidget *parent, KURL url) :
+ImportDeviceDialog::ImportDeviceDialog(TQWidget *parent, KURL url) :
KDialogBase(parent, "importdevicedialog", true,
i18n("Import from Device..."),
Ok | Cancel, Ok),
@@ -75,14 +75,14 @@ ImportDeviceDialog::~ImportDeviceDialog()
bool
ImportDeviceDialog::doImport()
{
- QVBox *mainFrame = makeVBoxMainWidget();
+ TQVBox *mainFrame = makeVBoxMainWidget();
if (m_url.isEmpty()) {
reject();
return false;
}
- QString target;
+ TQString target;
if (KIO::NetAccess::download(m_url, target) == false) {
KMessageBox::error(this, i18n("Cannot download file %1").arg(m_url.prettyURL()));
return false;
@@ -109,13 +109,13 @@ ImportDeviceDialog::doImport()
return false;
}
- QGroupBox *groupBox = new QGroupBox(2, Qt::Horizontal,
+ TQGroupBox *groupBox = new TQGroupBox(2, Qt::Horizontal,
i18n("Source device"),
mainFrame);
- QHBox *deviceBox = new QHBox(groupBox);
- QHBoxLayout *bl = new QHBoxLayout(deviceBox);
- bl->addWidget(new QLabel(i18n("Import from: "), deviceBox));
+ TQHBox *deviceBox = new TQHBox(groupBox);
+ TQHBoxLayout *bl = new TQHBoxLayout(deviceBox);
+ bl->addWidget(new TQLabel(i18n("Import from: "), deviceBox));
bool showRenameOption = false;
@@ -125,7 +125,7 @@ ImportDeviceDialog::doImport()
bl->addWidget(m_deviceCombo);
} else {
m_deviceCombo = 0;
- m_deviceLabel = new QLabel(deviceBox);
+ m_deviceLabel = new TQLabel(deviceBox);
bl->addWidget(m_deviceLabel);
}
@@ -147,26 +147,26 @@ ImportDeviceDialog::doImport()
++count;
}
- QHBox *optionsBox = new QHBox(mainFrame);
+ TQHBox *optionsBox = new TQHBox(mainFrame);
- QGroupBox *gb = new QGroupBox(1, Horizontal, i18n("Options"),
+ TQGroupBox *gb = new TQGroupBox(1, Horizontal, i18n("Options"),
optionsBox);
- m_importBanks = new QCheckBox(i18n("Import banks"), gb);
- m_importKeyMappings = new QCheckBox(i18n("Import key mappings"), gb);
- m_importControllers = new QCheckBox(i18n("Import controllers"), gb);
+ m_importBanks = new TQCheckBox(i18n("Import banks"), gb);
+ m_importKeyMappings = new TQCheckBox(i18n("Import key mappings"), gb);
+ m_importControllers = new TQCheckBox(i18n("Import controllers"), gb);
if (showRenameOption) {
- m_rename = new QCheckBox(i18n("Import device name"), gb);
+ m_rename = new TQCheckBox(i18n("Import device name"), gb);
} else {
m_rename = 0;
}
- m_buttonGroup = new QButtonGroup(1, Qt::Horizontal,
+ m_buttonGroup = new TQButtonGroup(1, Qt::Horizontal,
i18n("Bank import behavior"),
optionsBox);
- m_mergeBanks = new QRadioButton(i18n("Merge banks"), m_buttonGroup);
- m_overwriteBanks = new QRadioButton(i18n("Overwrite banks"), m_buttonGroup);
+ m_mergeBanks = new TQRadioButton(i18n("Merge banks"), m_buttonGroup);
+ m_overwriteBanks = new TQRadioButton(i18n("Overwrite banks"), m_buttonGroup);
KConfig *config = kapp->config();
config->setGroup(GeneralOptionsConfigGroup);
@@ -283,7 +283,7 @@ ImportDeviceDialog::shouldRename() const
}
bool
-ImportDeviceDialog::importFromRG(QString fileName)
+ImportDeviceDialog::importFromRG(TQString fileName)
{
m_fileDoc = new RosegardenGUIDoc(RosegardenGUIApp::self(), 0, true); // skipAutoload
@@ -336,7 +336,7 @@ ImportDeviceDialog::importFromRG(QString fileName)
}
bool
-ImportDeviceDialog::importFromSF2(QString filename)
+ImportDeviceDialog::importFromSF2(TQString filename)
{
SF2PatchExtractor::Device sf2device;
try {