Commit Graph

1007 Commits

Author SHA1 Message Date
Marco Martin
06341cfb73 put all context menus in a separate window, resolving cutting and z-order issues
BUG:207956

svn path=/trunk/KDE/kdelibs/; revision=1067048
2009-12-28 19:52:54 +00:00
John Layt
6e9943e36c krazy fixes, mostly include guards and copyright tags
svn path=/trunk/KDE/kdelibs/; revision=1066779
2009-12-27 22:16:11 +00:00
Marco Martin
96d2513e9e -minimum size hint
-when the text changes discard the cached hints

svn path=/trunk/KDE/kdelibs/; revision=1066299
2009-12-26 17:29:55 +00:00
Marco Martin
2ee4189268 give it a minimum size hint
svn path=/trunk/KDE/kdelibs/; revision=1066298
2009-12-26 17:27:19 +00:00
Marco Martin
bf438dcf98 be LGPL2+
svn path=/trunk/KDE/kdelibs/; revision=1066185
2009-12-26 10:37:47 +00:00
Marco Martin
99500091a1 revert last change
svn path=/trunk/KDE/kdelibs/; revision=1065635
2009-12-23 22:11:39 +00:00
Marco Martin
3c69761d55 change a bit the logic of when show the animation or not
svn path=/trunk/KDE/kdelibs/; revision=1065286
2009-12-22 22:18:57 +00:00
Marco Martin
010bcc9629 don't try to draw an halo rect if the size is empty (amarok action icons look better now)
svn path=/trunk/KDE/kdelibs/; revision=1065132
2009-12-22 16:02:26 +00:00
Marco Martin
923d772a85 delay only in the case the item to be visible is a qgraphicswidget, so we can guard the temp pointer with a weak one
BUG:219475

svn path=/trunk/KDE/kdelibs/; revision=1064800
2009-12-21 20:29:08 +00:00
Marco Martin
fdae3f0d59 This patch forward the "stateChanged" signal emitted from the private kinetic scroll animation all the way to Plasma::ScrollWidget, which then forwards this signal to its childs. This enables an object which derives from Plasma::ScrollWidget to know the kinetic scrolling animation state.
Patch by Bruno Abinader

svn path=/trunk/KDE/kdelibs/; revision=1064768
2009-12-21 18:36:39 +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
Aurélien Gâteau
e510b513c6 Fix use of uninitialized variable (thanks to Valgrind)
setMinimumSize() ... -> setGeometry() ... -> updateDataBuffer()
and updateDataBuffer() uses horizontalScale.

svn path=/trunk/KDE/kdelibs/; revision=1064695
2009-12-21 13:48:24 +00:00
Marco Martin
7732b62f16 if the target gets shown show the background too
svn path=/trunk/KDE/kdelibs/; revision=1063611
2009-12-18 22:10:32 +00:00
Marco Martin
20bed9f073 add the missing constructor with a qgi as parent, as all the qgraphicswidget have
svn path=/trunk/KDE/kdelibs/; revision=1063597
2009-12-18 21:44:02 +00:00
Andras Mantia
4a708b9351 Fix amigous constructor declaration
svn path=/trunk/KDE/kdelibs/; revision=1062937
2009-12-16 10:57:25 +00:00
Marco Martin
4b8b780829 don't do adjustScrollbars more than every 200 msecs
resolves some cyclical relayout crashes and surprisingly enough also some layout estetic problems
BUG:202890

svn path=/trunk/KDE/kdelibs/; revision=1062764
2009-12-15 21:37:07 +00:00
Marco Martin
2165a85a9f since widget can be deleted from the outside use a weak pointer
svn path=/trunk/KDE/kdelibs/; revision=1062742
2009-12-15 20:37:22 +00:00
Marco Martin
177956d55e always draw behind the target
svn path=/trunk/KDE/kdelibs/; revision=1061624
2009-12-12 14:33:27 +00:00
Marco Martin
d3ce9d4c62 set a zvalue ridiculously high by default, since comboboxes always have to pop their dialog over the other idgets. mnual adjusting will still have to be done in the case of multiple comboboxes stacked
BUG:38981

svn path=/trunk/KDE/kdelibs/; revision=1061620
2009-12-12 14:22:09 +00:00
Marco Martin
c4bd7a9db4 don't set the parent item as target, since we don't know when target will die.
instead map the target position to the proper place, in our current parent's coordinates
BUG:211404

