Marco Martin
5b2983c17e
animate from the current value, not from 0
...
BUG:231292
svn path=/trunk/KDE/kdelibs/; revision=1135492
2010-06-07 12:50:06 +00:00
Marco Martin
05c9cab404
paint labels in text color if not manually set
...
svn path=/trunk/KDE/kdelibs/; revision=1129448
2010-05-22 12:49:25 +00:00
Aaron J. Seigo
d1263e7096
don't set the size policy to be fixed
...
BUG:181241
svn path=/trunk/KDE/kdelibs/; revision=1125260
2010-05-11 04:02:00 +00:00
Aaron J. Seigo
a6991a8417
SVI_SILENT: cleanup
...
svn path=/trunk/KDE/kdelibs/; revision=1125259
2010-05-11 03:51:22 +00:00
Aaron J. Seigo
4fe1de06bb
the svg is not getting set unless the meter type is explicitly set. sad.
...
svn path=/trunk/KDE/kdelibs/; revision=1095297
2010-02-23 23:21:50 +00:00
Marco Martin
989df58b2b
-a size hint. hardcoded because here we can't really have infos but is already better than nothing
...
-if the alignment of lablels is left, paint with a point instead of a rect, so won't clip away the text
svn path=/trunk/KDE/kdelibs/; revision=1083230
2010-01-31 21:30:41 +00:00
Igor Trindade Oliveira
99cd8006e6
remove private class from meter.cpp and support some properties on it.
...
The properties are useful to be used in animation.
svn path=/trunk/KDE/kdelibs/; revision=1080846
2010-01-27 02:50:47 +00:00
Igor Trindade Oliveira
94e48dc79f
Oops .. fix property name used in qpropertyanimation
...
svn path=/trunk/KDE/kdelibs/; revision=1078268
2010-01-21 22:28:45 +00:00
Igor Trindade Oliveira
e3c568bcfd
port Meter widget to new animatio api.
...
svn path=/trunk/KDE/kdelibs/; revision=1078101
2010-01-21 14:49:56 +00:00
Marco Martin
f6c7a9b177
intersects the clip rect, no more painiting outside scrollwidgets
...
svn path=/trunk/KDE/kdelibs/; revision=1051054
2009-11-18 18:32:08 +00:00
Petri Damstén
9865c3f8d4
Calculate percentage correctly when minimum != 0
...
svn path=/trunk/KDE/kdelibs/; revision=1048282
2009-11-13 01:37:29 +00:00
Aaron J. Seigo
16bf535e5e
forward port r999260 by Ade
...
CCBUG:199899
svn path=/trunk/KDE/kdelibs/; revision=1002146
2009-07-25 07:21:14 +00:00
Aaron J. Seigo
b967d0944e
turn off caching when we are rending the bar
...
BUG:185642
svn path=/trunk/KDE/kdelibs/; revision=967637
2009-05-13 16:40:51 +00:00
Stephan Kulow
f9abcd96e4
anoter case of useless warnings
...
svn path=/trunk/KDE/kdelibs/; revision=907540
2009-01-08 11:32:55 +00:00
Marco Martin
47c511c86c
build on arm
...
svn path=/trunk/KDE/kdelibs/; revision=904274
2009-01-01 19:17:53 +00:00
Marco Martin
66bb0f6bda
avoid harder divisions by zero
...
BUG:178746
svn path=/trunk/KDE/kdelibs/; revision=902555
2008-12-28 17:09:21 +00:00
Aaron J. Seigo
f1316fb4b8
avoid div by zero
...
BUG:178854
svn path=/trunk/KDE/kdelibs/; revision=901977
2008-12-27 05:37:50 +00:00
Marco Martin
938b6291fc
use always qreal and convert to int just at the last moment, should
...
avoid some nice divide by 0
CCBUG:178746
svn path=/trunk/KDE/kdelibs/; revision=901542
2008-12-25 21:23:26 +00:00
Marco Martin
0ea6365356
restore the svg size, oops
...
svn path=/trunk/KDE/kdelibs/; revision=900801
2008-12-23 16:41:34 +00:00
Marco Martin
d1e083f211
paint the background as the same size of the progress bar, no more empty
...
areas before and after
support for stretched bars
svn path=/trunk/KDE/kdelibs/; revision=900723
2008-12-23 13:05:37 +00:00
Rob Scheepmaker
7a90f822a5
Resize Plasma::Meter not to it's native size, since larger fonts will get cut off. Instead count the amount of label rows and multiply with the font height.
...
svn path=/trunk/KDE/kdelibs/; revision=893992
2008-12-07 16:45:49 +00:00
Rob Scheepmaker
ab56a3a388
Couple of fixes:
...
* Close empty extender when clicking in it.
BUG:176545
* Saner size policy for Plasma::Meter. (the height should never be able to be smaller then svg's height because labels could otherwise overlap, actually, the whole current approach doesn't consider font size, I think we should think of a better approach for 4.3)
* Use the same spacer as used in the panel for extenders. I think we would want some svg themable shared spacer widget for 4.3, but at least this adds some consistency.
svn path=/trunk/KDE/kdelibs/; revision=891328
2008-12-01 18:30:42 +00:00
Aaron J. Seigo
271b20924e
tonights shinyness: make meters progress smoothly instead of jump if the change is both large enough and animations are enabled
...
also: keep the value within the min/max bounds and don't update if the value hasn't actually changed.
svn path=/trunk/KDE/kdelibs/; revision=881849
2008-11-09 04:16:27 +00:00
Rob Scheepmaker
4cb5e7857c
Added labelRect function to meter to allow applets to create correctly elided text.
...
svn path=/trunk/KDE/kdelibs/; revision=881275
2008-11-07 17:19:47 +00:00
Marco Martin
3e275d8b05
support for a shadow element
...
svn path=/trunk/KDE/kdelibs/; revision=880936
2008-11-06 22:07:42 +00:00
Aaron J. Seigo
1b523b9054
ok, this time JUST the plasma dir ;)
...
svn path=/trunk/KDE/kdelibs/; revision=879759
2008-11-03 23:08:39 +00:00
Aaron J. Seigo
fa5a2d87d9
bum-de-dum! plasma to kdelibs.
...
svn path=/trunk/KDE/kdelibs/; revision=879757
2008-11-03 23:03:26 +00:00
Kevin Ottens
f66b4d819b
API changes as announced:
...
* ConfigXml becomes ConfigLoader
* Containment::(add|remove)ToolBoxTool(QAction *action) becomes
Containment::(add|remove)ToolBoxAction(QAction *action)
* Flash becomes FlashingLabel
* Icon becomes IconWidget
* PanelSvg becomes FrameSvg
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=877504
2008-10-29 17:46:33 +00:00
Marco Martin
8560092760
don't try to paint when there is no image
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=876828
2008-10-28 08:29:39 +00:00
Marco Martin
9dfd938d17
new theming capabilities into the bar meter widget
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=876149
2008-10-26 16:00:32 +00:00
Allen Winter
eae853582b
coding style fixes.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870205
2008-10-12 01:31:54 +00:00
Rob Scheepmaker
a6293d363f
Extenders enter trunk! The implementation still has some rough edges and fixmes, but the api
...
is in quite nice shape and basides a couple of bugs, it basically works. So what are you
still doing reading this? Port your favourite applet to extenders today! ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=840978
2008-08-02 11:48:56 +00:00
Marijn Kruisselbrink
21b148b963
change all ClassName::Private classes to ClassNamePrivate, and adjust friends accordingly; this makes plasma compilable with gcc < 4.2
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=826893
2008-07-01 18:56:43 +00:00
Albert Astals Cid
4068f45cf9
const & in foreach
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=801430
2008-04-26 16:19:00 +00:00
Marco Martin
d0ba4e77ec
Api change:
...
Plasma::Svg(imagePath, parent) -> Plasma::Svg(parent) and
Plasma::PanelSvg(imagePath, parent) -> Plasma::PanelSvg(parent)
updated as needed every class that was using Svg or PanelSvg
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=800143
2008-04-23 13:07:41 +00:00
Petri Damstén
77e66bc8fb
Convert Meter and SignalPlotter to QGraphicsWidget based widgets
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=799477
2008-04-21 16:26:18 +00:00
Dan Meltzer
7f624f85d9
Revert one large git mess
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780657
2008-02-29 17:50:57 +00:00
Dan Meltzer
a081559257
Commit initial progress of work to port to qt4.4
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=780654
2008-02-29 17:43:31 +00:00
Aaron J. Seigo
756041badd
const ref fixes
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=776990
2008-02-19 09:19:02 +00:00
Aaron J. Seigo
b9b99b4fd2
updated -> dataUpdated to make it really clear what's going on. there are too many update* methods, esp in applets where there is update() and updated()... a painful change, but it will only get worse if it happens any later.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=733314
2007-11-06 07:20:08 +00:00
Petri Damstén
82b947252e
Remove debugs
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=723007
2007-10-08 12:49:22 +00:00
Petri Damstén
1fce16d307
Add color, font, alignment support for labels.
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=722537
2007-10-07 14:52:17 +00:00
Petri Damstén
ff7fb9e515
Plasma::Meter from playground to libplasma
...
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=716909
2007-09-25 15:26:03 +00:00