Skip to content
Snippets Groups Projects
Commit 3cf9f683 authored by SeeLook's avatar SeeLook :musical_note:
Browse files

Colorize additional note lines under grand staff

- they may be created later, after note color was set
parent 0694f340
Branches
Tags
No related merge requests found
Pipeline #2783 passed
/***************************************************************************
* Copyright (C) 2017-2019 by Tomasz Bojczuk *
* Copyright (C) 2017-2021 by Tomasz Bojczuk *
* seelook@gmail.com *
* *
* This program is free software; you can redistribute it and/or modify *
......@@ -305,8 +305,10 @@ void TnoteItem::setHeight(qreal hh) {
if (m_underLoLines.isEmpty()) {
m_staff->score()->component()->setData("import QtQuick 2.9; Rectangle {}", QUrl());
for (int l = 0; l < 2; ++l) {
m_underLoLines << createAddLine();
m_underLoLines.last()->setY(m_staff->upperLine() + 32.0 + l * 2.0 - 0.1);
auto line = createAddLine();
line->setY(m_staff->upperLine() + 32.0 + l * 2.0 - 0.1);
line->setProperty("color", m_head->property("color"));
m_underLoLines << line;
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment