Port to kirigami 2.0
This commit is contained in:
parent
48928a1a3f
commit
51c4eb68c6
6 changed files with 9 additions and 11 deletions
|
@ -21,7 +21,7 @@
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.1
|
import QtQuick.Controls 1.1
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import org.kde.kirigami 1.0 as Kirigami
|
import org.kde.kirigami 2.0 as Kirigami
|
||||||
import org.kde.kdeconnect 1.0
|
import org.kde.kdeconnect 1.0
|
||||||
|
|
||||||
Kirigami.Page
|
Kirigami.Page
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.1
|
import QtQuick.Controls 1.1
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import org.kde.kirigami 1.0 as Kirigami
|
import org.kde.kirigami 2.0 as Kirigami
|
||||||
import org.kde.kdeconnect 1.0
|
import org.kde.kdeconnect 1.0
|
||||||
|
|
||||||
Kirigami.Page
|
Kirigami.Page
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.1
|
import QtQuick.Controls 1.1
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import org.kde.kirigami 1.0 as Kirigami
|
import org.kde.kirigami 2.0 as Kirigami
|
||||||
import org.kde.kdeconnect 1.0
|
import org.kde.kdeconnect 1.0
|
||||||
|
|
||||||
Kirigami.BasicListItem
|
Kirigami.BasicListItem
|
||||||
|
|
|
@ -21,22 +21,21 @@
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.1
|
import QtQuick.Controls 1.1
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import org.kde.kirigami 1.0 as Kirigami
|
import org.kde.kirigami 2.0 as Kirigami
|
||||||
import org.kde.kdeconnect 1.0
|
import org.kde.kdeconnect 1.0
|
||||||
|
|
||||||
Kirigami.ApplicationWindow
|
Kirigami.ApplicationWindow
|
||||||
{
|
{
|
||||||
id: root
|
id: root
|
||||||
visible: true
|
visible: true
|
||||||
width: 400
|
width: 900
|
||||||
height: 500
|
height: 500
|
||||||
|
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
id: findDevicesAction
|
id: findDevicesAction
|
||||||
text: i18n ("Find devices...")
|
text: i18n ("Find devices...")
|
||||||
iconName: "list-add"
|
iconName: "list-add"
|
||||||
checkable: pageStack.currentItem && pageStack.currentItem.objectName == "FindDevices"
|
checked: pageStack.currentItem && pageStack.currentItem.objectName == "FindDevices"
|
||||||
checked: true
|
|
||||||
|
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
root.pageStack.clear()
|
root.pageStack.clear()
|
||||||
|
@ -77,8 +76,7 @@ Kirigami.ApplicationWindow
|
||||||
iconName: model.iconName
|
iconName: model.iconName
|
||||||
text: display + "\n" + toolTip
|
text: display + "\n" + toolTip
|
||||||
enabled: status & DevicesModel.Reachable
|
enabled: status & DevicesModel.Reachable
|
||||||
checkable: pageStack.currentItem && pageStack.currentItem.currentDevice == device
|
checked: pageStack.currentItem && pageStack.currentItem.currentDevice == device
|
||||||
checked: true
|
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
root.pageStack.clear()
|
root.pageStack.clear()
|
||||||
root.pageStack.push(
|
root.pageStack.push(
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.2
|
import QtQuick.Controls 1.2
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import org.kde.kirigami 1.0 as Kirigami
|
import org.kde.kirigami 2.0 as Kirigami
|
||||||
|
|
||||||
Kirigami.Page
|
Kirigami.Page
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.2
|
import QtQuick.Controls 1.2
|
||||||
import QtQuick.Layouts 1.1
|
import QtQuick.Layouts 1.1
|
||||||
import org.kde.kirigami 1.0 as Kirigami
|
import org.kde.kirigami 2.0 as Kirigami
|
||||||
|
|
||||||
Kirigami.Page
|
Kirigami.Page
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue