Revert and fix toolbar issue.
This commit is contained in:
14
qml/main.qml
14
qml/main.qml
@@ -3,7 +3,7 @@ import QtQuick.Controls 2.12
|
|||||||
import QtQuick.Layouts 1.12
|
import QtQuick.Layouts 1.12
|
||||||
import QtQuick.Controls.Material 2.12
|
import QtQuick.Controls.Material 2.12
|
||||||
import Qt.labs.settings 1.1
|
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.Panel 2.0
|
||||||
import Spectral.Component 2.0
|
import Spectral.Component 2.0
|
||||||
@@ -47,27 +47,27 @@ ApplicationWindow {
|
|||||||
onShowWindow: window.showWindow()
|
onShowWindow: window.showWindow()
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuBar {
|
Platform.MenuBar {
|
||||||
id: menuBar
|
id: menuBar
|
||||||
|
|
||||||
Menu {
|
Platform.Menu {
|
||||||
id: fileMenu
|
id: fileMenu
|
||||||
title: "File"
|
title: "File"
|
||||||
|
|
||||||
MenuItem {
|
Platform.MenuItem {
|
||||||
text: "Preferences"
|
text: "Preferences"
|
||||||
|
|
||||||
shortcut: StandardKey.Preferences
|
shortcut: StandardKey.Preferences
|
||||||
role: MenuItem.PreferencesRole
|
role: Platform.MenuItem.PreferencesRole
|
||||||
|
|
||||||
onTriggered: accountDetailDialog.createObject(window).open()
|
onTriggered: accountDetailDialog.createObject(window).open()
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuItem {
|
Platform.MenuItem {
|
||||||
text: "Quit"
|
text: "Quit"
|
||||||
|
|
||||||
shortcut: StandardKey.Quit
|
shortcut: StandardKey.Quit
|
||||||
role: MenuItem.QuitRole
|
role: Platform.MenuItem.QuitRole
|
||||||
|
|
||||||
onTriggered: Qt.quit()
|
onTriggered: Qt.quit()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user