36 lines
868 B
QML
36 lines
868 B
QML
/*
|
|
* 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 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
|
|
|
|
Item {
|
|
Kirigami.FormData.isSection: true
|
|
}
|
|
|
|
QQC2.SpinBox {
|
|
id: intervalSpin
|
|
Kirigami.FormData.label: i18n("Refresh interval (minutes):")
|
|
from: 5
|
|
to: 1440
|
|
stepSize: 5
|
|
editable: true
|
|
}
|
|
|
|
QQC2.Label {
|
|
text: i18n("CoinGecko allows one request per 5 minutes; lower values are not possible.")
|
|
font.italic: true
|
|
opacity: 0.7
|
|
}
|
|
}
|