D6183: [Digital Clock] Allow copying current date and time to clipboard
Kai Uwe Broulik
noreply at phabricator.kde.org
Fri Apr 6 08:33:40 UTC 2018
broulik added a comment.
Looks good
> I don't know how to make the result of the action available to the MMB (middle mouse button).
`QClipboard::setText()` has a `mode` argument that specifies which buffer it should use.
Default is `QClipboard::Clipboard` (the Ctrl+V one), just call it again with `QClipboard::Selection` for middle mouse paste
INLINE COMMENTS
> broulik wrote in DigitalClock.qml:74
> I just figured since `ClipboardMenu` is a singleton-type, it's shared between all digital clock applets. You can have different timezones in each. So what we instead should do is:
>
> Connections {
> target: plasmoid
> onContextualActionsAboutToShow: {
> ClipboardMenu.currentDate = main.currentTime;
> }
> }
>
> This way we always only update when the respective context menu is opened.
You didn't address this comment in your updated patch
REVISION DETAIL
https://phabricator.kde.org/D6183
To: bschiffner, #plasma, broulik
Cc: sharvey, davidedmundson, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180406/fa1c56aa/attachment-0001.html>
More information about the Plasma-devel
mailing list