Commit Graph

1114 Commits

Author SHA1 Message Date
Aaron J. Seigo
c2b211aba8 don't need this debug anymore
svn path=/trunk/KDE/kdelibs/; revision=1096905
2010-02-27 22:20:15 +00:00
Aaron J. Seigo
b2b72f7f2c fix a regression with the link fix: we only want to go into text browser mode when text is selectable
svn path=/trunk/KDE/kdelibs/; revision=1096900
2010-02-27 22:16:05 +00:00
Mathieu Ducharme
c39557b55e Allow ComboBox.addItem() to be used in scripts.
svn path=/trunk/KDE/kdelibs/; revision=1096017
2010-02-25 14:14:13 +00:00
Aaron J. Seigo
7fb501467a since we can't do a hit test, only accept the mouse event if text selection is turned on; when Qt is fixed, we can get rid of this
svn path=/trunk/KDE/kdelibs/; revision=1095481
2010-02-24 11:56:18 +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
Aaron J. Seigo
9e5a7b85c1 make link licking and text selection -actually- work
svn path=/trunk/KDE/kdelibs/; revision=1095290
2010-02-23 23:02:15 +00:00
Aaron J. Seigo
ab5ddca4a8 missing property
svn path=/trunk/KDE/kdelibs/; revision=1095278
2010-02-23 22:40:25 +00:00
Marco Martin
3a2a21d34a actually disable the fade when a bunch of fast changes (animation frames) happen
svn path=/trunk/KDE/kdelibs/; revision=1093280
2010-02-20 14:19:29 +00:00
David Faure
dcf17f34c7 Fix widgets/webview.cpp:270: error: control reaches end of non-void function
svn path=/trunk/KDE/kdelibs/; revision=1092367
2010-02-18 19:54:47 +00:00
Davide Bettio
d982f20609 Plasma::WebView has been ported to KGraphicsWebView. http://reviewboard.kde.org/r/2990/
svn path=/trunk/KDE/kdelibs/; revision=1091982
2010-02-17 23:59:14 +00:00
Marco Martin
a9cc788fb2 animate icon change with fade, but only if the chage doesn't happen too frequently (so is still possible to fo an animation by quicky change the icon)
svn path=/trunk/KDE/kdelibs/; revision=1091092
2010-02-16 17:24:35 +00:00
Marco Martin
bd87a3f3b7 simplify a bit, now Svg can return directly a pixmap
svn path=/trunk/KDE/kdelibs/; revision=1091013
2010-02-16 14:38:58 +00:00
Davide Bettio
12300374db Plasma::WebView has KDE integration since now (using KWebKit)
svn path=/trunk/KDE/kdelibs/; revision=1090803
2010-02-16 02:41:14 +00:00
Aaron J. Seigo
8b550a13ad set the view on the page; this is a but in QtWebkit, but at least this prevents crashing for now
svn path=/trunk/KDE/kdelibs/; revision=1090788
2010-02-16 01:07:25 +00:00
Bruno de Oliveira Abinader
5571e3e549 Change the all Plasma::Animator::self() to Plasma::Animator::create in FlashingLable class.
Patch-by: Andre Loureiro <loureiro.andrew@gmail.com>

svn path=/trunk/KDE/kdelibs/; revision=1088729
2010-02-11 13:04:12 +00:00
Marco Martin
1aa1d4b2f0 return a geometry that makes sense or will have layouts problems forever
(actually just always return QGraphicsWidget::geometry() would make even more sense)

svn path=/trunk/KDE/kdelibs/; revision=1087924
2010-02-09 20:07:38 +00:00
Marco Martin
ee81c23d18 check if the animation actually exists
svn path=/trunk/KDE/kdelibs/; revision=1087327
2010-02-08 20:47:29 +00:00
Bruno de Oliveira Abinader
22c390a768 Fixed IconWidget's item action animation (s/ZoomAnimation/PixmapTransitionAnimation)
svn path=/trunk/KDE/kdelibs/; revision=1087296
2010-02-08 19:27:12 +00:00
Bruno de Oliveira Abinader
bf225098a9 Updated Plasma IconWidget to use new animation API + QPropertyAnimation
svn path=/trunk/KDE/kdelibs/; revision=1085753
2010-02-05 21:46:51 +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
92730e9e15 (almost) fix the tabbar animation.
there are still repaint issues on the native tabbar tough