svn path=/trunk/KDE/kdelibs/; revision=1061426
2009-12-11 17:46:08 +00:00
Aaron Charles Reichman
4c31342c2e Fixed some spelling errors flagged by krazy
svn path=/trunk/KDE/kdelibs/; revision=1060866
2009-12-10 09:16:30 +00:00
Marco Martin
eb13d0f4cd unbreak when the tabbar is hidden
svn path=/trunk/KDE/kdelibs/; revision=1060780
2009-12-09 21:24:58 +00:00
Marco Martin
92d3cdc0a3 a bit more spacing to avoid ellipsis
svn path=/trunk/KDE/kdelibs/; revision=1060754
2009-12-09 20:10:22 +00:00
Marco Martin
a5ccb23ebd it appears is necessary to resize the new page 2 times for it to take effect, invalidating the layout doesn't seem to be enough
svn path=/trunk/KDE/kdelibs/; revision=1060726
2009-12-09 19:19:00 +00:00
Marco Martin
a09d6fbc44 always call the base class resize
svn path=/trunk/KDE/kdelibs/; revision=1060723
2009-12-09 18:50:59 +00:00
Marco Martin
f449a1586a remove a bit of margins
svn path=/trunk/KDE/kdelibs/; revision=1060698
2009-12-09 17:44:56 +00:00
Darío Andrés Rodríguez
c9d1959026 - Remove several warnings about unused parameters
http://reviewboard.kde.org/r/2252/
  I didn't applied Q_UNUSED to "parent" pointers as this looks suspicious to me, and it needs more review.


svn path=/trunk/KDE/kdelibs/; revision=1058428
2009-12-04 13:01:33 +00:00
Giulio Camuffo
7e3bdb55e5 better wait for the parentItem to resize before calculating the rect of the item to be visible
svn path=/trunk/KDE/kdelibs/; revision=1057266
2009-12-01 20:49:34 +00:00
Marco Martin
c95a699031 don't paint the background also if the color is totally ransparent
svn path=/trunk/KDE/kdelibs/; revision=1057251
2009-12-01 20:10:49 +00:00
Marco Martin
bd279b081f update the geometry when the text changes, apparently it doesn't get done automagically :/
svn path=/trunk/KDE/kdelibs/; revision=1057231
2009-12-01 19:33:01 +00:00
Marco Martin
6d38a2a3b6 use different focus and hover for horizontal and vertical sliders
svn path=/trunk/KDE/kdelibs/; revision=1055167
2009-11-27 13:42:00 +00:00
Marco Martin
3c84247ae6 move halopainter unchanged in libplasma, keep it private and expose
drawhalo in PaintUtils
iconwidgets uses it if there is no backgroundcolor explicitly setted
CCMAIL:fredrik@kde.org

svn path=/trunk/KDE/kdelibs/; revision=1054830
2009-11-26 21:57:36 +00:00
Marco Martin
ebbb89e543 their textcolor are buttontext now
svn path=/trunk/KDE/kdelibs/; revision=1054737
2009-11-26 16:56:46 +00:00
Artur Duque de Souza
b0630bfd58 Remove old code from itembackground and fix possible cause
of segfault with device notifier

svn path=/trunk/KDE/kdelibs/; revision=1053424
2009-11-24 03:06:38 +00:00
Aaron J. Seigo
3ad39b384c use plasma colours by default for the text
svn path=/trunk/KDE/kdelibs/; revision=1053269
2009-11-23 18:49:25 +00:00
Marco Martin
4b9e4f71cd workaround to the random gibberish when fading:
use an intermediate pixmap also when opacity() < 1

svn path=/trunk/KDE/kdelibs/; revision=1052747
2009-11-22 12:49:58 +00:00
Marco Martin
ea0494d0fb round the position to integer, prevents an ugly effect of dancing fonts
svn path=/trunk/KDE/kdelibs/; revision=1051556
2009-11-19 19:40:07 +00:00
Igor Trindade Oliveira
ad028bab20 clean ups
svn path=/trunk/KDE/kdelibs/; revision=1051540
2009-11-19 19:05:50 +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
Marco Martin
2bfcef80ab expose the zoomFactor property.
accept touch events

svn path=/trunk/KDE/kdelibs/; revision=1050596
2009-11-17 17:57:54 +00:00
Marco Martin
4ffc256c8b ignore right mouse events
svn path=/trunk/KDE/kdelibs/; revision=1050222
2009-11-16 22:05:35 +00:00
Aaron J. Seigo
dcda8b9986 should be slots
svn path=/trunk/KDE/kdelibs/; revision=1050156
2009-11-16 19:16:53 +00:00
Aaron J. Seigo
32835ca5bc make some of the method invokable
svn path=/trunk/KDE/kdelibs/; revision=1048894
2009-11-14 04:31:20 +00:00
Aaron J. Seigo
4162839c2b d->widget can be 0
svn path=/trunk/KDE/kdelibs/; revision=1048893
2009-11-14 04:31:06 +00:00
Aaron J. Seigo
642ac28d10 scripting friendlyness
svn path=/trunk/KDE/kdelibs/; revision=1048880
2009-11-14 03:58:33 +00:00
Aaron J. Seigo
9d90d23d31 make this useful from scripts
(ah, from before the days when we scrutinized every drop of api and required 'fancy' things like apidox because we were in such a hurry to get things done (yay 4.0))

svn path=/trunk/KDE/kdelibs/; revision=1048875
2009-11-14 03:38:56 +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
Marco Martin
81a6c7e23a don't pass mouse release to the drag handles if the mouse moved over
dndEventDelay

svn path=/trunk/KDE/kdelibs/; revision=1048617
2009-11-13 16:03:02 +00:00
Petri Damstén
046242bf79 update frame when text changes.
svn path=/trunk/KDE/kdelibs/; revision=1048469
2009-11-13 11:59:17 +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