Move AudioPage.qml into separate directory
This encapsulates the page and separates it and the files it uses from the rest of the application.
@@ -135,7 +135,7 @@ DISTFILES += \
|
|||||||
src/res/qml/speaker_on.svg \
|
src/res/qml/speaker_on.svg \
|
||||||
src/res/qml/qmldir \
|
src/res/qml/qmldir \
|
||||||
src/res/qml/AccessibilityPage.qml \
|
src/res/qml/AccessibilityPage.qml \
|
||||||
src/res/qml/AudioPage.qml \
|
src/res/qml/audio_page/* \
|
||||||
src/res/qml/ChaperonePage.qml \
|
src/res/qml/ChaperonePage.qml \
|
||||||
src/res/qml/ChaperoneWarningsPage.qml \
|
src/res/qml/ChaperoneWarningsPage.qml \
|
||||||
src/res/qml/FixFloorPage.qml \
|
src/res/qml/FixFloorPage.qml \
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import QtQuick.Layouts 1.3
|
|||||||
import matzman666.advsettings 1.0
|
import matzman666.advsettings 1.0
|
||||||
import "." // QTBUG-34418, singletons require explicit import to load qmldir file
|
import "." // QTBUG-34418, singletons require explicit import to load qmldir file
|
||||||
import "utilities_page"
|
import "utilities_page"
|
||||||
|
import "audio_page"
|
||||||
|
|
||||||
MyStackViewPage {
|
MyStackViewPage {
|
||||||
id: rootPage
|
id: rootPage
|
||||||
@@ -342,7 +343,7 @@ MyStackViewPage {
|
|||||||
Layout.leftMargin: 12
|
Layout.leftMargin: 12
|
||||||
checkable: true
|
checkable: true
|
||||||
contentItem: Image {
|
contentItem: Image {
|
||||||
source: parent.checked ? "mic_off.svg" : "mic_on.svg"
|
source: parent.checked ? "audio_page/mic_off.svg" : "audio_page/mic_on.svg"
|
||||||
sourceSize.width: 32
|
sourceSize.width: 32
|
||||||
sourceSize.height: 32
|
sourceSize.height: 32
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import QtQuick 2.7
|
|||||||
import QtQuick.Controls 2.0
|
import QtQuick.Controls 2.0
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
import matzman666.advsettings 1.0
|
import matzman666.advsettings 1.0
|
||||||
|
import ".."
|
||||||
|
|
||||||
MyStackViewPage {
|
MyStackViewPage {
|
||||||
width: 1200
|
width: 1200
|
||||||
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@@ -2,6 +2,7 @@ import QtQuick 2.7
|
|||||||
import QtQuick.Controls 2.0
|
import QtQuick.Controls 2.0
|
||||||
import QtQuick.Layouts 1.0
|
import QtQuick.Layouts 1.0
|
||||||
import "utilities_page"
|
import "utilities_page"
|
||||||
|
import "audio_page"
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: root
|
id: root
|
||||||
|
|||||||