We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2015-01-10 17:17:19 +0200

Notification copy feature

Sometimes i would like to copy the notification body text (specially from push notifications), but there is no way to do it.

Anyone else?

One possible implementation, maybe i should make a patch out of it...

/usr/share/lipstick-jolla-home-qt5/notifications/NotificationListView.qml :

                     text: qsTrId("lipstick-la-remove")
                     onClicked: remove()
                 }
+                MenuItem {
+                    text: "Copy"
+                    onClicked: Clipboard.text = modelData.body
+                }
             }
         }
     }

results

image description

Notification copy feature

Sometimes i would like to copy the notification body text (specially from push notifications), but there is no way to do it.

Anyone else?

One possible implementation, maybe i should make a patch out of it...

Not recommended... This change causes maliit to crash when copying is done. maliit-server: unhandled page fault (11) at 0x00000040, code 0x017

/usr/share/lipstick-jolla-home-qt5/notifications/NotificationListView.qml :

                     text: qsTrId("lipstick-la-remove")
                     onClicked: remove()
                 }
+                MenuItem {
+                    text: "Copy"
+                    onClicked: Clipboard.text = modelData.body
+                }
             }
         }
     }

results

image description

Notification copy feature

Sometimes i would like to copy the notification body text (specially from push notifications), but there is no way to do it.

Anyone else?

One possible implementation, maybe i should make a patch out of it...

Not recommended... This change causes maliit to crash when copying is done. maliit-server: unhandled page fault (11) at 0x00000040, code 0x017

/usr/share/lipstick-jolla-home-qt5/notifications/NotificationListView.qml :

                     text: qsTrId("lipstick-la-remove")
                     onClicked: remove()
                 }
+                MenuItem {
+                    text: "Copy"
+                    onClicked: Clipboard.text = modelData.body
+                }
             }
         }
     }

results

image description