svn path=/trunk/KDE/kdelibs/; revision=1085531
2010-02-05 12:24:46 +00:00
Bruno de Oliveira Abinader
0928bed7ce Updated Plasma VideoWidget animation to use Plasma::Animator::SlideAnimation
svn path=/trunk/KDE/kdelibs/; revision=1085249
2010-02-04 18:33:24 +00:00
Marco Martin
877957aa18 remove the pressed state on hoverleaveevent. useful when an eventfilter steals the mousereleaseevent (like scrollwidget::registerAsDragHandle())
svn path=/trunk/KDE/kdelibs/; revision=1084837
2010-02-03 20:52:03 +00:00
Marco Martin
2e9b47d6bd if the user dragged less than KGlobalSettings::dndEventDelay() and releases, don't drag, but pass the click, start to drag after that threshold
svn path=/trunk/KDE/kdelibs/; revision=1084809
2010-02-03 20:08:57 +00:00
Aaron J. Seigo
751e79c666 SVN_SILENT: remove some fairly silly debug output
svn path=/trunk/KDE/kdelibs/; revision=1083611
2010-02-01 16:23:08 +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
Marco Martin
3618f03425 remove extra constructor
svn path=/trunk/KDE/kdelibs/; revision=1081212
2010-01-27 22:22:07 +00:00
Marco Martin
189289660c a ctor with a QGraphicsItem as parent as it should always had
svn path=/trunk/KDE/kdelibs/; revision=1081047
2010-01-27 16:03:47 +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
69e65f2df8 Oops ... s/graphicswidget/qgraphicswidget
Patch by: Bruno Abinader<brunoabinader@gmail.com>

svn path=/trunk/KDE/kdelibs/; revision=1080626
2010-01-26 15:43:23 +00:00
Igor Trindade Oliveira
4a01b71e47 Added missing Plasma::Frame parent resizeEvent() call
Patch by: Bruno Abinader <brunoabinader@gmail.com>

svn path=/trunk/KDE/kdelibs/; revision=1080622
2010-01-26 15:29:53 +00:00
Marco Martin
5dba601d47 fix build, animationUpdate() is dead
svn path=/trunk/KDE/kdelibs/; revision=1079737
2010-01-24 22:05:25 +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
157711c581 port tabbar to new animation api.
svn path=/trunk/KDE/kdelibs/; revision=1078747
2010-01-22 19:31:42 +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
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
79db16ac7b port itembackground to new animation api.
svn path=/trunk/KDE/kdelibs/; revision=1078255
2010-01-21 21:53:01 +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
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
Aaron J. Seigo
d336f7034d missing API for scripting
svn path=/trunk/KDE/kdelibs/; revision=1077850
2010-01-21 00:13:30 +00:00
Aaron J. Seigo
69a0c5bc3a property name corrections
svn path=/trunk/KDE/kdelibs/; revision=1077840
2010-01-20 23:47:20 +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
Igor Trindade Oliveira
874a2b1a44 port combbox to new animation api.
svn path=/trunk/KDE/kdelibs/; revision=1077727
2010-01-20 19:14:27 +00:00
Aaron J. Seigo
54a24c3614 down, for consistency with qtoolbutton
svn path=/trunk/KDE/kdelibs/; revision=1077308
2010-01-19 22:28:49 +00:00
Aaron J. Seigo
4d2fe69c8a style*S*heet
svn path=/trunk/KDE/kdelibs/; revision=1077275
2010-01-19 21:23:05 +00:00
Aaron J. Seigo
8cf1526ffc property typo
svn path=/trunk/KDE/kdelibs/; revision=1077258
2010-01-19 20:56:51 +00:00
Aaron J. Seigo
6063c5cab0 add a property for downness
svn path=/trunk/KDE/kdelibs/; revision=1077251
2010-01-19 20:32:22 +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
8ee524d172 IconAction refuses to display and to be activated if the underlying QAction is invisible or disabled
svn path=/trunk/KDE/kdelibs/; revision=1072708
2010-01-10 19:34:33 +00:00
Marco Martin
c1e947a768 when the icon is horizontal and there is no text take the min between width and height as icon size.
among other things fixes the unhide arrow of the systray

svn path=/trunk/KDE/kdelibs/; revision=1071365
2010-01-07 21:58:51 +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
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
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
Aaron J. Seigo
e9cd616bca erf, API addition that has been sitting on disk here for weeks :/
svn path=/trunk/KDE/kdelibs/; revision=1069239
2010-01-03 01:49:52 +00:00
Michał Dutkiewicz
4def4009c6 Set flag in setNativeWidget() so it will be set also when using custom widgets
svn path=/trunk/KDE/kdelibs/; revision=1067584
2009-12-29 21:59:29 +00:00
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