From ab33532da11672ee435e2b566cdba81b2e79e874 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Thu, 10 Aug 2017 00:14:44 +0800 Subject: Windows of several main functionalities are no longer QDialogs. Fixed unexpected behavior. Now visualization window can be closed by sending it a close signal. Trying a solution to address the problem that prevents plugins from being loaded correctly in Windows if the path contains Chinese characters. Not even tried to build in Windows though. --- qmidiplayer-lite/main.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'qmidiplayer-lite/main.qml') diff --git a/qmidiplayer-lite/main.qml b/qmidiplayer-lite/main.qml index ace1427..2fcd1ea 100644 --- a/qmidiplayer-lite/main.qml +++ b/qmidiplayer-lite/main.qml @@ -14,6 +14,12 @@ Window { playing: false property string soundfont soundfont: "" + SystemPalette + { + id: palette + colorGroup: SystemPalette.Active + } + color: palette.window MouseArea { id: mouseArea1 @@ -126,6 +132,7 @@ Window { Text { id: fileName text: qsTr("...") + color: palette.text anchors.top: parent.top anchors.topMargin: 100 anchors.horizontalCenter: parent.horizontalCenter -- cgit v1.2.3