Bug 342190

Summary: Calculator is less useful than in Plasma 4 - Cannot copy result
Product: [Plasma] krunner Reporter: Albert Astals Cid <aacid>
Component: calculatorAssignee: Vishesh Handa <me>
Status: RESOLVED FIXED    
Severity: normal CC: kde, taranarmo
Priority: NOR    
Version First Reported In: 5.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.2
Sentry Crash Report:

Description Albert Astals Cid 2014-12-24 12:28:20 UTC
In plasma 4 you do

 * Alt+F2
 * Type 2+2
 * Press enter
 * You get a 4 in the line edit you can copy and paste somewhere

In plasma 5 you do 
 * Alt+F2
 * Type 2+2
 * Press enter
 * Get nothing :/

I'd really like a way to be able to use the results of the calculator without having to copy them manually
Comment 1 David Edmundson 2014-12-26 18:32:58 UTC
I get 4 here.

Can you confirm you have the calculator runner enabled.

Also you've put this as milou, then your instructions refer to krunner.

Milou is like krunner, except it's an applet. Krunner is the one in another process invoked on alt+f2. Can you confirm which one you mean?

Thanks
Comment 2 Albert Astals Cid 2014-12-28 09:59:25 UTC
Yes, i do have the calculator enabled (at least it is checked if i press the button on the left of the line edit).

I guess it's krunner then (the thing that appears on alt+f2), there's no krunner component though

Note do get a 4 in the "results" list, but not back into the line area so i can't copy it which is what i want to do (maybe the "get nothing" was not a good idea)
Comment 3 Vishesh Handa 2014-12-29 10:14:05 UTC
Confirmed and assigned.
Comment 4 Vishesh Handa 2014-12-30 12:00:16 UTC
*** Bug 342271 has been marked as a duplicate of this bug. ***
Comment 5 Vishesh Handa 2014-12-30 13:05:40 UTC
Git commit 6a59b15203e5349ccf3aeb910aeb5560a71a59df by Vishesh Handa.
Committed on 30/12/2014 at 13:02.
Pushed by vhanda into branch 'master'.

KRunner: Update the query string when notified by the view

The Milou.ResultView now notifies us when it thinks we should update the
queryString. The main use of this is the calculator runner. On executing
an action on that runner, it is expected that the text field be updated.
FIXED-IN: 5.2

M  +5    -0    lookandfeel/contents/runcommand/RunCommand.qml

http://commits.kde.org/plasma-workspace/6a59b15203e5349ccf3aeb910aeb5560a71a59df