Move checkmark and back arrow into .qrc file
The QRC file is a platform independant way of referring to resource files. It allows the program to access resources in an abstract way instead of the direct file path. This is the first step towards moving all files to the new system.
This commit is contained in:
@@ -126,8 +126,6 @@ DISTFILES += \
|
||||
src/res/battery_4.png \
|
||||
src/res/battery_5.png \
|
||||
src/res/thumbicon.png \
|
||||
src/res/qml/backarrow.svg \
|
||||
src/res/qml/check.svg \
|
||||
src/res/qml/mic_off.svg \
|
||||
src/res/qml/mic_on.svg \
|
||||
src/res/qml/ptt_notification.svg \
|
||||
@@ -170,3 +168,5 @@ DISTFILES += \
|
||||
src/res/qml/audio_page/push_to_talk/* \
|
||||
src/res/qml/audio_page/profiles/* \
|
||||
src/res/qml/common/* \
|
||||
|
||||
RESOURCES += src/res/resources.qrc
|
||||
|
||||
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 147 B After Width: | Height: | Size: 147 B |
@@ -26,7 +26,7 @@ Rectangle {
|
||||
enabled: headerShowBackButton
|
||||
opacity: headerShowBackButton ? 1.0 : 0.0
|
||||
contentItem: Image {
|
||||
source: "backarrow.svg"
|
||||
source: "qrc:/common/back-arrow"
|
||||
sourceSize.width: 50
|
||||
sourceSize.height: 50
|
||||
anchors.fill: parent
|
||||
|
||||
@@ -31,7 +31,7 @@ CheckBox {
|
||||
height: 28
|
||||
x: (parent.width - width) / 2
|
||||
y: (parent.height - height) / 2
|
||||
source: "check.svg"
|
||||
source: "qrc:/common/box-checkmark"
|
||||
sourceSize.width: width
|
||||
sourceSize.height: height
|
||||
visible: parent.parent.checked
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource prefix="/common">
|
||||
<file alias="back-arrow">img/common/backarrow.svg</file>
|
||||
<file alias="box-checkmark">img/common/check.svg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
Reference in New Issue
Block a user