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

Minor: create StatusTip control in single call

parent 767ea947
Branches
Tags
No related merge requests found
/** This file is part of Nootka (http://nootka.sf.net) * /** This file is part of Nootka (http://nootka.sf.net) *
* Copyright (C) 2017-2020 by Tomasz Bojczuk (seelook@gmail.com) * * Copyright (C) 2017-2021 by Tomasz Bojczuk (seelook@gmail.com) *
* on the terms of GNU GPLv3 license (http://www.gnu.org/licenses) */ * on the terms of GNU GPLv3 license (http://www.gnu.org/licenses) */
import QtQuick 2.9 import QtQuick 2.9
...@@ -115,8 +115,7 @@ Score { ...@@ -115,8 +115,7 @@ Score {
scoreObj.allowAdding = Qt.binding(function() { return !GLOB.singleNoteMode }) scoreObj.allowAdding = Qt.binding(function() { return !GLOB.singleNoteMode })
enableKeySign = Qt.binding(function() { return GLOB.keySignatureEnabled }) enableKeySign = Qt.binding(function() { return GLOB.keySignatureEnabled })
updateScord() updateScord()
var t = Qt.createComponent("qrc:/StatusTip.qml") Qt.createComponent("qrc:/StatusTip.qml").createObject(nootkaWindow)
t.createObject(nootkaWindow)
if (!GLOB.singleNoteMode) if (!GLOB.singleNoteMode)
scoreObj.editModeAct.trigger() scoreObj.editModeAct.trigger()
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment