Commit Graph

1151 Commits

Author SHA1 Message Date
Marco Martin
c47fdfefbe set the disabled color as a transparent version of the text color
svn path=/trunk/KDE/kdelibs/; revision=1030948
2009-10-03 15:20:56 +00:00
Igor Trindade Oliveira
a7ac1feaf2 add support for kinetic scrolling
svn path=/trunk/KDE/kdelibs/; revision=1030944
2009-10-03 15:06:41 +00:00
Jacopo De Simoi
e90a75ec51 Unbreak the fadeIn animation, add a temporary workaround until trunk depends on 4.6
svn path=/trunk/KDE/kdelibs/; revision=1030871
2009-10-03 11:37:19 +00:00
Igor Trindade Oliveira
cab81476e3 fix: rounded-off errors
svn path=/trunk/KDE/kdelibs/; revision=1030709
2009-10-03 03:27:52 +00:00
Marco Martin
faa91ca8e5 don't make borders appear and disappear each resize
svn path=/trunk/KDE/kdelibs/; revision=1030637
2009-10-02 20:17:45 +00:00
Marco Martin
8c1408f179 apparently if the label is hidden it doesn't receive font change events,
so at show event i have to check if the font is different from
QApplication::font() :/
now: is this the intended behaviour of qt or is a bug?
CCMAIL:plasma-devel@kde.org

svn path=/trunk/KDE/kdelibs/; revision=1030634
2009-10-02 20:14:40 +00:00
Jacopo De Simoi
9a1a247591 postpone refreshing of the currently selected item
svn path=/trunk/KDE/kdelibs/; revision=1030620
2009-10-02 19:08:36 +00:00
Jacopo De Simoi
b8d35a709c Add signals targetReached and animationStep
svn path=/trunk/KDE/kdelibs/; revision=1030619
2009-10-02 19:06:14 +00:00
Marco Martin
7387d79cbd give d->widget the focus when the focus arrives on us
svn path=/trunk/KDE/kdelibs/; revision=1030582
2009-10-02 16:07:06 +00:00
Adenilson Cavalcanti Da Silva
99cdc241c3 Making kinetic scrolling class generic.
The current design uses 3 properties to calculate movement (horizontal/vertical 
position and the viewport size) being up to the client class (e.g. ScrollWidget)
move its widgets when the position property changed.

It will allow to reuse the kinetic scrolling class with other plasmoids.


svn path=/trunk/KDE/kdelibs/; revision=1030136
2009-10-01 16:47:19 +00:00
Aaron J. Seigo
d2e3cf28cb do some caching
svn path=/trunk/KDE/kdelibs/; revision=1029904
2009-10-01 00:58:41 +00:00
Jacopo De Simoi
225cab4ef4 workaround some qt bug which makes children items disappear when toggling the ItemClipsChildrenToShape flag
svn path=/trunk/KDE/kdelibs/; revision=1029853
2009-09-30 22:10:35 +00:00
Marco Martin
2d2c2ea22f better logic to enable/disable borders
svn path=/trunk/KDE/kdelibs/; revision=1029755
2009-09-30 17:05:40 +00:00
Marco Martin
e550837212 apidocs++
svn path=/trunk/KDE/kdelibs/; revision=1029643
2009-09-30 12:40:07 +00:00
Marco Martin
c134158608 better logic to show/hide borders, still seems to not delete them in
some cases

svn path=/trunk/KDE/kdelibs/; revision=1029416
2009-09-29 17:36:56 +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
14fed09f70 give a really light gradient to the text background, it gives a more
finished look

svn path=/trunk/KDE/kdelibs/; revision=1028591
2009-09-27 17:32:49 +00:00
Giulio Camuffo
1d1cd9ab47 install event filters for new target again
svn path=/trunk/KDE/kdelibs/; revision=1028104
2009-09-25 21:28:07 +00:00
Marco Martin
b7768c774c check for null widget
bound the passed rect to the widget bounding rect

svn path=/trunk/KDE/kdelibs/; revision=1027836
2009-09-24 21:27:40 +00:00
Marco Martin
80f675df0d setX, not setY
svn path=/trunk/KDE/kdelibs/; revision=1027831
2009-09-24 21:15:47 +00:00
Marco Martin
a4d591e6fd ensureRectVisible() a rect in internal widget coordinates will cause an
animated scroll until the rect becomes visible
it should not collide with kinetic scroll since the anim is stopped as
soon as amouse or wheel event is triggered
CCMAIL:plasma-devel@kde.org

svn path=/trunk/KDE/kdelibs/; revision=1027814
2009-09-24 20:40:16 +00:00
Marco Martin
bb11bbf81b another null pointer check
svn path=/trunk/KDE/kdelibs/; revision=1027780
2009-09-24 18:52:58 +00:00
Marco Martin
03c1fca71d properly fix previous commit don't crash setting an active page < 0
don't crash setting a new one if the old one was 0

svn path=/trunk/KDE/kdelibs/; revision=1027767
2009-09-24 18:26:48 +00:00
Marco Martin
1ae2f714bb don't explode on setCurrentIndex(index<0)
svn path=/trunk/KDE/kdelibs/; revision=1027763
2009-09-24 17:57:53 +00:00
Albert Astals Cid
376e23e095 const & in foreach variables
svn path=/trunk/KDE/kdelibs/; revision=1027710
2009-09-24 14:24:46 +00:00
Giulio Camuffo
b363df741e using installEventFilter if the target is a QGraphicsWidget, else
installSceneEventFilter because sceneEventFilter doesn't get GraphicsSceneResize events

svn path=/trunk/KDE/kdelibs/; revision=1027316
2009-09-23 20:29:56 +00:00
Marco Martin
cfb045bf3d use the glow to indicate focus/hover
svn path=/trunk/KDE/kdelibs/; revision=1027297
2009-09-23 19:15:51 +00:00
Michał Dutkiewicz
034e5a4a62 Support for using custom native widgets with ComboBox, LineEdit and TextEdit
svn path=/trunk/KDE/kdelibs/; revision=1027285
2009-09-23 18:42:19 +00:00
Marco Martin
56ac584338 use the focus and over glows for editable mode
svn path=/trunk/KDE/kdelibs/; revision=1027264
2009-09-23 17:25:53 +00:00
Marco Martin
e17155505a use the lineedit element
have a glow on mouseover 
and a stronger one for focus

