Move UtilitiesPage and media_keys into separate folder
The QML at the moment is a giant mess. Moving pages into individual folders and properly abstracting the sub components of the pages will allow for much easier development and better error messages. Additionally it will prevent polluting the global namespace. Really, all the reasons for avoiding globally available values and using abstractions in regular programming also come into play here.
@@ -158,6 +158,6 @@ DISTFILES += \
|
||||
src/res/qml/SettingsPage.qml \
|
||||
src/res/qml/StatisticsPage.qml \
|
||||
src/res/qml/SteamVRPage.qml \
|
||||
src/res/qml/UtilitiesPage.qml \
|
||||
src/res/qml/media_keys/* \
|
||||
src/res/qml/utilities_page/* \
|
||||
src/res/qml/utilities_page/media_keys/* \
|
||||
src/res/qml/LineSeparator.qml
|
||||
|
||||
@@ -3,6 +3,7 @@ import QtQuick.Controls 2.0
|
||||
import QtQuick.Layouts 1.3
|
||||
import matzman666.advsettings 1.0
|
||||
import "." // QTBUG-34418, singletons require explicit import to load qmldir file
|
||||
import "utilities_page"
|
||||
|
||||
MyStackViewPage {
|
||||
id: rootPage
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import QtQuick 2.7
|
||||
import QtQuick.Controls 2.0
|
||||
import QtQuick.Layouts 1.0
|
||||
|
||||
import "utilities_page"
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
||||
@@ -3,6 +3,7 @@ import QtQuick.Controls 2.0
|
||||
import QtQuick.Layouts 1.3
|
||||
import matzman666.advsettings 1.0
|
||||
import "media_keys"
|
||||
import ".."
|
||||
|
||||
MyStackViewPage {
|
||||
headerText: "Utilities"
|
||||
@@ -3,7 +3,7 @@ import QtQuick.Controls 2.0
|
||||
import QtQuick.Layouts 1.3
|
||||
import matzman666.advsettings 1.0
|
||||
// Necessary for the project specific Components.
|
||||
import ".."
|
||||
import "../.."
|
||||
|
||||
MyPushButton2 {
|
||||
// Public properties
|
||||
@@ -3,7 +3,7 @@ import QtQuick.Controls 2.0
|
||||
import QtQuick.Layouts 1.3
|
||||
import matzman666.advsettings 1.0
|
||||
// Necessary for the project specific Components.
|
||||
import ".."
|
||||
import "../.."
|
||||
|
||||
GroupBox {
|
||||
id: mediaKeysGroupBox
|
||||
|
Before Width: | Height: | Size: 598 B After Width: | Height: | Size: 598 B |
|
Before Width: | Height: | Size: 216 B After Width: | Height: | Size: 216 B |
|
Before Width: | Height: | Size: 219 B After Width: | Height: | Size: 219 B |
|
Before Width: | Height: | Size: 181 B After Width: | Height: | Size: 181 B |