Put advanced media stuff in a sub-menu

This commit is contained in:
Anton Thomasson 2021-07-09 22:46:21 +02:00
parent c0fdb31483
commit c4b8fd0b74
9 changed files with 37 additions and 1 deletions

View file

@ -31,7 +31,7 @@ BackgroundItem {
Label { Label {
id: label id: label
leftPadding: Theme.paddingLarge leftPadding: Theme.paddingLarge*2
anchors.left: parent.left anchors.left: parent.left
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
color: barButton.highlighted ? Theme.highlightColor : Theme.primaryColor color: barButton.highlighted ? Theme.highlightColor : Theme.primaryColor

View file

@ -162,19 +162,27 @@ Page {
name: "document-format" name: "document-format"
prettyName: qsTr("Transfer format") prettyName: qsTr("Transfer format")
} }
BarButton {
id: mediaButton
text: qsTr("Media")
}
ChoiceSetting { ChoiceSetting {
visible: mediaButton.active
tag: IppMsg.Keyword tag: IppMsg.Keyword
name: "media-type" name: "media-type"
subkey: "media-col" subkey: "media-col"
prettyName: qsTr("Media type") prettyName: qsTr("Media type")
} }
ChoiceSetting { ChoiceSetting {
visible: mediaButton.active
tag: IppMsg.Keyword tag: IppMsg.Keyword
name: "media-source" name: "media-source"
subkey: "media-col" subkey: "media-col"
prettyName: qsTr("Media source") prettyName: qsTr("Media source")
} }
ChoiceSetting { ChoiceSetting {
visible: mediaButton.active
tag: IppMsg.Keyword tag: IppMsg.Keyword
name: "output-bin" name: "output-bin"
prettyName: qsTr("Output bin") prettyName: qsTr("Output bin")

View file

@ -511,6 +511,10 @@
<source>Scaling</source> <source>Scaling</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Media</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>

View file

@ -511,6 +511,10 @@
<source>Scaling</source> <source>Scaling</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Media</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>

View file

@ -511,6 +511,10 @@
<source>Scaling</source> <source>Scaling</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Media</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>

View file

@ -511,6 +511,10 @@
<source>Scaling</source> <source>Scaling</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Media</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>

View file

@ -511,6 +511,10 @@
<source>Scaling</source> <source>Scaling</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Media</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>

View file

@ -511,6 +511,10 @@
<source>Scaling</source> <source>Scaling</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Media</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>

View file

@ -511,6 +511,10 @@
<source>Scaling</source> <source>Scaling</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Media</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>RangeSetting</name> <name>RangeSetting</name>