Bug 353091

Summary: Cannot specify own periods for timer widget
Product: [Plasma] kdeplasma-addons Reporter: dzert127
Component: timerAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: allo, corebell.it, dzert127, nate, sabayon11, simgunz
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: All   
Latest Commit: Version Fixed In: 5.21

Description dzert127 2015-09-23 15:34:18 UTC
I can only select predefined time periods for countdown. There should be option in settings to add own periods (as it was in KDE4 timer widget).

Reproducible: Always

Steps to Reproduce:
Open settings.

Actual Results:  
No option for creating own time periods.

Expected Results:  
Option for creating own timer periods.
Comment 1 Simone Gaiarin 2016-03-05 11:48:56 UTC
This should really be fixed, since it breaks the main functionality of the widget!

Moreover it should be possible to specify a time interval on the fly, without the need to open the settings and add a new item in the list.
Comment 2 dzert127 2016-03-05 12:37:47 UTC
You can specify time interval on the fly using mouse scroll on every digit and starting timer just by left button click.
But anyway I stay with statement that there should be functionality allowing to predefine own periods.
Comment 3 Simone Gaiarin 2016-03-06 07:27:28 UTC
Thanks. I've missed the tooltip informations
Comment 4 Christoph Feck 2017-07-17 18:23:20 UTC
*** Bug 382350 has been marked as a duplicate of this bug. ***
Comment 5 apache 2018-10-17 15:13:38 UTC
Can this finally be done, please. I know about mouse scroll but I prefer to add my own values as predefined.

In
contents/config/main.xml
I added time values but this doesn't work

Code: Select all
  <group name="General">
    <entry name="predefinedTimers" type="StringList">
        <default>30,60,120,180,240,300,360,420,480,540,600,660,720,780,840,900,960,1020,1080,1140,1200,1500,1800,2700,3600</default>
Comment 6 Nate Graham 2020-12-10 18:46:18 UTC
Git commit b93baf5da0f1e1d993cda906c4823d205d3cc525 by Nate Graham, on behalf of Ɓukasz Korbel.
Committed on 10/12/2020 at 18:46.
Pushed by ngraham into branch 'master'.

Add settings page for predefined timers

Add new page in settings of Timer applet for editing "predefined timers" values. Those values are used in context menu of the applet.
Related: bug 301861, bug 397841
FIXED-IN: 5.21

M  +5    -0    applets/timer/package/contents/config/config.qml
D  +0    -40   applets/timer/package/contents/ui/TimerDigit.qml
A  +162  -0    applets/timer/package/contents/ui/TimerEdit.qml     [License: GPL (v2+)]
M  +15   -68   applets/timer/package/contents/ui/TimerView.qml
A  +175  -0    applets/timer/package/contents/ui/configTimes.qml     [License: GPL (v2+)]
M  +13   -13   applets/timer/package/contents/ui/main.qml
M  +5    -0    applets/timer/plugin/timer.cpp
M  +5    -0    applets/timer/plugin/timer.h

https://invent.kde.org/plasma/kdeplasma-addons/commit/b93baf5da0f1e1d993cda906c4823d205d3cc525