0.3.1: Aggiorna nelle pagine di dettaglio
This commit is contained in:
1 parent
70f7ac4bd2
commit
548ec7eaac
5 files changed
+39
-4
No files matched your search
@@ -43,12 +43,28 @@ Page {
|
||||
anchors.fill: parent
|
||||
model: page.list()
|
||||
|
||||
PullDownMenu {
|
||||
MenuItem {
|
||||
text: qsTr("Aggiorna")
|
||||
onClicked: statusClient.refresh()
|
||||
}
|
||||
}
|
||||
|
||||
header: Column {
|
||||
width: view.width
|
||||
spacing: Theme.paddingSmall
|
||||
|
||||
PageHeader { title: qsTr("CPU") }
|
||||
|
||||
Label {
|
||||
x: Theme.paddingLarge
|
||||
width: parent.width - 2 * Theme.paddingLarge
|
||||
text: statusClient.busy ? qsTr("aggiornamento…")
|
||||
: qsTr("aggiornato alle ") + statusClient.fetchedAt
|
||||
font.pixelSize: Theme.fontSizeExtraSmall
|
||||
color: statusClient.error !== "" ? "#e53935" : Theme.secondaryColor
|
||||
}
|
||||
|
||||
Label {
|
||||
x: Theme.paddingLarge
|
||||
width: parent.width - 2 * Theme.paddingLarge
|
||||
|
||||
@@ -38,12 +38,28 @@ Page {
|
||||
anchors.fill: parent
|
||||
model: page.list()
|
||||
|
||||
PullDownMenu {
|
||||
MenuItem {
|
||||
text: qsTr("Aggiorna")
|
||||
onClicked: statusClient.refresh()
|
||||
}
|
||||
}
|
||||
|
||||
header: Column {
|
||||
width: view.width
|
||||
spacing: Theme.paddingSmall
|
||||
|
||||
PageHeader { title: qsTr("Memoria") }
|
||||
|
||||
Label {
|
||||
x: Theme.paddingLarge
|
||||
width: parent.width - 2 * Theme.paddingLarge
|
||||
text: statusClient.busy ? qsTr("aggiornamento…")
|
||||
: qsTr("aggiornato alle ") + statusClient.fetchedAt
|
||||
font.pixelSize: Theme.fontSizeExtraSmall
|
||||
color: statusClient.error !== "" ? "#e53935" : Theme.secondaryColor
|
||||
}
|
||||
|
||||
Label {
|
||||
x: Theme.paddingLarge
|
||||
width: parent.width - 2 * Theme.paddingLarge
|
||||
|
||||
Reference in new issue
Block a user