svn path=/trunk/KDE/kdelibs/; revision=1027174
2009-09-23 13:23:03 +00:00
Marco Martin
eedf3c47ff update the current index when inserting tabs
svn path=/trunk/KDE/kdelibs/; revision=1026753
2009-09-22 14:04:20 +00:00
Marco Martin
b16ed00bc4 off by one, crash--
svn path=/trunk/KDE/kdelibs/; revision=1026750
2009-09-22 13:53:29 +00:00
Adenilson Cavalcanti Da Silva
304469cb0a Keeping scrollwheel events within the scrollwidget. This allows to use
scrollwheel to roll the widget (e.g. uBlog) and not the whole 
plasma-netbook newspaper screen.


svn path=/trunk/KDE/kdelibs/; revision=1026749
2009-09-22 13:47:24 +00:00
Marco Martin
66fb9378c0 fix size hints
svn path=/trunk/KDE/kdelibs/; revision=1026340
2009-09-21 14:14:38 +00:00
Marco Martin
819a0f6dbc proper namespace, fix build
svn path=/trunk/KDE/kdelibs/; revision=1026330
2009-09-21 14:00:53 +00:00
Marco Martin
1bf822a0a1 meaningful size hints
svn path=/trunk/KDE/kdelibs/; revision=1026328
2009-09-21 13:57:32 +00:00
Aaron J. Seigo
7ad7bfd634 set d->target sooner so that the code in setTarget(QRectF) works properly
svn path=/trunk/KDE/kdelibs/; revision=1026219
2009-09-21 06:17:04 +00:00
Aaron J. Seigo
76dfb7c57e be able to set the borders of the frame to show/paint; one of the things i really dislike about QFrame, now solved in Plasma::Frame
svn path=/trunk/KDE/kdelibs/; revision=1026213
2009-09-21 05:29:47 +00:00
Aaron J. Seigo
7b5f1d4e35 since the target is destroyed, reset our internal pointer so we don't subsequently access it in setTargetItem and die a horrible death. corrects crashes in SAL.
svn path=/trunk/KDE/kdelibs/; revision=1026212
2009-09-21 05:26:12 +00:00
Marco Martin
e24e0294e3 was width, not height
svn path=/trunk/KDE/kdelibs/; revision=1025763
2009-09-19 16:06:41 +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
Marco Martin
48fe7cee90 assign d->target later or the comparison is always false, connect to
destroyed and crash--

svn path=/trunk/KDE/kdelibs/; revision=1025756
2009-09-19 15:50:06 +00:00
Marco Martin
efbe7150fd enable/disable shadows and scrollbard indipendently
svn path=/trunk/KDE/kdelibs/; revision=1025749
2009-09-19 15:35:16 +00:00
Jacopo De Simoi
94b684c01c make sure to disconnect the _old_ target from the itembackground, not the new one with itself
svn path=/trunk/KDE/kdelibs/; revision=1025709
2009-09-19 13:30:58 +00:00
Aaron J. Seigo
1b05349652 textchanged signal
svn path=/trunk/KDE/kdelibs/; revision=1025553
2009-09-19 03:27:56 +00:00
Aaron J. Seigo
2f535d5516 if we have a target item and the target is visible but the background item isn't, show the background item and just move it into place
svn path=/trunk/KDE/kdelibs/; revision=1025473
2009-09-18 21:24:14 +00:00
Adenilson Cavalcanti Da Silva
974df6773a Adding a kinetic scrolling class and using it in plasma::ScrollWidget.
ATM, it uses timers to do the animation, the idea is to use factory pattern
and implement the animation with QProperyAnimation too (using Qt 4.6).


svn path=/trunk/KDE/kdelibs/; revision=1024929
2009-09-17 16:24:19 +00:00
Laurent Montel
35a5992edc Pedanti
svn path=/trunk/KDE/kdelibs/; revision=1023178
2009-09-14 06:08:46 +00:00
Marco Martin
58b8324d0e now it is setPixmap(RadioButton *)
svn path=/trunk/KDE/kdelibs/; revision=1023069
2009-09-13 20:16:32 +00:00
Marco Martin
67515c758a always use plasma::theme font, unless somebody call setFont on the
widget                                                                                
round two: sync the native widgets fonts with the plasma::theme font,                 
unless setFont was called

svn path=/trunk/KDE/kdelibs/; revision=1023050
2009-09-13 19:18:29 +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
1b53393043 put it in the template too
svn path=/trunk/KDE/kdelibs/; revision=1022991
2009-09-13 17:17:02 +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
Marco Martin
664a262df2 use the width of the largest word as the width size hint
svn path=/trunk/KDE/kdelibs/; revision=1022099
2009-09-10 19:55:29 +00:00
Marco Martin
1e4746035f set margins around the icon dependent on the svg margins or on the
widget's contentsmargins if set

svn path=/trunk/KDE/kdelibs/; revision=1021623
2009-09-09 17:03:22 +00:00
Marco Martin
7ef4b04838 sensible size hints
svn path=/trunk/KDE/kdelibs/; revision=1019577
2009-09-03 22:24:29 +00:00
Marco Martin
f25dda51df when there are no scrollbars just ignore wheel events
BUG:205879

svn path=/trunk/KDE/kdelibs/; revision=1019292
2009-09-03 09:58:01 +00:00
Marco Martin
462f323042 add tabAt(int) function
actually the correspondent qtabwidget is widget(), but on a
qgraphicsproxywidget it is taken, maybe needs a beter name?
CCMAIL: plasma-devel@kde.org

svn path=/trunk/KDE/kdelibs/; revision=1019013
2009-09-02 15:54:18 +00:00
Rob Scheepmaker
9cb9cfe65e Push in remote widgets
svn path=/trunk/KDE/kdelibs/; revision=1018655
2009-09-02 02:27:16 +00:00
Beat Wolf
03d8572ae4 fix a double delete bug
svn path=/trunk/KDE/kdelibs/; revision=1018485
2009-09-01 18:42:09 +00:00
Riccardo Iaconelli
339a5f84e4 fix a huge leak :-)
Signed-off-by: Riccardo Iaconelli <riccardo@kde.org>

svn path=/trunk/KDE/kdelibs/; revision=1018177
2009-09-01 12:01:30 +00:00
Aaron J. Seigo
eb5b7d040c order and parent the background according to the item
svn path=/trunk/KDE/kdelibs/; revision=1017945
2009-08-31 23:47:11 +00:00
Aaron J. Seigo
dc1045b8cb * proper sizes
* don't crash on null target

