summaryrefslogtreecommitdiffstats
path: root/src/gui/studio/SynthPluginManagerDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/studio/SynthPluginManagerDialog.cpp')
-rw-r--r--src/gui/studio/SynthPluginManagerDialog.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/gui/studio/SynthPluginManagerDialog.cpp b/src/gui/studio/SynthPluginManagerDialog.cpp
index 037fa3a..9530fad 100644
--- a/src/gui/studio/SynthPluginManagerDialog.cpp
+++ b/src/gui/studio/SynthPluginManagerDialog.cpp
@@ -54,13 +54,13 @@
namespace Rosegarden
{
-SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
+SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *tqparent,
RosegardenGUIDoc *doc
#ifdef HAVE_LIBLO
, AudioPluginOSCGUIManager *guiManager
#endif
) :
- KMainWindow(parent, "synthpluginmanagerdialog"),
+ KMainWindow(tqparent, "synthpluginmanagerdialog"),
m_document(doc),
m_studio(&doc->getStudio()),
m_pluginManager(doc->getPluginManager())
@@ -75,7 +75,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
TQVBoxLayout *mainLayout = new TQVBoxLayout(mainBox, 10, 10);
- TQGroupBox *groupBox = new TQGroupBox(1, Horizontal, i18n("Synth plugins"), mainBox);
+ TQGroupBox *groupBox = new TQGroupBox(1, Qt::Horizontal, i18n("Synth plugins"), mainBox);
mainLayout->addWidget(groupBox);
TQFrame *pluginFrame = new TQFrame(groupBox);
@@ -105,7 +105,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
// pluginLayout->addWidget(new TQLabel(instrument->getPresentationName().c_str(),
// pluginFrame), i, 0);
- pluginLayout->addWidget(new TQLabel(TQString("%1").arg(i + 1),
+ pluginLayout->addWidget(new TQLabel(TQString("%1").tqarg(i + 1),
pluginFrame), i, 0);
AudioPluginInstance *plugin = instrument->getPlugin
@@ -161,17 +161,17 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
TQFrame* btnBox = new TQFrame(mainBox);
- btnBox->setSizePolicy(
+ btnBox->tqsetSizePolicy(
TQSizePolicy(TQSizePolicy::Minimum, TQSizePolicy::Fixed));
TQPushButton *closeButton = new TQPushButton(i18n("Close"), btnBox);
- TQHBoxLayout* layout = new TQHBoxLayout(btnBox, 0, 10);
- layout->addStretch(10);
- layout->addWidget(closeButton);
- layout->addSpacing(5);
+ TQHBoxLayout* tqlayout = new TQHBoxLayout(btnBox, 0, 10);
+ tqlayout->addStretch(10);
+ tqlayout->addWidget(closeButton);
+ tqlayout->addSpacing(5);
- KAction* close = KStdAction::close(this,
+ KAction* close = KStdAction::close(TQT_TQOBJECT(this),
TQT_SLOT(slotClose()),
actionCollection());
@@ -233,12 +233,12 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
void
SynthPluginManagerDialog::slotGUIButtonClicked()
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
int instrumentNo = -1;
for (unsigned int i = 0; i < m_guiButtons.size(); ++i) {
- if (s == m_guiButtons[i])
+ if (TQT_BASE_OBJECT_CONST(s) == TQT_BASE_OBJECT(m_guiButtons[i]))
instrumentNo = i;
}
@@ -255,12 +255,12 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
void
SynthPluginManagerDialog::slotControlsButtonClicked()
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
int instrumentNo = -1;
for (unsigned int i = 0; i < m_controlsButtons.size(); ++i) {
- if (s == m_controlsButtons[i])
+ if (TQT_BASE_OBJECT_CONST(s) == TQT_BASE_OBJECT(m_controlsButtons[i]))
instrumentNo = i;
}
@@ -277,7 +277,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
void
SynthPluginManagerDialog::slotPluginChanged(int index)
{
- const TQObject *s = sender();
+ const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender()));
RG_DEBUG << "SynthPluginManagerDialog::slotPluginChanged(" << index
<< ")" << endl;
@@ -285,7 +285,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
int instrumentNo = -1;
for (unsigned int i = 0; i < m_synthCombos.size(); ++i) {
- if (s == m_synthCombos[i])
+ if (TQT_BASE_OBJECT_CONST(s) == TQT_BASE_OBJECT(m_synthCombos[i]))
instrumentNo = i;
}
@@ -316,7 +316,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
if (plugin) {
RG_DEBUG << "plugin is " << plugin->getIdentifier() << endl;
- pluginInstance->setIdentifier(plugin->getIdentifier().data());
+ pluginInstance->setIdentifier(plugin->getIdentifier().ascii());
// set ports to defaults