Changeset View
Changeset View
Standalone View
Standalone View
kcmkwin/kwineffects/package/contents/ui/Effect.qml
Show All 18 Lines | |||||
19 | 19 | | |||
20 | import QtQuick 2.5 | 20 | import QtQuick 2.5 | ||
21 | import QtQuick.Controls 2.5 as QQC2 | 21 | import QtQuick.Controls 2.5 as QQC2 | ||
22 | import QtQuick.Layouts 1.1 | 22 | import QtQuick.Layouts 1.1 | ||
23 | 23 | | |||
24 | import org.kde.kirigami 2.5 as Kirigami | 24 | import org.kde.kirigami 2.5 as Kirigami | ||
25 | 25 | | |||
26 | Kirigami.SwipeListItem { | 26 | Kirigami.SwipeListItem { | ||
27 | id: listItem | ||||
27 | hoverEnabled: true | 28 | hoverEnabled: true | ||
28 | onClicked: { | 29 | onClicked: { | ||
29 | view.currentIndex = index; | 30 | view.currentIndex = index; | ||
30 | } | 31 | } | ||
31 | contentItem: RowLayout { | 32 | contentItem: RowLayout { | ||
32 | id: row | 33 | id: row | ||
33 | QQC2.RadioButton { | 34 | QQC2.RadioButton { | ||
34 | property bool _exclusive: model.ExclusiveRole != "" | 35 | property bool _exclusive: model.ExclusiveRole != "" | ||
Show All 19 Lines | |||||
54 | QQC2.CheckBox { | 55 | QQC2.CheckBox { | ||
55 | checkState: model.StatusRole | 56 | checkState: model.StatusRole | ||
56 | visible: model.ExclusiveRole == "" | 57 | visible: model.ExclusiveRole == "" | ||
57 | 58 | | |||
58 | onToggled: model.StatusRole = checkState | 59 | onToggled: model.StatusRole = checkState | ||
59 | } | 60 | } | ||
60 | 61 | | |||
61 | ColumnLayout { | 62 | ColumnLayout { | ||
62 | QQC2.Label { | 63 | Layout.topMargin: Kirigami.Units.smallSpacing | ||
64 | Layout.bottomMargin: Kirigami.Units.smallSpacing | ||||
65 | spacing: 0 | ||||
66 | | ||||
67 | Kirigami.Heading { | ||||
63 | Layout.fillWidth: true | 68 | Layout.fillWidth: true | ||
64 | 69 | | |||
65 | font.weight: Font.Bold | 70 | level: 4 | ||
66 | text: model.NameRole | 71 | text: model.NameRole | ||
67 | wrapMode: Text.Wrap | 72 | wrapMode: Text.Wrap | ||
68 | } | 73 | } | ||
69 | 74 | | |||
70 | QQC2.Label { | 75 | QQC2.Label { | ||
71 | Layout.fillWidth: true | 76 | Layout.fillWidth: true | ||
72 | 77 | | |||
73 | text: model.DescriptionRole | 78 | text: model.DescriptionRole | ||
79 | opacity: listItem.hovered ? 0.8 : 0.6 | ||||
74 | wrapMode: Text.Wrap | 80 | wrapMode: Text.Wrap | ||
75 | } | 81 | } | ||
76 | 82 | | |||
77 | QQC2.Label { | 83 | QQC2.Label { | ||
78 | id: aboutItem | 84 | id: aboutItem | ||
79 | 85 | | |||
80 | Layout.fillWidth: true | 86 | Layout.fillWidth: true | ||
81 | 87 | | |||
82 | font.weight: Font.Bold | | |||
83 | text: i18n("Author: %1\nLicense: %2", model.AuthorNameRole, model.LicenseRole) | 88 | text: i18n("Author: %1\nLicense: %2", model.AuthorNameRole, model.LicenseRole) | ||
89 | opacity: listItem.hovered ? 0.8 : 0.6 | ||||
84 | visible: view.currentIndex === index | 90 | visible: view.currentIndex === index | ||
85 | wrapMode: Text.Wrap | 91 | wrapMode: Text.Wrap | ||
86 | } | 92 | } | ||
87 | 93 | | |||
88 | Loader { | 94 | Loader { | ||
89 | id: videoItem | 95 | id: videoItem | ||
90 | 96 | | |||
91 | active: false | 97 | active: false | ||
Show All 31 Lines |