svn path=/trunk/KDE/kdelibs/; revision=1017771
2009-08-31 12:29:44 +00:00
Aaron J. Seigo
feea867bd3 make it possible to do contntx resct syncing
svn path=/trunk/KDE/kdelibs/; revision=1017768
2009-08-31 12:14:47 +00:00
Aaron J. Seigo
b4fa1b3859 use the resize event
svn path=/trunk/KDE/kdelibs/; revision=1017755
2009-08-31 11:35:37 +00:00
Aaron J. Seigo
a36b7045f9 track item deletion as well
svn path=/trunk/KDE/kdelibs/; revision=1017735
2009-08-31 10:13:44 +00:00
Aaron J. Seigo
bf26e35f5c move/resize the background when the target item does so
svn path=/trunk/KDE/kdelibs/; revision=1017728
2009-08-31 10:04:17 +00:00
Aaron J. Seigo
27b2236e2d * move the private slot to the dptr
* don't crash when handed a null pointer to setTargetItem

svn path=/trunk/KDE/kdelibs/; revision=1017705
2009-08-31 09:19:00 +00:00
Laurent Montel
55187668a8 Fix mem leak
svn path=/trunk/KDE/kdelibs/; revision=1017674
2009-08-31 07:22:56 +00:00
Marco Martin
663feaa341 restore fade in/out
svn path=/trunk/KDE/kdelibs/; revision=1017614
2009-08-31 00:47:24 +00:00
Marco Martin
082f5f1a93 sorry for the camels :)
svn path=/trunk/KDE/kdelibs/; revision=1017602
2009-08-31 00:18:14 +00:00
Marco Martin
43506a6962 fix setTargetItem
svn path=/trunk/KDE/kdelibs/; revision=1017598
2009-08-30 23:52:13 +00:00
Marco Martin
c76be95adb create the dpointer, doh!
svn path=/trunk/KDE/kdelibs/; revision=1017588
2009-08-30 23:34:25 +00:00
Marco Martin
d04a5b7624 if you export it maybe then you can actually use it right?
svn path=/trunk/KDE/kdelibs/; revision=1017581
2009-08-30 23:11:04 +00:00
Marco Martin
087e42ead7 fix itemChange
svn path=/trunk/KDE/kdelibs/; revision=1017574
2009-08-30 22:44:47 +00:00
Marco Martin
a93ab19864 fix setTarget and setTargetItem behaviour
svn path=/trunk/KDE/kdelibs/; revision=1017557
2009-08-30 21:56:33 +00:00
Marco Martin
40db26d969 use Plasma namespace
svn path=/trunk/KDE/kdelibs/; revision=1017553
2009-08-30 21:41:06 +00:00
Marco Martin
77160a9e50 new widget: ItemBackground.
can be used for all fake item views based on qgraphicswidgets

svn path=/trunk/KDE/kdelibs/; revision=1017544
2009-08-30 21:17:52 +00:00
Davide Bettio
9c17a0b105 Added separator widget that has been posted in the reviewboard some months ago.
http://reviewboard.kde.org/r/672/

svn path=/trunk/KDE/kdelibs/; revision=1017364
2009-08-30 11:28:34 +00:00
Marco Martin
d6eb165ee5 setTextSelectable, to be able to select text XOR drag the widget with
the mouse

svn path=/trunk/KDE/kdelibs/; revision=1017058
2009-08-29 16:59:28 +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
Aaron J. Seigo
1e8fc7272f only reset the sizes when we have no tabs
BUG:205457

svn path=/trunk/KDE/kdelibs/; revision=1016724
2009-08-28 17:28:15 +00:00
Marco Martin
c67decb4d9 fade out the end of the text when there is not enough room (and wordwrap
is off)

svn path=/trunk/KDE/kdelibs/; revision=1012310
2009-08-17 12:24:33 +00:00
Marco Martin
bd352af269 resize at the hint when the orientation is set. useful when it's not in
a layout
BUG:203908

svn path=/trunk/KDE/kdelibs/; revision=1012110
2009-08-16 20:15:25 +00:00
Marco Martin
afad9ce8a2 take the proper elements
svn path=/trunk/KDE/kdelibs/; revision=1011453
2009-08-14 17:26:15 +00:00
Marco Martin
1fe4e538f0 don't bother to draw the rect if the text bounding rect is empty
svn path=/trunk/KDE/kdelibs/; revision=1008830
2009-08-08 13:10:37 +00:00
Marco Martin
fd28c2f7db was custom for the netbook thinghie, but realized that cutted away
contents are quite ugly everywhere, so generalizing: when a scrollbar is
on, enable borders that gives a sunken feel on it, making a
justification for the text brutally clipped

svn path=/trunk/KDE/kdelibs/; revision=1006503
2009-08-03 20:41:42 +00:00
Marco Martin
bb659e280c set containsmultipleimages when an id is set
better size hint

svn path=/trunk/KDE/kdelibs/; revision=1005679
2009-08-01 18:48:09 +00:00
Marco Martin
c6bab8100d add a sensible size hint
svn path=/trunk/KDE/kdelibs/; revision=1005675
2009-08-01 18:36:01 +00:00
Marco Martin
6257d4b7a8 takeTab(), removes a tab and returns the tab contents
svn path=/trunk/KDE/kdelibs/; revision=1004310
2009-07-29 20:30:07 +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
Marco Martin
9e278bbe78 playPauseButton doesn't always exist, crash--
svn path=/trunk/KDE/kdelibs/; revision=1002603
2009-07-26 14:23:29 +00:00
Marco Martin
af839dc89c when the scrolbar visibility is udated activate the layout and do
resize, this should avoid the unnecessary horizontal scrollbar in the
microblog applet

svn path=/trunk/KDE/kdelibs/; revision=1002239
2009-07-25 13:14:19 +00:00
Marco Martin
c702490625 resize the widget -after- hadjusting the scrollbar visibility
svn path=/trunk/KDE/kdelibs/; revision=1002234
2009-07-25 12:48:30 +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
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
dcd418a3e8 use kio for access, so we can haz kioslaves, cookies and proxies
svn path=/trunk/KDE/kdelibs/; revision=994537
2009-07-10 17:47:08 +00:00
Aaron J. Seigo
47b8b802ac standardize link colors
svn path=/trunk/KDE/kdelibs/; revision=993491
2009-07-08 19:25:20 +00:00
Aaron J. Seigo
367140c8e1 base the size on the option rect
svn path=/trunk/KDE/kdelibs/; revision=986456
2009-06-24 16:54:51 +00:00
Pascal Létourneau
a42e0c2f92 Use the correct type
svn path=/trunk/KDE/kdelibs/; revision=983688
2009-06-18 19:46:11 +00:00
Aaron J. Seigo
55a8682576 constify
svn path=/trunk/KDE/kdelibs/; revision=982723
2009-06-16 17:49:27 +00:00
Marco Martin
46f6571eea export isClearButtonShown
svn path=/trunk/KDE/kdelibs/; revision=982630
2009-06-16 13:45:11 +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
Alan Alpert
390a8931d5 Add NOTIFYs to Q_PROPERTYs for plasma widgets
See http://reviewboard.kde.org/r/844/ for more details.


