summaryrefslogtreecommitdiffstats
path: root/src/gui/studio/MidiProgramsEditor.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-05-02 22:38:52 +0000
commit458efa7b0c935cbaafa2791021a5f8f7241aa876 (patch)
tree624583f2873febe23770bee3fa94b5c24bd59f4f /src/gui/studio/MidiProgramsEditor.cpp
parent747037b72944ae2c02962b7c5c96e0a7f8852e38 (diff)
downloadrosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.tar.gz
rosegarden-458efa7b0c935cbaafa2791021a5f8f7241aa876.zip
Initial TQt4 port of Rosegarden
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1230242 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/studio/MidiProgramsEditor.cpp')
-rw-r--r--src/gui/studio/MidiProgramsEditor.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/studio/MidiProgramsEditor.cpp b/src/gui/studio/MidiProgramsEditor.cpp
index e69b1a9..08c0114 100644
--- a/src/gui/studio/MidiProgramsEditor.cpp
+++ b/src/gui/studio/MidiProgramsEditor.cpp
@@ -60,11 +60,11 @@ namespace Rosegarden
{
MidiProgramsEditor::MidiProgramsEditor(BankEditorDialog* bankEditor,
- TQWidget* parent,
+ TQWidget* tqparent,
const char* name)
: NameSetEditor(bankEditor,
i18n("Bank and Program details"),
- parent, name, i18n("Programs"), true),
+ tqparent, name, i18n("Programs"), true),
m_device(0),
m_bankList(bankEditor->getBankList()),
m_programList(bankEditor->getProgramList()),
@@ -77,9 +77,9 @@ MidiProgramsEditor::MidiProgramsEditor(BankEditorDialog* bankEditor,
}
TQWidget *
-MidiProgramsEditor::makeAdditionalWidget(TQWidget *parent)
+MidiProgramsEditor::makeAdditionalWidget(TQWidget *tqparent)
{
- TQFrame *frame = new TQFrame(parent);
+ TQFrame *frame = new TQFrame(tqparent);
m_percussion = new TQCheckBox(frame);
m_msb = new TQSpinBox(frame);
@@ -251,7 +251,7 @@ MidiProgramsEditor::populate(TQListViewItem* item)
getEntryButton(i)->setPixmap(keyPixmap);
TQToolTip::add
(getEntryButton(i),
- i18n("Key Mapping: %1").arg(
+ i18n("Key Mapping: %1").tqarg(
strtoqstr(m_device->getKeyMappingForProgram(*it)->getName())));
}
@@ -391,7 +391,7 @@ MidiProgramsEditor::slotNameChanged(const TQString& programName)
return ;
}
- TQString senderName = sender()->name();
+ TQString senderName = TQT_TQOBJECT_CONST(sender())->name();
// Adjust value back to zero rated
//
@@ -444,9 +444,9 @@ MidiProgramsEditor::slotNameChanged(const TQString& programName)
void
MidiProgramsEditor::slotEntryButtonPressed()
{
- TQPushButton* button = dynamic_cast<TQPushButton*>(const_cast<TQObject *>(sender()));
+ TQPushButton* button = dynamic_cast<TQPushButton*>(TQT_TQWIDGET(const_cast<TQT_BASE_OBJECT_NAME*>(sender())));
if (!button) {
- RG_DEBUG << "MidiProgramsEditor::slotEntryButtonPressed() : %%% ERROR - signal sender is not a QPushButton\n";
+ RG_DEBUG << "MidiProgramsEditor::slotEntryButtonPressed() : %%% ERROR - signal sender is not a TQPushButton\n";
return ;
}
@@ -538,7 +538,7 @@ MidiProgramsEditor::slotEntryMenuItemSelected(int i)
btn->setPixmap(TQPixmap(file));
}
TQToolTip::add
- (btn, i18n("Key Mapping: %1").arg(strtoqstr(newMapping)));
+ (btn, i18n("Key Mapping: %1").tqarg(strtoqstr(newMapping)));
}
btn->setEnabled(haveKeyMappings);
}