Port App to Kirigami.PlaceholderMessage

This commit is contained in:
Tobias Fella 2020-05-02 00:18:22 +02:00
parent 9277cc537a
commit ef965c34cf
4 changed files with 10 additions and 14 deletions

View file

@ -22,7 +22,7 @@ import QtQuick 2.2
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.1
import QtQuick.Dialogs 1.0
import org.kde.kirigami 2.7 as Kirigami
import org.kde.kirigami 2.12 as Kirigami
import org.kde.kdeconnect 1.0
Kirigami.Page
@ -183,13 +183,9 @@ Kirigami.Page
Component {
id: notReachableDevice
Item {
property var actions: []
Label {
anchors.centerIn: parent
text: i18nd("kdeconnect-app", "This device is not reachable")
}
Kirigami.PlaceholderMessage {
text: i18nd("kdeconnect-app", "This device is not reachable")
anchors.centerIn: parent
}
}
}

View file

@ -21,7 +21,7 @@
import QtQuick 2.2
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.1
import org.kde.kirigami 2.10 as Kirigami
import org.kde.kirigami 2.12 as Kirigami
import org.kde.kdeconnect 1.0
Kirigami.ScrollablePage
@ -34,7 +34,7 @@ Kirigami.ScrollablePage
objectName: "FindDevices"
title: i18nd("kdeconnect-app", "Pair")
Label {
Kirigami.PlaceholderMessage {
text: i18nd("kdeconnect-app", "No devices found")
anchors.centerIn: parent
visible: devices.count === 0

View file

@ -21,7 +21,7 @@
import QtQuick 2.2
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.1
import org.kde.kirigami 2.0 as Kirigami
import org.kde.kirigami 2.12 as Kirigami
Kirigami.Page
{
@ -71,7 +71,7 @@ Kirigami.Page
}
}
Label {
Kirigami.PlaceholderMessage {
id: noPlayersText
text: i18nd("kdeconnect-app", "No players available")
anchors.centerIn: parent

View file

@ -21,7 +21,7 @@
import QtQuick 2.2
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.1
import org.kde.kirigami 2.0 as Kirigami
import org.kde.kirigami 2.12 as Kirigami
import org.kde.kdeconnect 1.0
Kirigami.Page
@ -53,7 +53,7 @@ Kirigami.Page
}
}
Label {
Kirigami.PlaceholderMessage {
visible: commandsList.count === 0
text: i18nd("kdeconnect-app", "No commands defined")
anchors.centerIn: parent