• Alessio Bonfiglio's avatar
    Make clocks tooltip consistent and add seconds · a521f5ad
    Alessio Bonfiglio authored and Fushan Wen's avatar Fushan Wen committed
    Having the seconds visible in your clock widget can be distracting, so most people decide to keep them hidden. Sometimes though it happens that you may need to know them: the idea  behind this mr is to make them always available in the tooltip of the clock widgets. And also make these tooltips consistent with each others as a bonus.
    
    Unfortunately I'm no expert with qml, and I got stuck trying to accessing the tooltip inside the widget qml sources. I need to know when the tooltip is shown in order to change the sampling time and the alignment type of the time datasource. In the case of the digital clock, I can get that through `Plasmoid.toolTipItem.visible` because a custom tooltip is used, but in the analog clock this isn't the case and so `Plasmoid.toolTipItem` doesn't reference anything. I'd need to access the `visible` property of the `ToolTipDialog` currently in use, and probably a good solution would be to connect that to a new signal in `appletinterfac...
    a521f5ad