svn path=/trunk/KDE/kdelibs/; revision=982204
2009-06-15 09:47:14 +00:00
Aaron J. Seigo
b16294bdec it looks far, far better with that margin, i'm afraid.
svn path=/trunk/KDE/kdelibs/; revision=982045
2009-06-14 20:14:28 +00:00
Aaron J. Seigo
c9f6055a93 SVN_SILENT: @since
svn path=/trunk/KDE/kdelibs/; revision=982009
2009-06-14 18:09:54 +00:00
Aaron J. Seigo
c7c841e33a SVN_SILENT: sshh
svn path=/trunk/KDE/kdelibs/; revision=982008
2009-06-14 18:09:41 +00:00
Laurent Montel
7f7557b781 Add missing svg function
svn path=/trunk/KDE/kdelibs/; revision=981750
2009-06-14 09:53:12 +00:00
Laurent Montel
5dd9e528fa Add missing read function
svn path=/trunk/KDE/kdelibs/; revision=981749
2009-06-14 09:51:10 +00:00
Aaron J. Seigo
23638e7f84 only return a curved shape if we are drawing the curved background
svn path=/trunk/KDE/kdelibs/; revision=979520
2009-06-10 02:18:41 +00:00
Aaron J. Seigo
c2717ed3f2 not sure if i like this (visually) yet, but let's try with a zero px border
BUG:177871

svn path=/trunk/KDE/kdelibs/; revision=979507
2009-06-10 00:06:51 +00:00
Marco Martin
75e7968ae5 don't make a loop of scrollbar updating->position updating
svn path=/trunk/KDE/kdelibs/; revision=979074
2009-06-08 21:06:23 +00:00
Marco Martin
49043d7f49 update scrollbars position if the widget gets moved
svn path=/trunk/KDE/kdelibs/; revision=979057
2009-06-08 20:33:56 +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
856b4664fe HighlightColor is a background, we need a text color
svn path=/trunk/KDE/kdelibs/; revision=976834
2009-06-02 19:01:46 +00:00
Fathi Boudra
9078536006 Plasma::ToolButton::setIcon()/icon() since 4.3
CCMAIL: notmart@gmail.com

svn path=/trunk/KDE/kdelibs/; revision=975842
2009-05-31 12:20:57 +00:00
Marco Martin
c96b3739db use klocale to kill mnemonics
svn path=/trunk/KDE/kdelibs/; revision=971913
2009-05-23 17:16:15 +00:00
Marco Martin
80621aa1a7 pretty important textbrowser functions, le's export them
svn path=/trunk/KDE/kdelibs/; revision=971727
2009-05-23 10:23:07 +00:00
Marco Martin
9622b2cfe8 qtextayout can't show mnemonics, so when there is a qaction use
painter.drawtext
(unlikely we will have a multiline caption in this case)
this should fix the & appearing in the desktop toolbox

svn path=/trunk/KDE/kdelibs/; revision=969532
2009-05-18 13:20:32 +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
Laurent Montel
efbba51e0a Necessary to fix compile with enable-final
svn path=/trunk/KDE/kdelibs/; revision=966210
2009-05-10 16:15:42 +00:00
Marco Martin
30620609ae unbreak glow animation
svn path=/trunk/KDE/kdelibs/; revision=966173
2009-05-10 14:46:46 +00:00
Marco Martin
9b40257b21 sinc link colors
svn path=/trunk/KDE/kdelibs/; revision=966171
2009-05-10 14:38:00 +00:00
Marco Martin
92b51d7751 set a tooltip only when the main text is elided
BUG: 189716

svn path=/trunk/KDE/kdelibs/; revision=964973
2009-05-07 18:49:22 +00:00
Aaron J. Seigo
ef6d0641dd disabled and paused state support
svn path=/trunk/KDE/kdelibs/; revision=964482
2009-05-06 18:35:31 +00:00
Aaron J. Seigo
6ca62962e2 do a sweep for kapplication usage
svn path=/trunk/KDE/kdelibs/; revision=963961
2009-05-05 18:11:50 +00:00
Marco Martin
359c2145b3 use the brand new slider svg
svn path=/trunk/KDE/kdelibs/; revision=962188
2009-05-01 17:44:31 +00:00
Marco Martin
540090a1b7 use the shared style on slider
dinamically resize controls widget of videoplayer depending on the
player size

svn path=/trunk/KDE/kdelibs/; revision=962181
2009-05-01 17:10:14 +00:00
Marco Martin
f2ba67f0b1 volume slider is smaller than the progress
svn path=/trunk/KDE/kdelibs/; revision=961832
2009-04-30 19:43:01 +00:00
Aaron J. Seigo
12000ecad1 no more white background, huzzah
svn path=/trunk/KDE/kdelibs/; revision=960564
2009-04-28 16:47:50 +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
Andrew Coles
c54617a1bd Hypothetically, if you run through the conditions on the if, there's an implicit third branch that isn't matched,
corresponding to the first but with the != changed to a ==.  Of course, in practice, I can't see why this would /ever/ 
happen, but the compiler picked up on it.  Hence, to shut the damned thing up and in case I'm wrong, the pointer is 
now initialised to zero and a Q_ASSERT used to make sure it isn't zero at the point where we try to use it.  Quiet 
compiler, and a modicum more robustness.


svn path=/trunk/KDE/kdelibs/; revision=957515
2009-04-22 10:11:01 +00:00
Marco Martin
8a4ce887ea why oh why i always forget @since? :)
svn path=/trunk/KDE/kdelibs/; revision=957272
2009-04-21 17:58:51 +00:00
Marco Martin
04a722f05b provide a nextRequested and previousRequested signals, don't make the
widget too heavy with an internal management of the playlist

svn path=/trunk/KDE/kdelibs/; revision=957136
2009-04-21 13:35:42 +00:00
Davide Bettio
eb7617ab4e Added 2 missing update()s.
svn path=/trunk/KDE/kdelibs/; revision=956845
2009-04-20 19:07:40 +00:00
Marco Martin
63c009bf68 unbreak the animation of text background
svn path=/trunk/KDE/kdelibs/; revision=954953
2009-04-16 15:41:56 +00:00
Rob Scheepmaker
fac4e005d0 Replace the "i" icon for showing/hiding jobs and notifications in the systray with a spinner widget. When jobs are running it is animated. It also shows one or two numbers in front of the widget to indicate the amount of completed, and the total amount of items. (only one number if all items are completed)
Apparently I also had something else uncomitted: showing an eta in the applicationjobs dataengine, and no using double margins in extenderitems.


