mirror of https://github.com/KDE/kasts.git
add storage time setting
This commit is contained in:
parent
195b6d63ee
commit
9fdee82660
|
@ -5,5 +5,13 @@
|
||||||
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
|
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
|
||||||
<kcfgfile name="alligatorrc" />
|
<kcfgfile name="alligatorrc" />
|
||||||
<group name="General">
|
<group name="General">
|
||||||
|
<entry name="deleteAfterCount" type="Int">
|
||||||
|
<label>Delete after count</label>
|
||||||
|
<default>2</default>
|
||||||
|
</entry>
|
||||||
|
<entry name="deleteAfterType" type="Int">
|
||||||
|
<label>Delete after type</label>
|
||||||
|
<default>2</default>
|
||||||
|
</entry>
|
||||||
</group>
|
</group>
|
||||||
</kcfg>
|
</kcfg>
|
||||||
|
|
|
@ -6,4 +6,26 @@ Kirigami.ScrollablePage {
|
||||||
title: "Settings"
|
title: "Settings"
|
||||||
|
|
||||||
property QtObject settings
|
property QtObject settings
|
||||||
|
|
||||||
|
|
||||||
|
Kirigami.FormLayout {
|
||||||
|
Controls.TextField {
|
||||||
|
id: deleteAfterCount
|
||||||
|
text: settings.deleteAfterCount
|
||||||
|
Kirigami.FormData.label: "Delete posts after:"
|
||||||
|
}
|
||||||
|
Controls.ComboBox {
|
||||||
|
id: deleteAfterType
|
||||||
|
currentIndex: settings.deleteAfterType
|
||||||
|
model: ["Posts", "Days", "Weeks", "Months"]
|
||||||
|
}
|
||||||
|
Controls.Button {
|
||||||
|
text: "Save"
|
||||||
|
onClicked: {
|
||||||
|
settings.deleteAfterCount = deleteAfterCount.text
|
||||||
|
settings.deleteAfterType = deleteAfterType.currentIndex
|
||||||
|
settings.save()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue