Add copy and paste support for calculator widget

Review Request #123161 - Created March 27, 2015 and submitted

Information
Bernhard Friedreich
kdeplasma-addons
master
318221
dea2383...
Reviewers
plasma
The current displayed value from the textfield can be copied.
Content from the clipboard can be pasted but only if the content
is a valid number

BUG: 318221

Copying:
*) Tried copying entered numbers and results - works for me :)

Pasting:
*) Pasting "asdf" leads to nothing being pasted - correct
*) Pasting "5" appends the number to the currently entered input or replaces the current number in case an operator has been pressed before

Only pasting doubles is possible - no signs or full math expressions are supported.
It looks like the plasmoid doesn't supports signed numbers in general (e.g. 5 - -5 doesnt result in 10)

Comments welcome :) This is my second patch so hopefully my work isn't complete garbage :P

Issues

  • 0
  • 2
  • 0
  • 2
Description From Last Updated
David Edmundson
Bernhard Friedreich
David Edmundson
Bernhard Friedreich
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit 16cad20c28e09109844f1e34ae87c71ae8259350 by David Edmundson on behalf of Bernhard Friedreich to branch master.
Loading...