svn path=/trunk/KDE/kdelibs/; revision=954560
2009-04-15 22:21:29 +00:00
Aaron J. Seigo
4c009d93d4 allow a color lozenge behind the text to make it work on any sort of background
svn path=/trunk/KDE/kdelibs/; revision=952083
2009-04-10 21:16:14 +00:00
Aaron J. Seigo
ff763aab1a SVN_SILENT:--compilerWarnings;
svn path=/trunk/KDE/kdelibs/; revision=951382
2009-04-09 06:00:57 +00:00
Wang Kai
ec7651c5e1 Scroll fix:
If scroll widget is wider/taller than the internal widget,
then the internal widget should be positioned to scroll widget's top left, not bottom right.


svn path=/trunk/KDE/kdelibs/; revision=951376
2009-04-09 04:52:38 +00:00
Aaron J. Seigo
0b5bceb2e9 * implement the READ side of the properties
* remove a compile warning

thanks, Laurent, for noticing the properties missing READs

CCMAIL:montel@kde.org

svn path=/trunk/KDE/kdelibs/; revision=950458
2009-04-07 08:33:51 +00:00
Davide Bettio
2f0da61660 The previous "hover effect on drag" patch was buggy. Now we are using sceneEventFilter and it seems better.
svn path=/trunk/KDE/kdelibs/; revision=948792
2009-04-03 19:57:13 +00:00
Davide Bettio
44d2194253 Use hover background when something is dragged on the icon.
BUG: 110952

svn path=/trunk/KDE/kdelibs/; revision=948303
2009-04-02 18:33:39 +00:00
Marco Martin
c7aa7e7a6a don't override minimum and maximum sizes so often
svn path=/trunk/KDE/kdelibs/; revision=948218
2009-04-02 15:16:53 +00:00
Marco Martin
bc01148110 some q_property
svn path=/trunk/KDE/kdelibs/; revision=946865
2009-03-30 13:27:25 +00:00
Marco Martin
d6f6c69817 add missing @since 4.3
svn path=/trunk/KDE/kdelibs/; revision=946801
2009-03-30 12:21:52 +00:00
Marco Martin
810a3a293c add setDragToScroll, makes the webview to work like a touchscreen, it
selects the text instead of dragging if the move is less than 250
milliseconds after the mouse press, not really reliable but don't know
how to save both functionalities

svn path=/trunk/KDE/kdelibs/; revision=946794
2009-03-30 11:58:23 +00:00
Harald Hvaal
570242531f Make the iconwidget's a teeny bit smaller when pressed down. This gives a good response when clicking buttons in plasma.
svn path=/trunk/KDE/kdelibs/; revision=946711
2009-03-30 06:42:19 +00:00
Marco Martin
2ebcc9f481 workaround on a qt bug: if i call setVisible(true) on a child of an
hidden item it gets shown anyways (will get around doing a test case)

svn path=/trunk/KDE/kdelibs/; revision=946139
2009-03-28 19:11:43 +00:00
Marco Martin
93a9b754a6 manage the isChecked case
svn path=/trunk/KDE/kdelibs/; revision=945111
2009-03-26 21:45:05 +00:00
Marco Martin
eb46f78fd9 scrollbarPolicy->scrollBarPolicy, luckily it was spotted before any
release :)

svn path=/trunk/KDE/kdelibs/; revision=945072
2009-03-26 20:21:48 +00:00
Aaron J. Seigo
599fcdd138 ignore timer id's that aren't ours
svn path=/trunk/KDE/kdelibs/; revision=944581
2009-03-25 19:10:02 +00:00
Marco Martin
324b6f11d4 set a write only property for the url
svn path=/trunk/KDE/kdelibs/; revision=936994
2009-03-08 20:08:27 +00:00
Marco Martin
a219e97dae correct shadow color
svn path=/trunk/KDE/kdelibs/; revision=935565
2009-03-05 16:24:12 +00:00
Matthias Fuchs
4088e89973 Adds comment to the constructor.
svn path=/trunk/KDE/kdelibs/; revision=935551
2009-03-05 15:41:01 +00:00
Marco Martin
754b8d34c3 paint the busy widget always square
use overlay widget to show the busy widget, duplication--

svn path=/trunk/KDE/kdelibs/; revision=935520
2009-03-05 13:05:12 +00:00
David Faure
d33e884393 Fix compilation of plasma with enable-final --- yet another X define conflicting with a Qt enum.
svn path=/trunk/KDE/kdelibs/; revision=935354
2009-03-04 21:28:02 +00:00
Marco Martin
ca820f5770 SVN_SILENT: forgotten @since :D
svn path=/trunk/KDE/kdelibs/; revision=934746
2009-03-03 18:11:33 +00:00
Marco Martin
aabf1acf74 a proxy for KTextBrowser, with usual style tweaks to make it look
plasmy

svn path=/trunk/KDE/kdelibs/; revision=934734
2009-03-03 17:38:16 +00:00
Marco Martin
ff578a8af4 a widget that allows the contents to scroll when
content is bigger than the widget itself by adding scrollbars

svn path=/trunk/KDE/kdelibs/; revision=934731
2009-03-03 17:31:54 +00:00
Aaron J. Seigo
0fc65ada51 we don't want to set the palette otherwise we get bad results like white-on-white; all the button painting is handled manually in the paint method, so we're safe there for colours
svn path=/trunk/KDE/kdelibs/; revision=934711
2009-03-03 16:39:29 +00:00
Marco Martin
a0194765cb don't have borders or background by default
svn path=/trunk/KDE/kdelibs/; revision=933789
2009-03-01 16:01:20 +00:00
Marco Martin
0d9a13405e forward linkHovered signal too
svn path=/trunk/KDE/kdelibs/; revision=933384
2009-02-28 20:25:13 +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
Petri Damstén
13e9b7c2c4 delete svgBackground even if svgFilename is empty so it can be resetted.
svn path=/trunk/KDE/kdelibs/; revision=930783
2009-02-24 08:47:03 +00:00
Marco Martin
9fd15b5e2f check if the layout has also the tabwidget widget or not, crash--
svn path=/trunk/KDE/kdelibs/; revision=930400
2009-02-23 11:26:45 +00:00
Marco Martin
ca3004d9c4 Q_PROPERTY and Q_ENUMS to play well with javascript
svn path=/trunk/KDE/kdelibs/; revision=928719
2009-02-19 21:46:08 +00:00
Marco Martin
604bd19638 clip only when animating: some flicker, but clipping always is a bit
slower and seems to lose mouse events when the applet is in a
containment

