summaryrefslogtreecommitdiff
path: root/muse2/muse/app.cpp
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2011-04-19 17:10:43 +0000
committerFlorian Jung <flo@windfisch.org>2011-04-19 17:10:43 +0000
commit653ee946365c935bbbfdb092cc50ed92f5159e43 (patch)
tree9d5c36ec23a7c1010cabedb3b66e4e3850b314f0 /muse2/muse/app.cpp
parent9e2ef9557a31deeb9221295e79f0ed4b28751c5b (diff)
added some menus
changed some strings to QStrings TODO: color notes by their velocity
Diffstat (limited to 'muse2/muse/app.cpp')
-rw-r--r--muse2/muse/app.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/muse2/muse/app.cpp b/muse2/muse/app.cpp
index 3357fac1..efa6b86d 100644
--- a/muse2/muse/app.cpp
+++ b/muse2/muse/app.cpp
@@ -3482,13 +3482,13 @@ void MusE::updateScoreMenus()
{
ScoreEdit* score = (ScoreEdit*) it->cobject();
- action=new QAction(QString(score->get_name().c_str()), this);
+ action=new QAction(score->get_name(), this);
connect(action, SIGNAL(activated()), scoreOneStaffPerTrackMapper, SLOT(map()));
scoreOneStaffPerTrackMapper->setMapping(action, (QWidget*)score);
scoreOneStaffPerTrackSubsubmenu->addAction(action);
- action=new QAction(QString(score->get_name().c_str()), this); //the above action may NOT be reused!
+ action=new QAction(score->get_name(), this); //the above action may NOT be reused!
connect(action, SIGNAL(activated()), scoreAllInOneMapper, SLOT(map()));
scoreAllInOneMapper->setMapping(action, (QWidget*)score);
scoreAllInOneSubsubmenu->addAction(action);
@@ -3525,6 +3525,7 @@ void MusE::openInScoreEdit(ScoreEdit* destination, PartList* pl, bool allInOne)
destination->show();
toplevels.push_back(Toplevel(Toplevel::SCORE, (unsigned long)(destination), destination));
connect(destination, SIGNAL(deleted(unsigned long)), SLOT(toplevelDeleted(unsigned long)));
+ connect(destination, SIGNAL(name_changed()), SLOT(scoreNamingChanged()));
//connect(muse, SIGNAL(configChanged()), destination, SLOT(config_changed()));
//commented out by flo, because the ScoreEditor connects to all
//relevant signals on his own