From 6b953b2dcc89e6717a9a05e4f266e7f190b31b73 Mon Sep 17 00:00:00 2001 From: Black Hat Date: Wed, 17 Jul 2019 18:00:28 +0800 Subject: [PATCH] Revert and fix toolbar issue. --- qml/main.qml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qml/main.qml b/qml/main.qml index 95311ecc2..74e30214a 100644 --- a/qml/main.qml +++ b/qml/main.qml @@ -3,7 +3,7 @@ import QtQuick.Controls 2.12 import QtQuick.Layouts 1.12 import QtQuick.Controls.Material 2.12 import Qt.labs.settings 1.1 -import Qt.labs.platform 1.1 +import Qt.labs.platform 1.1 as Platform import Spectral.Panel 2.0 import Spectral.Component 2.0 @@ -47,27 +47,27 @@ ApplicationWindow { onShowWindow: window.showWindow() } - MenuBar { + Platform.MenuBar { id: menuBar - Menu { + Platform.Menu { id: fileMenu title: "File" - MenuItem { + Platform.MenuItem { text: "Preferences" shortcut: StandardKey.Preferences - role: MenuItem.PreferencesRole + role: Platform.MenuItem.PreferencesRole onTriggered: accountDetailDialog.createObject(window).open() } - MenuItem { + Platform.MenuItem { text: "Quit" shortcut: StandardKey.Quit - role: MenuItem.QuitRole + role: Platform.MenuItem.QuitRole onTriggered: Qt.quit() }