svn path=/trunk/KDE/kdelibs/; revision=926630
2009-02-15 21:42:25 +00:00
Artur Duque de Souza
cae61ee4ca Use enums from KIconLoader
Instead of using hardcore numbers, it would be great to use the enums provided by 
KIconLoader whenever we use sizes for icons.

Made the change for the obvious ones replacing "16" by KIconLoader::SizeSmall, 
"22" by KIconLoader::SizeSmallMedium and "32" by KIconLoader::SizeMedium.

svn path=/trunk/KDE/kdelibs/; revision=926544
2009-02-15 16:35:52 +00:00
Marco Martin
828ac46bd4 use Plasma::Frame for controls background
svn path=/trunk/KDE/kdelibs/; revision=926412
2009-02-15 11:52:16 +00:00
Marco Martin
d544dc7c2d declare the Q_ENUM
svn path=/trunk/KDE/kdelibs/; revision=925910
2009-02-14 13:55:09 +00:00
Marco Martin
7c9a500b3d move the wheelEvent to nativeTabbar, it seems it works only there with
qt 4.5, while with 4.4 did work only in the proxywidget 

svn path=/trunk/KDE/kdelibs/; revision=925477
2009-02-13 11:43:58 +00:00
Pino Toscano
a136f604e6 extra ';'
svn path=/trunk/KDE/kdelibs/; revision=925310
2009-02-13 01:08:23 +00:00
Marco Martin
287a1f80d1 crash--
svn path=/trunk/KDE/kdelibs/; revision=925258
2009-02-12 21:08:31 +00:00
Marco Martin
fd1b73ba56 shownControls->usedControls
controlsVisible sets the whole controls widget visible/invisile

svn path=/trunk/KDE/kdelibs/; revision=925247
2009-02-12 20:51:49 +00:00
Marco Martin
1e4e0d86b4 the controls slides in and out with an animation depending on mouse
events

svn path=/trunk/KDE/kdelibs/; revision=925207
2009-02-12 18:19:32 +00:00
Marco Martin
f47eb66c08 add all the other optional buttons support.
but removed next/previous for now, not sure really makes sense to export
them in the simple api

svn path=/trunk/KDE/kdelibs/; revision=925173
2009-02-12 16:47:30 +00:00
Marco Martin
97dd8b072e as decided at tokamak include basic controls right in the widget, they
can be enabled and disabled with flags
so for now the applet shows double controls until the transplant is
really complete

svn path=/trunk/KDE/kdelibs/; revision=925125
2009-02-12 13:58:10 +00:00
Marco Martin
12c645ff82 use setUrl instead of setPath, more general, but still use a qstring,
seems to work better with javascript

svn path=/trunk/KDE/kdelibs/; revision=924896
2009-02-11 21:34:07 +00:00
Alessandro Diaferia
bb01ec253d use boundingRect instead of geometry otherwise the signal will never be emitted
svn path=/trunk/KDE/kdelibs/; revision=924644
2009-02-11 10:24:06 +00:00
Marco Martin
ecb67cfee5 a bit of comments doesn't hurt
svn path=/trunk/KDE/kdelibs/; revision=923865
2009-02-09 16:09:34 +00:00
Marco Martin
501b3bfe1c align text to the left when the icon is horizontal
svn path=/trunk/KDE/kdelibs/; revision=923738
2009-02-09 10:51:21 +00:00
Marco Martin
ba196464eb enable build of videowidget, depending if Phonon is found or not
svn path=/trunk/KDE/kdelibs/; revision=923520
2009-02-08 21:41:08 +00:00
Marco Martin
b0ad8d6535 import the video widget, will add later to the build
svn path=/trunk/KDE/kdelibs/; revision=923508
2009-02-08 21:20:41 +00:00
Marco Martin
4dd753fe19 remove the ugly #ifdef since with qt4.5 the clipping bug of proxywidgets
is fixed yeheeee :D

svn path=/trunk/KDE/kdelibs/; revision=923190
2009-02-08 13:26:33 +00:00
Frederik Schwarzer
83f2503169 global typo fix
svn path=/trunk/KDE/kdelibs/; revision=922431
2009-02-07 01:12:28 +00:00
Marco Martin
96fdff9468 SVN_SILENT: add @since 4.3 to the shiny new stuff
svn path=/trunk/KDE/kdelibs/; revision=921029
2009-02-04 10:59:15 +00:00
Marco Martin
9c971e11ba ability to hide the tabbar, now can be used like it's a QStackedWidget :)
svn path=/trunk/KDE/kdelibs/; revision=921018
2009-02-04 10:32:20 +00:00
Aaron J. Seigo
9bd8fe0219 better context menu handling
svn path=/trunk/KDE/kdelibs/; revision=919698
2009-02-01 14:55:00 +00:00
Marco Martin
21c11b6ed9 initialize member vars, will backport to 4.2
svn path=/trunk/KDE/kdelibs/; revision=918216
2009-01-29 17:04:46 +00:00
Marco Martin
0aefb02462 fix resizing in the panel.... again
svn path=/trunk/KDE/kdelibs/; revision=916933
2009-01-26 13:58:39 +00:00
Marco Martin
7efa1412b8 VN_SILENT: warning--
svn path=/trunk/KDE/kdelibs/; revision=916695
2009-01-25 19:34:41 +00:00
Marco Martin
d0fb10f0cc don't crash when removing the currently active tab
will backport to 4.2

svn path=/trunk/KDE/kdelibs/; revision=916689
2009-01-25 19:21:14 +00:00
Alessandro Diaferia
82fb975523 a useful method to remove a previously set iconAction
svn path=/trunk/KDE/kdelibs/; revision=916376
2009-01-25 09:58:02 +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
Aaron J. Seigo
fb8af31791 some missing API bits
svn path=/trunk/KDE/kdelibs/; revision=914441
2009-01-21 05:59:33 +00:00
Aaron J. Seigo
9d262c3619 update() on icon config changes
BUG:181298

