Commit Graph

30 Commits

Author SHA1 Message Date
Marco Martin
748d85362c set null icons on the widgets after been put in a proxy.
would hopefully cause a bit less pixmap usage

svn path=/trunk/KDE/kdelibs/; revision=1149631
2010-07-13 21:32:07 +00:00
Davide Bettio
3cf1e32282 Fixes the year toolbutton hover bug in Plasma::Calendar.
svn path=/trunk/KDE/kdelibs/; revision=1147175
2010-07-07 14:24:38 +00:00
Marco Martin
506a22400c connect to repaintneeded, tat will be emitted when the proper margins have been recalculated
svn path=/trunk/KDE/kdelibs/; revision=1142402
2010-06-24 20:52:14 +00:00
Igor Trindade Oliveira
b6a0c0775c move toolbutton to new animation api
svn path=/trunk/KDE/kdelibs/; revision=1077756
2010-01-20 20:27:41 +00:00
Davide Bettio
1202423649 Added setDown(bool) to Plasma::ToolButton.
svn path=/trunk/KDE/kdelibs/; revision=1077191
2010-01-19 16:20:41 +00:00
Davide Bettio
bf492e3465 Added missing condition: isDown() == true.
now the button looks always pressed.
CCMAIL: notmart@gmail.com

svn path=/trunk/KDE/kdelibs/; revision=1074900
2010-01-14 22:41:17 +00:00
Marco Martin
35d8587114 the fact that the toolbutton is using qstyle for the label painting makes reimplementation of the size hint really problematic, just use the native one for now
svn path=/trunk/KDE/kdelibs/; revision=1071247
2010-01-07 19:21:57 +00:00
Marco Martin
81e9c74cd3 don't change margins if the hint is empty
svn path=/trunk/KDE/kdelibs/; revision=1071059
2010-01-07 12:53:54 +00:00
Marco Martin
291b11f8a2 -update geometry when the text changes
-return a good size hint based on svg margins

svn path=/trunk/KDE/kdelibs/; revision=1071052
2010-01-07 12:44:20 +00:00
Petri Damstén
71fa982797 * Use correct font for size hint in Frame
* Use correct font in IconWidget setLayoutOptions
* layout fonts are set in IconWidget setLayoutOptions and layoutTextItems. No need to set them in paint.
* Fix using QGraphicsWidget font when customFont == true in several widgets.

svn path=/trunk/KDE/kdelibs/; revision=1047017
2009-11-10 09:46:14 +00:00
Marco Martin
67065e2ed2 always draw when the button is in checked state
svn path=/trunk/KDE/kdelibs/; revision=1040124
2009-10-25 17:17:22 +00:00
Marco Martin
2bdb8bc405 forward released too
svn path=/trunk/KDE/kdelibs/; revision=1034804
2009-10-13 15:29:23 +00:00
Darío Andrés Rodríguez
59296fb520 - Fix several minor issues reported by Krazy2
(http://reviewboard.kde.org/r/1837/)


svn path=/trunk/KDE/kdelibs/; revision=1034756
2009-10-13 12:40:13 +00:00
Marco Martin
5691d2a48b keep the mouseover state ourselves since it won't be updated when the
widget is disabled

svn path=/trunk/KDE/kdelibs/; revision=1034427
2009-10-12 17:17:46 +00:00
Marco Martin
8587a9dd47 forward pressed
svn path=/trunk/KDE/kdelibs/; revision=1031647
2009-10-05 17:20:05 +00:00
Marco Martin
3db6d84c03 provide isDown as well
svn path=/trunk/KDE/kdelibs/; revision=1031646
2009-10-05 17:16:09 +00:00
Marco Martin
f99025da70 unbreak svg element loading as button icon
svn path=/trunk/KDE/kdelibs/; revision=1028676
2009-09-27 21:26:46 +00:00
Aaron J. Seigo
9525a9a267 clean up the svg if we change the image strategy
svn path=/trunk/KDE/kdelibs/; revision=1022990
2009-09-13 17:15:56 +00:00
Aaron J. Seigo
45b39e84c4 * repaint the svg when the theme changes
* delete the svg before creating a new one
* only create a new svg object if the path has changed

svn path=/trunk/KDE/kdelibs/; revision=1022989
2009-09-13 17:13:55 +00:00
Marco Martin
5cc2ddf8ad always use plasma::theme font, unless somebody call setFont on the
widget
round one:widgets that draws themselves without native()-render()
and don't have a setFont function themselves

svn path=/trunk/KDE/kdelibs/; revision=1022897
2009-09-13 13:13:55 +00:00
Arthur Renato Mello
d9d08c94e0 Fix svg support on Plasma::ToolButton, setting correct path and size of svg
svn path=/trunk/KDE/kdelibs/; revision=997953
2009-07-16 18:03:22 +00:00
Marco Martin
d55d16976e don't paint button background if it's disabled
svn path=/trunk/KDE/kdelibs/; revision=982337
2009-06-15 14:35:00 +00:00
Aaron J. Seigo
9ddc33a663 allow setting a QAction on push and tool buttons
svn path=/trunk/KDE/kdelibs/; revision=958514
2009-04-24 07:40:52 +00:00
Marco Martin
88abeaf783 icon() and setIcon() in the api, pretty foundamental in a tool button...
svn path=/trunk/KDE/kdelibs/; revision=913027
2009-01-18 17:28:04 +00:00
Marco Martin
1b7bf8cdb9 use plasma font in some more widgets
svn path=/trunk/KDE/kdelibs/; revision=899830
2008-12-21 17:17:35 +00:00
Aaron J. Seigo
258a749f36 fix build on arm
svn path=/trunk/KDE/kdelibs/; revision=891099
2008-12-01 08:48:25 +00:00
Marco Martin
c94f93e4ef making the theme more complex wasn't such a good idea
svn path=/trunk/KDE/kdelibs/; revision=882952
2008-11-11 18:31:21 +00:00
Marco Martin
ec70aa7179 paint correctly not autoraise buttons (default behaviour is autoraise)
and expose setautoraise in the api

svn path=/trunk/KDE/kdelibs/; revision=882816
2008-11-11 12:50:42 +00:00
Marco Martin
bf6ef3f41d pushbutton has a glow also when pressed, toolbutton not.
svn path=/trunk/KDE/kdelibs/; revision=882769
2008-11-11 12:15:35 +00:00
Marco Martin
3cc9af418d as the name says, ehi, it's a toolbutton :)
svn path=/trunk/KDE/kdelibs/; revision=882689
2008-11-11 09:30:05 +00:00