D4961: [Folder View] Allow querying currentItem

Kai Uwe Broulik noreply at phabricator.kde.org
Mon Mar 6 16:21:55 UTC 2017


broulik created this revision.
Restricted Application added a project: Plasma.
Restricted Application added a subscriber: plasma-devel.

REVISION SUMMARY
  GridView doesn't have an itemAt(index) method, just indexAt(x,y).
  This workaround emits a signal to which the delegates listen to and then set currentItem to itself it the item is the current one.

TEST PLAN
  This will be used for opening the context menu at the current item in response to a keyboard press. There might be other usescases.

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D4961

AFFECTED FILES
  containments/desktop/package/contents/ui/FolderItemDelegate.qml
  containments/desktop/package/contents/ui/FolderView.qml

To: broulik, #plasma, hein
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170306/75d1bbc1/attachment.html>


More information about the Plasma-devel mailing list