Advertisement
Guest User

Untitled

a guest
Feb 27th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. diff --git a/qml/pages/CameraUI.qml b/qml/pages/CameraUI.qml
  2. index b6a5537..c9a7972 100644
  3. --- a/qml/pages/CameraUI.qml
  4. +++ b/qml/pages/CameraUI.qml
  5. @@ -7,6 +7,7 @@ import QtQuick.Layouts 1.0
  6. import uk.co.piggz.harbour_advanced_camera 1.0
  7. import Nemo.Configuration 1.0
  8. import "../components/"
  9. +import org.nemomobile.dbus 2.0
  10.  
  11. Page {
  12. id: page
  13. @@ -649,6 +650,14 @@ Page {
  14. }
  15. }
  16.  
  17. + DBusInterface {
  18. + id: jollaGallery
  19. +
  20. + service: 'com.jolla.gallery'
  21. + iface: 'com.jolla.gallery.ui'
  22. + path: '/com/jolla/gallery/ui'
  23. + }
  24. +
  25. RoundButton {
  26. id: btnGallery
  27.  
  28. @@ -666,7 +675,9 @@ Page {
  29. image: "image://theme/icon-m-image"
  30.  
  31. onClicked: {
  32. - pageStack.push(Qt.resolvedUrl("GalleryUI.qml"), { "photoList": modelData })
  33. + //pageStack.push(Qt.resolvedUrl("GalleryUI.qml"), { "photoList": modelData })
  34. + jollaGallery.call('showImages', modelData)
  35. + //jollaGallery.call('openFile', modelData.get(modelData.count - 1).photoPath)
  36. }
  37. }
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement