v1.1.0: English UI + docs, bundled Bitcoin icon, canonical config page, gitea.a14r.be website URL, journal diagnostics
This commit is contained in:
@@ -1,16 +1,35 @@
|
||||
/*
|
||||
* Config page for nl.a14r.bitcoinprice.
|
||||
* Follows the canonical Plasma 5 config dialog pattern:
|
||||
* Kirigami.FormLayout + cfg_ prefixed property aliases.
|
||||
*/
|
||||
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Controls 2.15 as QQC2
|
||||
import org.kde.kirigami 2.5 as Kirigami
|
||||
|
||||
Kirigami.FormLayout {
|
||||
id: generalPage
|
||||
|
||||
// The cfg_ prefix is what Plasma uses to read/write plasmoid.configuration
|
||||
property alias cfg_refreshMinutes: intervalSpin.value
|
||||
|
||||
SpinBox {
|
||||
Item {
|
||||
Kirigami.FormData.isSection: true
|
||||
}
|
||||
|
||||
QQC2.SpinBox {
|
||||
id: intervalSpin
|
||||
Kirigami.FormData.label: i18n("Refresh interval (minutes):")
|
||||
from: 5
|
||||
to: 1440
|
||||
stepSize: 5
|
||||
editable: true
|
||||
Kirigami.FormData.label: i18n("Vernieuwinterval (minuten):")
|
||||
}
|
||||
|
||||
QQC2.Label {
|
||||
text: i18n("CoinGecko allows one request per 5 minutes; lower values are not possible.")
|
||||
font.italic: true
|
||||
opacity: 0.7
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user