svn path=/trunk/KDE/kdelibs/; revision=913904
2009-01-20 02:37:52 +00:00
Marco Martin
e2e814e9bf IconWidget background looked freaking old, now uses the svg backgrond from
the folderview icons (and as a bonus it's even less code :D)

svn path=/trunk/KDE/kdelibs/; revision=913758
2009-01-19 20:41:45 +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
53658a106e style with FrameSvg all the lineedits, spinboxes and comboboxes, use
Plasma::Style to achieve that, since it's a kinda repetitive thing and
comboboxes and spinboxes are complex controls
the svg used will probably change

svn path=/trunk/KDE/kdelibs/; revision=912567
2009-01-17 18:00:33 +00:00
Marco Martin
eb7588ae9a forward also editingFinished
patch by Dario Andres
BUG: 180261

svn path=/trunk/KDE/kdelibs/; revision=909009
2009-01-10 19:35:29 +00:00
Alex Merry
9c1570f13e apidocs fixes.
Remember to document ALL parameters to methods.  They may seem obvious to you, but I had to look at the code for at least two of the methods in order to document their parameters correctly.

*waves stick of EBN-ness*


svn path=/trunk/KDE/kdelibs/; revision=908604
2009-01-10 00:08:31 +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
Stephan Kulow
6e8e615e73 don't create "QEventDispatcherUNIX::unregisterTimer: invalid argument"
svn path=/trunk/KDE/kdelibs/; revision=907536
2009-01-08 11:27:39 +00:00
Davide Bettio
08104d35ba Added Plasma::SpinBox.
svn path=/trunk/KDE/kdelibs/; revision=907258
2009-01-07 18:54:43 +00:00
Aaron J. Seigo
fe0acf8202 clean this up while we still can. not sure how this one slipped by us, but it's been on my list for a week; no actual logic changes, just cleans out the header of crud that doesn't belong.
svn path=/trunk/KDE/kdelibs/; revision=906780
2009-01-06 21:11:54 +00:00
Aaron J. Seigo
d8c68f8d5f update the icon when the svg changes
svn path=/trunk/KDE/kdelibs/; revision=906159
2009-01-05 17:34:40 +00:00
Marco Martin
a2fe3d80af don't call setCurrentIdex a second time by calling
d->tabProxy->native->setCurrentIndex(index) too early

svn path=/trunk/KDE/kdelibs/; revision=905666
2009-01-04 20:04:37 +00:00
Aaron J. Seigo
b40732d7ab don't change the current tab again, otherwise current==old and bad things happen ;)
svn path=/trunk/KDE/kdelibs/; revision=905635
2009-01-04 18:43:30 +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
786bd0be2a draw the black block only is there is no svg background
svn path=/trunk/KDE/kdelibs/; revision=903932
2008-12-31 17:30:52 +00:00
Marco Martin
17bd4d2e99 use the svg background as default
svn path=/trunk/KDE/kdelibs/; revision=903928
2008-12-31 17:19:48 +00:00
Marco Martin
ccf2fef95f hasScaledContents/setScaledcontents properties, useful for qtscript
svn path=/trunk/KDE/kdelibs/; revision=903557
2008-12-30 20:53:02 +00:00
Sebastian Kügler
168ae12dc5 svn path=/trunk/KDE/kdelibs/; revision=903301 2008-12-30 12:53:33 +00:00
Aaron J. Seigo
e193aaa46e if there's a tooltip set, keep it in sync with the action
svn path=/trunk/KDE/kdelibs/; revision=902698
2008-12-28 23:52:41 +00:00
Aaron J. Seigo
227e28ffa9 no need to set the style at the end now that we have the shared pointer based style
svn path=/trunk/KDE/kdelibs/; revision=902674
2008-12-28 22:45:22 +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
614c2252d1 add alignment/setAlignment wrapping in the api
svn path=/trunk/KDE/kdelibs/; revision=900868
2008-12-23 20:39:59 +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
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
Marco Martin
11da4f11f8 use the plasma font
svn path=/trunk/KDE/kdelibs/; revision=899819
2008-12-21 16:55:19 +00:00
Aaron J. Seigo
bad9871ccf * remove some dead code
* set a 1px margin only if there is no background
* use width, not height, went horizontal and there is no text
BUG:177871

svn path=/trunk/KDE/kdelibs/; revision=897398
2008-12-15 23:42:29 +00:00
Aaron J. Seigo
9c25aa59a5 share one style amongst all the widgets
svn path=/trunk/KDE/kdelibs/; revision=897366
2008-12-15 21:17:43 +00:00
Aaron J. Seigo
adaed62351 * forward the valueChanged signal
* simplify the ctor to be more in line with the other widgets
* add setOrientation

combined, this elminates the need pretty much everywhere its used for nativeWidget() to be accessed. woo!

svn path=/trunk/KDE/kdelibs/; revision=897341
2008-12-15 20:34:03 +00:00
Marco Martin
1d7144e6f7 die hardcoded colors, die!
svn path=/trunk/KDE/kdelibs/; revision=894466
2008-12-08 17:51:53 +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
Marco Martin
b47c32869f use elements dimensions to resize the scrollbar
svn path=/trunk/KDE/kdelibs/; revision=893050
2008-12-05 21:04:33 +00:00
Marco Martin
1c4f777dd4 hide and unhide the icon when its action visibility changes (no more
ghost lockers with zoomed out desktop:)

svn path=/trunk/KDE/kdelibs/; revision=892159
2008-12-03 17:53:13 +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
258a749f36 fix build on arm
svn path=/trunk/KDE/kdelibs/; revision=891099
2008-12-01 08:48:25 +00:00
Aaron J. Seigo
807b2cf637 make wheel events work, based on a patch by afiestas
CCMAIL:alex@eyeos.org

svn path=/trunk/KDE/kdelibs/; revision=890354
2008-11-29 00:03:08 +00:00
Marco Martin
069dc43c79 forward hover events, so the a:hover properties and such works
accept keyboard focus->forms works :)

svn path=/trunk/KDE/kdelibs/; revision=886923
2008-11-20 15:38:51 +00:00
Marco Martin
33e2b141ef why i don't read them before committing?
svn path=/trunk/KDE/kdelibs/; revision=886280
2008-11-18 22:24:43 +00:00
Marco Martin
d72387aff2 ...buut still delete the style, hope more correct this time
svn path=/trunk/KDE/kdelibs/; revision=886265
2008-11-18 22:09:50 +00:00
Marco Martin
e3268fa145 setStyle(0) in the dtor isn't such a good idea...
svn path=/trunk/KDE/kdelibs/; revision=886254
2008-11-18 21:49:30 +00:00
Marco Martin
9cfe6246ec make the tabbar widget stretch also in height (thus umbreaking it in the
panel), with a dirty hack on minimum/maximum sizes, but i think it's the
only way for now, since minimumTabSizeHint() and maximumTabSizeHint()
are private in QTabBar and will be protected probably not before Qt5 O.o

