<table><tr><td style="">cblack created this revision.<br />cblack added reviewers: VDG, Kirigami.<br />Herald added a project: Kirigami.<br />Herald added a subscriber: plasma-devel.<br />cblack requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D26354">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>ActionRows are row widgets with associated actions. Left and right actions are triggered by swipes,<br />
and center actions are triggered with an interaction.</p></div></div><br /><div><strong>TEST PLAN</strong><div><div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">import QtQuick 2.12
import QtQuick.Controls 2.12
import QtQuick.Window 2.12
import org.kde.kirigami 2.12
Window {
visible: true
width: 640
height: 480
ListView {
anchors.fill: parent
model: 10
delegate: ActionRow {
width: parent.width
leftAction: Action {
text: "Copy"
onTriggered: {
print("Copy triggered")
}
}
centerAction: Action {
onTriggered: {
print("Center triggered")
}
}
rightAction: Action {
text: "Delete"
SwipeAction.foregroundColor: "white"
SwipeAction.backgroundColor: "#bf0039"
SwipeAction.isDelete: true
icon.name: "edit-delete"
onTriggered: {
print("Delete triggered")
}
}
}
}
title: qsTr("Hello World")
}</pre></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R169 Kirigami</div></div></div><br /><div><strong>BRANCH</strong><div><div>actionrow (branched from master)</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D26354">https://phabricator.kde.org/D26354</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/CMakeLists.txt<br />
src/controls/ActionRow.qml<br />
src/kirigamiplugin.cpp<br />
src/swipeaction.cpp<br />
src/swipeaction.h</div></div></div><br /><div><strong>To: </strong>cblack, VDG, Kirigami<br /><strong>Cc: </strong>plasma-devel, fbampaloukas, GB_2, domson, dkardarakos, ngraham, apol, ahiemstra, davidedmundson, mart, hein<br /></div>