Kai Uwe Broulik
d12521b149
Workaround a crash in GridLayout when using a Repeater
...
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
11 years ago
Kai Uwe Broulik
48dfc9ae53
Don't keep updating the values and details when the plasmoid is hidden anyway
11 years ago
Kai Uwe Broulik
ed2987651f
Get rid of charge animation
...
It was all fun and games but seemed to have been broken for a while and served no real purpose
11 years ago
Kai Uwe Broulik
656f624d60
Show battery details right in the view when there is only one battery
...
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
11 years ago
Kai Uwe Broulik
1f0869f925
Fix warning
11 years ago
Kai Uwe Broulik
bd4bd36110
Make sure the ToolTipArea is always topmost
...
Ensures the tooltip works reliably since apparently the ProgressBar eats mouse events
11 years ago
Kai Uwe Broulik
e6c23e0f7f
Make wheel scrolling more reliable and adjust to behavior changes
...
Make it always change brightness in 10% steps and reset the delta when direction
changes or the user enters or exits the area
11 years ago
Weng Xuetian
68d5ba5b64
Touchpad scroll fix for battery monitor
...
Use a property to calculate the accumulated angle, trigger a tick every
120 unit.
REVIEW: 121346
11 years ago
Kai Uwe Broulik
280b09d3c0
Manually dragging the slider breaks the binding to the value apparently
...
Listen for changes ourselves to make keyboard shortcuts make the slider move again
11 years ago
Kai Uwe Broulik
2c85cf2233
Use absolute brightness values in battery monitor
...
This finally allows us to have predictable sliders where a wheel whill always
result in a brightness change rather than having it go from 0 to 10 which is still
below 33% in case of 3 keyboard brightness steps resulting in no change whatsoever.
It also shows 0/3, 1/3, etc instead of percentage in such cases.
Also clean up a bit, remove superfluous clipping and prevent brightness change
on popup instantiation
11 years ago
l10n daemon script
672761080b
SVN_SILENT made messages (.desktop file)
11 years ago
l10n daemon script
5d4a69db37
SVN_SILENT made messages (.desktop file)
11 years ago
l10n daemon script
352e87eec9
SVN_SILENT made messages (.desktop file)
12 years ago
Kai Uwe Broulik
62c4bb1597
Adjust tooltip to new AC Adapter handling
12 years ago
Kai Uwe Broulik
5156a9d742
Simplify
12 years ago
Kai Uwe Broulik
77a4b209ba
Revert "Until we have our AC API back we just treat any battery not discharging as "AC plugged in""
...
Now that the AC Adapter is back in the dataengine, we can reflect the state properly again.
--Plasma Errata
This reverts commit bb6eabc0c9 .
Conflicts:
applets/batterymonitor/package/contents/ui/batterymonitor.qml
12 years ago
Kai Uwe Broulik
58bf2292cd
Remove leftover from States (no need to explicitly declare an anchor as undefined)
12 years ago
Kai Uwe Broulik
b4aa1a1539
Get rid of bottom panel layout
...
Makes it look better (no empty gap) and given you can change brightness using keyboard
shortcuts and mouse wheel, the looks outweigh the additional mouse travel
BUG: 336708
FIXED-IN: 5.1
12 years ago
Kai Uwe Broulik
66f7239f00
Fix typo
12 years ago
Kai Uwe Broulik
5369d7609e
--warnings
...
Reviewed-by: Martin Klapetek
12 years ago
Kai Uwe Broulik
68686dfa7c
Use battery-discharging for tooltip instead of a random percentage to not confuse the user
...
Needs plasma-framework e5bc62330fd8fbfee9080797bff8e75013fff999
12 years ago
Kai Uwe Broulik
06e7786232
Give it a sensible minimum size, 24px is no more
12 years ago
Kai Uwe Broulik
a6d23294c2
Show remaining time digitally without seconds
12 years ago
Kai Uwe Broulik
769fe55d16
Turn weird function into readonly bool property
12 years ago
Kai Uwe Broulik
fb2f069269
Use formatDuration (ie. show remaining time digitally)
...
Unfortunately it does not seem to export the "HideSeconds" property. Will need to investigate later
12 years ago
Kai Uwe Broulik
8a9836a20b
Fix broken PM checkbox
...
It broke with the QtQuick Controls checkbox since the hovered()/released() methods
we "forwarded" to make the Label look like it belongs to the CheckBox are no longer
available to us
12 years ago
Kai Uwe Broulik
3ec14c21ce
Show remaining battery time right in the tooltip
...
I got annoyed by always having to open the battery monitor, hover the battery to see it.
12 years ago
Kai Uwe Broulik
92d4efc1b4
Properly bound screenBrightness so it can never go below 0 or above 100
12 years ago
Сковорода Никита Андреевич
037d1e199e
batterymonitor: Make BatteryIcon animation run only while the BatteryIcon is visible.
...
REVIEW: 119653
12 years ago
Kai Uwe Broulik
2e320eb4b6
Allow changing screen brightness using mouse wheel
...
BUG: 307247
FIXED-IN: 5.1.0
12 years ago
Kai Uwe Broulik
c48e30f403
Move Brightness handling out of the popup dialog so it is accessible from outside
12 years ago
Kai Uwe Broulik
9d236c089b
Handle Not Charging battery state
12 years ago
Kai Uwe Broulik
c24d0de702
Simplify Battery Monitor Tooltip
...
Remove that broken table and just show the battery percentage
similar to what the lock screen does, since we no longer have
that overlay thingie. This also makes it consistent with the
other tooltips.
FIXED-IN: 5.1.0
BUG: 337092
12 years ago
Kai Uwe Broulik
3521215b27
Use title capitalization for context menu entry
12 years ago
Сковорода Никита Андреевич
e009824d29
batterymonitor: Make BatteryIcon animation run only while the BatteryIcon is visible.
...
REVIEW: 119653
12 years ago
Lukáš Tinkl
e900ef2d5a
start detached not to block the GUI
...
the config dialogs are not directly related to the applet anyway
12 years ago
Lukáš Tinkl
a11827f2b2
port the action to show powerdevil config in the context menu
...
instead of the somewhat useless standard config dialog
12 years ago
Marco Martin
6411b1793f
populate X-Plasma-Provides
...
populate of features the known applets
12 years ago
l10n daemon script
6ef6c7e692
SVN_SILENT made messages (.desktop file)
12 years ago
Kai Uwe Broulik
9cbd9290ca
Fix Compact Representation which broke in fa52f0f737
...
CCMAIL: aleixpol@kde.org
12 years ago
Kai Uwe Broulik
bb6eabc0c9
Until we have our AC API back we just treat any battery not discharging as "AC plugged in"
12 years ago
l10n daemon script
d0c3845cb2
SVN_SILENT made messages (.desktop file)
12 years ago
Aleix Pol
3e58744036
Ensure we mark batteries as connected when the charge is full too
...
I always found weird that the blue lightning is disabled when my
laptop is charged and connected, so came up with this little patch.
REVIEW: 118973
12 years ago
l10n daemon script
e558bc76b9
SVN_SILENT made messages (.desktop file)
12 years ago
Kai Uwe Broulik
1339e294c1
Use actual width "100%" needs instead of using gridUnit magic numbers
...
BUG: 336707
12 years ago
Kai Uwe Broulik
1d3ef221fe
Adjust to new icon names
12 years ago
Vishesh Handa
d294f87729
BatteryMonitor: Update icon names
12 years ago
Kai Uwe Broulik
f4f74d85ab
Fix initial brightness slider position
...
The updateBrightness call was somehow lost in the transition to the new full representation thing
12 years ago
Kai Uwe Broulik
6901c5d60a
Move comment to the right position and cleanup
12 years ago
Kai Uwe Broulik
5d9e9ca8bb
Revert "Use a proper scrollbar"
...
This reverts commit a469d968d5 .
12 years ago