Changeset View
Changeset View
Standalone View
Standalone View
src/qml/ElisaMainWindow.qml
Show All 10 Lines | |||||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | * Lesser General Public License for more details. | 12 | * Lesser General Public License for more details. | ||
13 | * | 13 | * | ||
14 | * You should have received a copy of the GNU Lesser General Public License | 14 | * You should have received a copy of the GNU Lesser General Public License | ||
15 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | import QtQuick 2.7 | 18 | import QtQuick 2.7 | ||
19 | import QtQuick.Controls 2.2 | 19 | import QtQuick.Controls 2.3 | ||
20 | import QtQuick.Controls 1.4 as Controls1 | | |||
21 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 | ||
22 | import QtQuick.Window 2.2 | 21 | import QtQuick.Window 2.2 | ||
23 | import org.kde.elisa 1.0 | 22 | import org.kde.elisa 1.0 | ||
24 | import Qt.labs.settings 1.0 | 23 | import Qt.labs.settings 1.0 | ||
25 | 24 | | |||
26 | ApplicationWindow { | 25 | ApplicationWindow { | ||
27 | id: mainWindow | 26 | id: mainWindow | ||
28 | 27 | | |||
Show All 9 Lines | |||||
38 | y: persistentSettings.y | 37 | y: persistentSettings.y | ||
39 | width: persistentSettings.width | 38 | width: persistentSettings.width | ||
40 | height: persistentSettings.height | 39 | height: persistentSettings.height | ||
41 | 40 | | |||
42 | title: i18n("Elisa") | 41 | title: i18n("Elisa") | ||
43 | 42 | | |||
44 | property var goBackAction: elisa.action("go_back") | 43 | property var goBackAction: elisa.action("go_back") | ||
45 | 44 | | |||
46 | Controls1.Action { | 45 | Action { | ||
47 | shortcut: goBackAction.shortcut | 46 | shortcut: goBackAction.shortcut | ||
48 | onTriggered: contentView.goBack() | 47 | onTriggered: contentView.goBack() | ||
49 | } | 48 | } | ||
50 | 49 | | |||
51 | Controls1.Action { | | |||
52 | id: applicationMenuAction | | |||
53 | text: i18nc("open application menu", "Application Menu") | | |||
54 | iconName: "application-menu" | | |||
55 | onTriggered: applicationMenu.popup() | | |||
56 | } | | |||
57 | | ||||
58 | ApplicationMenu { | 50 | ApplicationMenu { | ||
59 | id: applicationMenu | 51 | id: applicationMenu | ||
60 | } | 52 | } | ||
61 | 53 | | |||
62 | SystemPalette { | 54 | SystemPalette { | ||
63 | id: myPalette | 55 | id: myPalette | ||
64 | colorGroup: SystemPalette.Active | 56 | colorGroup: SystemPalette.Active | ||
65 | } | 57 | } | ||
Show All 23 Lines | 63 | Settings { | |||
89 | property bool expandedFilterView: false | 81 | property bool expandedFilterView: false | ||
90 | 82 | | |||
91 | property bool showPlaylist: true | 83 | property bool showPlaylist: true | ||
92 | 84 | | |||
93 | property bool headerBarIsMaximized: false | 85 | property bool headerBarIsMaximized: false | ||
94 | } | 86 | } | ||
95 | 87 | | |||
96 | Connections { | 88 | Connections { | ||
89 | target: headerBar.playerControl | ||||
90 | onOpenMenu: applicationMenu.popup() | ||||
91 | } | ||||
92 | | ||||
93 | Connections { | ||||
97 | target: Qt.application | 94 | target: Qt.application | ||
98 | onAboutToQuit: | 95 | onAboutToQuit: | ||
99 | { | 96 | { | ||
100 | persistentSettings.x = mainWindow.x; | 97 | persistentSettings.x = mainWindow.x; | ||
101 | persistentSettings.y = mainWindow.y; | 98 | persistentSettings.y = mainWindow.y; | ||
102 | persistentSettings.width = mainWindow.width; | 99 | persistentSettings.width = mainWindow.width; | ||
103 | persistentSettings.height = mainWindow.height; | 100 | persistentSettings.height = mainWindow.height; | ||
104 | 101 | | |||
▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines |