Skip to content
Snippets Groups Projects
Commit 58fb3734 authored by SeeLook's avatar SeeLook
Browse files

Fixed score menu parent, cleaned TmultiScore

parent ea5e6d8a
Branches
Tags
No related merge requests found
1.1.5
- detailed preview of melodies in charts
- added new tool button with menu for a score
- A note from played exam melody can be selected to start playing from it
- First run wizard comes back improved - it is a plugin now
......
/***************************************************************************
* Copyright (C) 2013-2014 by Tomasz Bojczuk *
* Copyright (C) 2013-2015 by Tomasz Bojczuk *
* tomaszbojczuk@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
......@@ -305,8 +305,12 @@ bool TsimpleScore::isPianoStaff() {
void TsimpleScore::setBGcolor(QColor bgColor) {
bgColor.setAlpha(230);
viewport()->setStyleSheet(QString("border: 1px solid palette(Text); border-radius: 10px; %1;").arg(Tcolor::bgTag(bgColor)));
if (bgColor == -1)
viewport()->setStyleSheet(Tcolor::bgTag(bgColor));
else {
bgColor.setAlpha(230);
viewport()->setStyleSheet(QString("border: 1px solid palette(Text); border-radius: 10px; %1;").arg(Tcolor::bgTag(bgColor)));
}
}
//##########################################################################################################
......
......@@ -28,7 +28,7 @@ TscoreActions::TscoreActions(TmainScore* sc) :
QObject(sc),
m_score(sc)
{
m_menu = new Tmenu(sc);
m_menu = new Tmenu(sc->mainWindow());
m_button = new QToolButton(sc);
m_button->setIcon(QIcon(Tpath::img("score")));
m_button->setText(tr("Score", "it could be 'notation', 'staff' or whatever is associated with that 'place to display musical notes' and this the name is quite short and looks well."));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment