Bug 421643 - half second delay
Summary: half second delay
Status: RESOLVED INTENTIONAL
Alias: None
Product: Spectacle
Classification: Applications
Component: General (show other bugs)
Version: 20.04.0
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: Boudhayan Gupta
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-16 20:42 UTC by Thibault Molleman
Modified: 2021-12-13 21:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-13254-0.html (1.97 KB, text/html)
2020-06-11 09:29 UTC, Thibault Molleman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thibault Molleman 2020-05-16 20:42:47 UTC
Spectacle only allows for delays with 1 second increments.
But I wish there was a way to set 0.5 seconds
Comment 1 Nate Graham 2020-06-10 20:31:08 UTC
In fact you can! Just edit the text in the text field and enter "0.5". I use this value all the time, probably for the same reason why you want to be able to. :)
Comment 2 Thibault Molleman 2020-06-11 07:46:23 UTC
Doesn't seem to work for me, if I type '0' to type '0.5' it just switches to 'no delay'
Comment 3 Antonio Prcela 2020-06-11 09:23:57 UTC
(In reply to Thibault Molleman from comment #2)
> Doesn't seem to work for me, if I type '0' to type '0.5' it just switches to
> 'no delay'

Try with a , instead of a .
Probably some locale dependency (mine is HR and uses , instead of . ) :)
Comment 4 Thibault Molleman 2020-06-11 09:29:51 UTC
Created attachment 129224 [details]
attachment-13254-0.html

Already tried that. Doesn't work either
BUT
What I noticed that if I type:
0,5
it just goes to no delay. while if i type:
,5
it shows 0,5 in the field and it does work actually.

So it seems to be that if you try and put in that first 0 it goes to 'no
delay' and ignores any further input.
Which isn't very intuitive, it should allow for entering
0,5
and have it work

Cheers,


On Thu, 11 Jun 2020 at 11:23, Antonio <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=421643
>
> Antonio <antonio.prcela@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |antonio.prcela@gmail.com
>
> --- Comment #3 from Antonio <antonio.prcela@gmail.com> ---
> (In reply to Thibault Molleman from comment #2)
> > Doesn't seem to work for me, if I type '0' to type '0.5' it just
> switches to
> > 'no delay'
>
> Try with a , instead of a .
> Probably some locale dependency (mine is HR and uses , instead of . ) :)
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 5 Antonio Prcela 2020-06-11 10:09:28 UTC
@Nate Graham
this would be a one liner:
https://invent.kde.org/graphics/spectacle/-/blob/master/src/Gui/KSWidget.cpp#L80

Change to 0.5.
Yay or nay?
Comment 6 Nate Graham 2020-06-11 12:55:48 UTC
Undecided.

Changing the step is easy, but I don't think that half-second increments are useful after a second. There's a use case for a 0.5 second delay, but IMO not really a use case for a 1.5 second or 2.5 second delay. Just using 1 or 2 or 3 seconds is fine.

Maybe there's a way to make the spinbox go from 1 second to 0.5 seconds if you click the down arrow when the current value is 1 second?
Comment 7 Antonio Prcela 2020-06-11 13:43:14 UTC
Looking at
https://doc.qt.io/qt-5/qdoublespinbox.html
&
https://doc.qt.io/qt-5/qabstractspinbox.html

Nothing to find that would add that kind of functionality out of the box. Seems like this would require some bits of logic to be added.

I'd give it a try and see if it can be done with some simple two-three liner. IMHO more than that for such a small feature would be too much.
Comment 8 Nate Graham 2021-12-13 21:22:32 UTC
Doesn't seem worth it given that the current "simple by default" one-second steps are good enough for most people and "powerful when needed" half-second steps already work.