Commit ef965c34 authored by Tobias Fella's avatar Tobias Fella
Browse files

Port App to Kirigami.PlaceholderMessage

parent 9277cc53
Pipeline #19329 failed with stage
in 5 minutes and 18 seconds
......@@ -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
}
}
}
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment