Marco Martin
28e6398a6a
hide the focus indicator if the stylesheet is not empty
...
svn path=/trunk/KDE/kdelibs/; revision=1202169
2010-11-29 22:30:35 +00:00
Marco Martin
4dd1c28b6d
fix the wreckage caused by last commit
...
bad Aaron, no cookie :)
can you check if those changes make sense upon what your patch ws supposed to be?
CCMAIL:aseigo@kde.org
svn path=/trunk/KDE/kdelibs/; revision=1188445
2010-10-22 12:29:35 +00:00
Aaron J. Seigo
a793185b21
consolidate all the theming (palette, fonts) code for widgets into a private interface: ThemeWidgetInterface. have the relevant *Private classes inherit from it and all the tricky logic is now in one place and consistent.
...
svn path=/trunk/KDE/kdelibs/; revision=1188314
2010-10-22 00:25:17 +00:00
Aaron J. Seigo
521bc968fd
clean ups, share the FrameSvg object
...
svn path=/trunk/KDE/kdelibs/; revision=1178368
2010-09-22 20:47:35 +00:00
Aaron J. Seigo
1fc68e3ef9
IMPROVEMENT: add a clicked() slot (which just backends on to animateClick()), and make setChecked a slot like it is in the native widget
...
svn path=/trunk/KDE/kdelibs/; revision=1175311
2010-09-14 17:34:31 +00:00
Marco Martin
0d6a38b954
add Qt::TextShowMnemonic when painting text
...
svn path=/trunk/KDE/kdelibs/; revision=1164885
2010-08-17 21:04:52 +00:00
Marco Martin
bc6d40852b
animate hide of the focus indicator when a button is pressed
...
svn path=/trunk/KDE/kdelibs/; revision=1164481
2010-08-16 21:16:53 +00:00
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
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
Andreas Hartmetz
c7b2aa9134
Compile, and use the usual spacing between operators
...
svn path=/trunk/KDE/kdelibs/; revision=1136794
2010-06-10 19:05:16 +00:00
Nicolas Lécureuil
c40ea8e691
Fix pushbutton text
...
BUG: 192988
svn path=/trunk/KDE/kdelibs/; revision=1136786
2010-06-10 18:05:00 +00:00
Marco Martin
a5dc1e58fd
correctly resize the svg element
...
svn path=/trunk/KDE/kdelibs/; revision=1136012
2010-06-08 17:16:01 +00:00
Marco Martin
0a4a525237
don't use anymore that pushbutton prefix nonsense
...
svn path=/trunk/KDE/kdelibs/; revision=1126667
2010-05-14 15:36:19 +00:00
Marco Martin
a27ffd0e97
use pushbutton prefix if available
...
svn path=/trunk/KDE/kdelibs/; revision=1126613
2010-05-14 13:26:52 +00:00
Marco Martin
1bbbe5f173
use focusindicator to do button shadows too (perfectly retrocompatible by the way).
...
this makes buttons be correctly aligned in layouts
svn path=/trunk/KDE/kdelibs/; revision=1126591
2010-05-14 12:45:54 +00:00
Björn Ruberg
b14a9ed2d8
Removed doubled call to setElementPrefix("normal")
...
svn path=/trunk/KDE/kdelibs/; revision=1106026
2010-03-21 17:46:28 +00:00
Marco Martin
ed0f495b4e
paint the pressed state too
...
svn path=/trunk/KDE/kdelibs/; revision=1085661
2010-02-05 17:41:42 +00:00
Marco Martin
ee7be144b1
use pixmaptransition animation
...
svn path=/trunk/KDE/kdelibs/; revision=1079688
2010-01-24 19:48:18 +00:00
Igor Trindade Oliveira
2d2dc8a37a
remove debug message
...
svn path=/trunk/KDE/kdelibs/; revision=1078683
2010-01-22 16:05:39 +00:00
Igor Trindade Oliveira
323d93a0b1
go go go! port push button to new animation api
...
svn path=/trunk/KDE/kdelibs/; revision=1078224
2010-01-21 20:07:33 +00:00
Marco Martin
a1d1b12624
like toolbutton, base on the svg margins for the size hint
...
svn path=/trunk/KDE/kdelibs/; revision=1071054
2010-01-07 12:50:56 +00:00
Marco Martin
4864d47b42
create the background earlier to prevent the button to be painted in a wrong size
...
svn path=/trunk/KDE/kdelibs/; revision=1064741
2009-12-21 16:12:16 +00:00
Aaron J. Seigo
7de7cf8de8
missing getter and property
...
svn path=/trunk/KDE/kdelibs/; revision=1048845
2009-11-14 01:06:58 +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
905f3960da
use the active rect for the focus rect
...
svn path=/trunk/KDE/kdelibs/; revision=1039127
2009-10-22 19:28:19 +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
f99025da70
unbreak svg element loading as button icon
...
svn path=/trunk/KDE/kdelibs/; revision=1028676
2009-09-27 21:26:46 +00:00
Marco Martin
7e23f237c6
correctly align the button pixmap
...
svn path=/trunk/KDE/kdelibs/; revision=1025760
2009-09-19 15:59:20 +00:00
Aaron J. Seigo
1730d86a73
add some properties and isDown()
...
svn path=/trunk/KDE/kdelibs/; revision=1023016
2009-09-13 18:12:32 +00:00
Aaron J. Seigo
f2af7e8087
kicon and qicon are treated differnetly internally by KPushButton, so we unforunately we need to provide an overload here
...
svn path=/trunk/KDE/kdelibs/; revision=1022998
2009-09-13 17:37:36 +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
Aaron J. Seigo
0ab4b19c25
add press/release signals
...
svn path=/trunk/KDE/kdelibs/; revision=1022977
2009-09-13 16:50:00 +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
Marco Martin
a827d621f8
use the plasma font...
...
unless someone called QGraphicsWidget::setFont()
svn path=/trunk/KDE/kdelibs/; revision=1022790
2009-09-12 15:05:39 +00:00
Aaron J. Seigo
a859eb502a
use the font for the fontmetrics that it's actually painting with
...
svn path=/trunk/KDE/kdelibs/; revision=1022199
2009-09-11 03:17:42 +00:00
Allen Winter
07f11ce056
compile++
...
CCMAIL: notmart@gmail.com
svn path=/trunk/KDE/kdelibs/; revision=1016997
2009-08-29 14:22:52 +00:00
Marco Martin
9ee071c5e3
decent icon size
...
svn path=/trunk/KDE/kdelibs/; revision=1016957
2009-08-29 13:00:22 +00:00
Arthur Renato Mello
f8580b442d
Add support to load a single element from a svg as icon
...
svn path=/trunk/KDE/kdelibs/; revision=1003809
2009-07-28 21:07:19 +00:00
Aaron J. Seigo
64d02688f9
add some api widgets are using and which seems semi-common
...
svn path=/trunk/KDE/kdelibs/; revision=977687
2009-06-05 01:29:19 +00:00
Marco Martin
30620609ae
unbreak glow animation
...
svn path=/trunk/KDE/kdelibs/; revision=966173
2009-05-10 14:46:46 +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
93a9b754a6
manage the isChecked case
...
svn path=/trunk/KDE/kdelibs/; revision=945111
2009-03-26 21:45:05 +00:00
Aaron J. Seigo
a88f2d8247
FEATURE: allow themes to state that they should use the native widgets
...
svn path=/trunk/KDE/kdelibs/; revision=931193
2009-02-24 22:42:06 +00:00
Marco Martin
2836267745
with a minimum size policy screws a little bit less in layouts
...
svn path=/trunk/KDE/kdelibs/; revision=915265
2009-01-22 16:59:13 +00:00
Marco Martin
11da4f11f8
use the plasma font
...
svn path=/trunk/KDE/kdelibs/; revision=899819
2008-12-21 16:55:19 +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
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
0c5a17b624
don't animate pressed buttons, avoids flicker
...
svn path=/trunk/KDE/kdelibs/; revision=882058
2008-11-09 17:00:49 +00:00
Aaron J. Seigo
df73771a1b
++compile
...
svn path=/trunk/KDE/kdelibs/; revision=879801
2008-11-04 02:55:37 +00:00