From 11f31c37e5fa4889d9989f10272f44845449cb7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 6 Sep 2010 20:59:29 +0000 Subject: Initial TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/dialogs/ImportDeviceDialog.cpp | 58 +++++++++++++++++----------------- 1 file changed, 29 insertions(+), 29 deletions(-) (limited to 'src/gui/dialogs/ImportDeviceDialog.cpp') 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 +#include #include #include @@ -40,21 +40,21 @@ #include #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include 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 { -- cgit v1.2.1