Alessio Bonfiglio (864593ad) at 25 Jan 13:34
My first approach was to use an enum, but when I did it didn't work. From your recent commit I see that the default value should have been an integer instead of the enum name. Is that a bug or the documentation is wrong?
Also kdeplasma-addons!304 (merged) should be merged then
Alessio Bonfiglio (9d5f9fed) at 25 Jan 03:53
Than let’s merge this as is, if there aren’t any other issues
Done for the digital clock (because it's the only clock that supports multiple timezones). Should I make this toggleable also for the others widgets?
Alessio Bonfiglio (60519c70) at 07 Jan 13:45
Add option to choose how show seconds
@ngraham any suggestion? I can put this behind a radio button setting (don’t show seconds, show seconds only in the tooltip, always show seconds) for example. Or show seconds only for the local time zone.
Done
Alessio Bonfiglio (9cc4a259) at 01 Jan 16:00
Make seconds update also when the digital clock is expanded
Twin mr of plasma-workspace!2232 for the binary and fuzzy clock widgets.
Alessio Bonfiglio (51c0ff66) at 29 Dec 15:39
Add seconds to clocks tooltip
Done
Alessio Bonfiglio (1bbda47b) at 23 Dec 17:25
fix digital-clock tooltip using only the clocks grid
Done, now it works as intended.
PS: I found a bug in the digital clock while working on this. The clocks
grid in Tooltip.qml is visible also when only the local timezone is selected. If the local timezone is guaranteed to be always always present in the selected timezones then the fix is just change line 76 to this visible: timezoneRepeater.count > 2
.
I'm not sure how exactly. From here, it seems I can use Binding {}
to update the property of an internal item with a local value, but I actually need the opposite: to read the toolTipVisibleChanged
signal and use the value of this signal to change the interval update time when needed. What I'm missing is actually the objects that holds that signal.
Note that in the analog clock I was able to use Plasmoid.toolTipItem.visible
because that widget uses a custom tooltip, so Plasmoid.toolTipItem
is defined, but the other clock widgets just uses the default tooltip (with custom texts) that I don't have any reference to in qml (Plasmoid.toolTipItem
is undefined in this case).
Ping!
I could use Connections {}
to connect a property inside the main.qml of the applet to a signal of ToolTipArea
(toolTipVisibleChanged
would be a perfect candidate), but, in order to do that, Connections {}
requires the field target
to be set to the ToolTipArea object currently in use by the widget, but I haven't any reference to that inside the qml of the widget.