svn path=/trunk/KDE/kdelibs/; revision=886098
2008-11-18 15:27:04 +00:00
Aaron J. Seigo
5dbc0a7da0 don't hang onto deleted actions
svn path=/trunk/KDE/kdelibs/; revision=885851
2008-11-18 00:33:44 +00:00
Laurent Montel
720c589cc4 ...and don't leak private class :)
svn path=/trunk/KDE/kdelibs/; revision=884509
2008-11-15 07:39:59 +00:00
Aaron J. Seigo
74acdc9534 don't leak the style.
svn path=/trunk/KDE/kdelibs/; revision=884504
2008-11-15 07:08:30 +00:00
Aaron J. Seigo
1376b1dc9b consistent mocing
svn path=/trunk/KDE/kdelibs/; revision=884497
2008-11-15 06:11:17 +00:00
Aaron J. Seigo
2fc960f455 disconnect if the page changes but we don't own it
svn path=/trunk/KDE/kdelibs/; revision=884087
2008-11-14 08:04:23 +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
ff775cfaf0 SVN_SILENT: whoops slipped a copypasted copyright in the header :)
svn path=/trunk/KDE/kdelibs/; revision=882819
2008-11-11 12:52:25 +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
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
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
Aaron J. Seigo
4a23952936 get krazy off my back
svn path=/trunk/KDE/kdelibs/; revision=881296
2008-11-07 18:04:32 +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
6b1a604743 use kurls
svn path=/trunk/KDE/kdelibs/; revision=880625
2008-11-05 23:39:30 +00:00
Aaron J. Seigo
c948455956 use ktabbar here, as per krazy's suggestion
svn path=/trunk/KDE/kdelibs/; revision=880622
2008-11-05 23:28:07 +00:00
Aaron J. Seigo
98585afd6e explicit
svn path=/trunk/KDE/kdelibs/; revision=880607
2008-11-05 23:00:53 +00:00
Aaron J. Seigo
ef3b16f6ea dptr
svn path=/trunk/KDE/kdelibs/; revision=880606
2008-11-05 23:00:14 +00:00
Marco Martin
34f2f49a87 when the svg element id changes the pixmap must be generated again
svn path=/trunk/KDE/kdelibs/; revision=880555
2008-11-05 20:43:53 +00:00
Marco Martin
27238f17b7 shadow element is optional
cache frame pixmaps since qpainter rtation is expensive

svn path=/trunk/KDE/kdelibs/; revision=879936
2008-11-04 12:04:54 +00:00
Aaron J. Seigo
df73771a1b ++compile
svn path=/trunk/KDE/kdelibs/; revision=879801
2008-11-04 02:55:37 +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
Marco Martin
8a29bcddc8 adds a busy indicator spinning widget
to be used to indicate a wait of unknown duration

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879671
2008-11-03 19:50:21 +00:00
Aaron J. Seigo
8c7ed93278 if we're given a layout, don't create another layout for it to live in
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=879360
2008-11-03 04:15:34 +00:00
Marco Martin
aaf39fc289 SVN_SILENT: Label->frame
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=878986
2008-11-02 11:18:21 +00:00
Kevin Ottens
ef6cefb06c WebContent becomes WebView.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=877511
2008-10-29 17:53:30 +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
Aaron J. Seigo
b4e741c3f0 something i've wanted for a bit: autohide on fade. perfect kind of "i don't have to think to add this" kind of feature to fill in my boredom during meetings full of powerpoint presentations ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=876852
2008-10-28 09:25:57 +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
0cc762d4a0 a bit more doc
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=876535
2008-10-27 13:28:55 +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
Pino Toscano
930f16f881 - signals -> Q_SIGNALS
- fix include guard name

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874665
2008-10-22 07:47:44 +00:00
Davide Bettio
9ed5641257 Added click signal to SvgWidget.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=874074
2008-10-20 18:26:25 +00:00
Aaron J. Seigo
d2a6019704 where's the Q_OBJECT macro? ah, there it is! ;)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873687
2008-10-19 23:20:27 +00:00
Pino Toscano
f33695a670 use relative path to the header (the CamelCase is not installed at this point yet)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873170
2008-10-18 22:57:50 +00:00
Aaron J. Seigo
43b749901e ws fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873139
2008-10-18 21:36:36 +00:00
Aaron J. Seigo
2839ebec00 style fixes
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873137
2008-10-18 21:35:40 +00:00
Davide Bettio
dd9445d885 Added svgwidget.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=873133
2008-10-18 21:30:02 +00:00
Aaron J. Seigo
771c946872 remove a bit of nonesense =)
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=871924
2008-10-16 04:27:20 +00:00
Marco Martin
9c6184b1bf a bit more cleaner
more fitts law friendly when is in a top panel (still some resizing
issues)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=871308
2008-10-14 13:16:56 +00:00
Allen Winter
8716f930ec use split('x') instead of split("x")
add single chars instead of single char strings

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870295
2008-10-12 10:57:42 +00:00
Allen Winter
492fe0e8aa fixup include guards
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870291
2008-10-12 10:48:53 +00:00
Allen Winter
214ac5f91f clean up some kDebugs and kWarnings.
shorten some extra long lines.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=870290
2008-10-12 10:20:02 +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
Marco Martin
0dc100928d style the tabbar scroll buttons with plasma colors
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=868202
2008-10-05 17:53:37 +00:00
Marco Martin
5c45bf09e8 implement a sizehint that permits to use the frame just as a simple
header (i.e when empty return the height of the title font+margins)

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867107
2008-10-02 20:07:49 +00:00
Marco Martin
1f7a0f7560 combobox uses PaintUtils::transition
some cleanups in PushButton

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=867098
2008-10-02 19:39:00 +00:00
Aaron J. Seigo
7f134e04fe update when the theme does
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866855
2008-10-02 03:55:01 +00:00
Sebastian Kügler
5c7e5ab2e3 Respect Plasma's colour scheme
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866848
2008-10-02 03:36:11 +00:00
Marco Martin
e0bd985045 use PaintUtils::transition
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866781
2008-10-01 21:40:38 +00:00
Aaron J. Seigo
835035a94d forward the link activated signal; common one
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866468
2008-09-30 23:21:22 +00:00
Marco Martin
1e12bfe8ca style with the PushButton svg elements when is not editable
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=866345
2008-09-30 16:17:49 +00:00