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

View file

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

View file

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

View file

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