Prevent a "You don't say" moment, only show the OSD when using the mousewheel on the tray icon
to provide feedback. Also make it more finegrained and allow 5% steps on the tray icon
This allows the caller to suppress the OSD, for instance batterymonitor will
eventually no longer show the OSD when the user is actively dragging the slider
in the popup but still when using the mousewheel on the icon.
REVIEW: 121507
KGlobalAccel takes first shortcut in list as primary and other as
secondary shortcut, and KShortcutsDialog only allows to edit primary
shortcut, see bug https://bugs.kde.org/show_bug.cgi?id=341942
This result in problem where only Screensaver key is configurable and
Alt+Ctrl+L can not be removed. Someone will less likely use Screensaver
key for other purposes.
CCBUG: 336348
Reviewed-by: Marco Martin <notmart@gmail.com>
Do not bind the image's sourceSize to the root item's size since that will reload the image
immediately whenever the size changes. Instead, wait 1 second and then gradually fade to the
new size.
REVIEW: 121294
Needs further investigation on why it crashes but probably when the Repeater recreates
the items due to data changing somewhere.
Also use modelData to access model data.
Reviewed-by: Lukas Tinkl
QTimeZone::systemTimeZoneId() will open /etc/localtime every single time it is called.
We are calling this in ::updateTime which happens every single minute, potentially
every second.
REVIEW: 121453
CCBUG: 335442
Don't use a separate label which causes the layout to shift but just use the
notification label and prepend the warning to any actual message.
REVIEW: 121419
This should eventually allow us to react to hotplugging a keyboard and provide brightness
controls then. It does not yet watch for PowerDevil's availability on DBus (eg. when kded
takes a bit longer to startup), and also PowerDevil's brightness controls don't support
on-demand activation yet
REVIEW: 121365
Tooltips aren't particularly discoverable. This also refactors the code away from using
a string containing a HTML table (which doesn't play well with RTL languages) to a fancy
Array and a GridLayout that is shared between the battery tooltip and the main view
BUG: 337996
FIXED-IN 5.2.0
QQC.ScrollView tries hard to set interactive=false on the
flickable item if the system has no touchscreen, which
disables GridView's keyPressEvent handling.
On the flip side the GridView code doesn't handle Home/End,
while this does.