Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/qml/NewStuffItem.qml
Show All 16 Lines | |||||
17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public | ||
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | 18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
19 | * | 19 | * | ||
20 | */ | 20 | */ | ||
21 | 21 | | |||
22 | import QtQuick 2.2 | 22 | import QtQuick 2.2 | ||
23 | import QtQuick.Controls 1.4 as QtControls | 23 | import QtQuick.Controls 1.4 as QtControls | ||
24 | 24 | | |||
25 | import org.kde.kirigami 1.0 as Kirigami | 25 | import org.kde.kirigami 2.1 as Kirigami | ||
26 | import org.kde.newstuff 1.0 as NewStuff | 26 | import org.kde.newstuff 1.0 as NewStuff | ||
27 | 27 | | |||
28 | Kirigami.SwipeListItem { | 28 | Kirigami.SwipeListItem { | ||
29 | id: listItem; | 29 | id: listItem; | ||
30 | width: ListView.width; | | |||
31 | height: Kirigami.Units.iconSizes.huge + Kirigami.Units.smallSpacing * 2; | 30 | height: Kirigami.Units.iconSizes.huge + Kirigami.Units.smallSpacing * 2; | ||
32 | property QtObject listModel; | 31 | property QtObject listModel; | ||
33 | enabled: true; | 32 | enabled: true; | ||
34 | actions: [ | 33 | actions: [ | ||
35 | Kirigami.Action { | 34 | Kirigami.Action { | ||
36 | text: i18nc("Request installation of this item", "Install"); | 35 | text: i18nc("Request installation of this item", "Install"); | ||
37 | iconName: "list-add" | 36 | iconName: "list-add" | ||
38 | onTriggered: { listModel.installItem(model.index); } | 37 | onTriggered: { listModel.installItem(model.index); } | ||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |