Kevin Ottens
6a3240b051
libplasma becomes our first lib with profiles support.
...
svn path=/trunk/KDE/kdelibs/; revision=1120434
2010-04-29 05:57:34 +00:00
Marco Martin
28386758e1
check the tasget item is still alive, crash--
...
svn path=/trunk/KDE/kdelibs/; revision=1119672
2010-04-27 16:02:51 +00:00
Marco Martin
2fa6d4204c
- when the background gets enabled, recalculate hints
...
- always add item margins to the hint
svn path=/trunk/KDE/kdelibs/; revision=1119097
2010-04-26 14:50:54 +00:00
Marco Martin
e979201682
add maximumIconSize and minimumIconSize properties: last step to have sane size hints
...
svn path=/trunk/KDE/kdelibs/; revision=1119084
2010-04-26 14:17:08 +00:00
Marco Martin
6bad7500be
take the max between width and height
...
svn path=/trunk/KDE/kdelibs/; revision=1118354
2010-04-24 14:03:48 +00:00
Marco Martin
5b49fc05e1
new property: preferredIconSize, aka the final solution to all layout problems
...
svn path=/trunk/KDE/kdelibs/; revision=1118322
2010-04-24 12:08:13 +00:00
Marco Martin
b9de116f33
get the margins right.
...
give the natural svg size if the icon is a svg
svn path=/trunk/KDE/kdelibs/; revision=1118304
2010-04-24 11:30:09 +00:00
Marco Martin
5d9b77ed76
reset any svg icon if a normal one gets set
...
svn path=/trunk/KDE/kdelibs/; revision=1117890
2010-04-23 11:35:43 +00:00
Marco Martin
3d8425e6ef
don't bork horizontal tabbar size
...
svn path=/trunk/KDE/kdelibs/; revision=1117183
2010-04-21 13:16:46 +00:00
Marco Martin
36e45c7929
behave slightly better in layouts
...
svn path=/trunk/KDE/kdelibs/; revision=1117180
2010-04-21 13:05:57 +00:00
Marco Martin
b80b091db4
make viewportGeometryChanged actually working
...
svn path=/trunk/KDE/kdelibs/; revision=1116503
2010-04-19 16:20:08 +00:00
Marco Martin
215e883684
new signal: viewportGeometrychanged
...
svn path=/trunk/KDE/kdelibs/; revision=1116489
2010-04-19 15:55:04 +00:00
Marco Martin
1d8d908d9b
snap animations are snapX and snapY
...
still todo, create them only when snap is on
svn path=/trunk/KDE/kdelibs/; revision=1116414
2010-04-19 12:44:09 +00:00
Marco Martin
dfb46bb03e
a new property: snapSize if one wants to always make the scroll end aligned to a certain grid (is a size, so snap can be different horizontal and vertical)
...
svn path=/trunk/KDE/kdelibs/; revision=1116100
2010-04-18 16:31:07 +00:00
Marco Martin
ee661f4347
while still adjusting hard size hints, keep the tabbar centered
...
svn path=/trunk/KDE/kdelibs/; revision=1115434
2010-04-16 12:57:59 +00:00
Marco Martin
6ff8621d3a
update fixed size hints as soon as the tabwidgetmode changes
...
svn path=/trunk/KDE/kdelibs/; revision=1115431
2010-04-16 12:51:07 +00:00
Marco Martin
90a4225a91
add the size of the proper scrollbar, fix epic sizehint fail
...
svn path=/trunk/KDE/kdelibs/; revision=1112910
2010-04-09 13:18:25 +00:00
Marco Martin
192052b0b7
-make sure hints are invalidated when the inner widget resizes
...
-the size hint should take into account the -double- border
svn path=/trunk/KDE/kdelibs/; revision=1112548
2010-04-08 13:14:55 +00:00
Aaron J. Seigo
3ec50c411f
do the proxy widget resize first, so that the edit rect is correct
...
svn path=/trunk/KDE/kdelibs/; revision=1112338
2010-04-07 21:45:09 +00:00
Aaron J. Seigo
9eecf8ba7c
pass on the resize event.
...
svn path=/trunk/KDE/kdelibs/; revision=1112336
2010-04-07 21:42:19 +00:00
Marco Martin
a6c55a9cf3
take scrollbars into account for preferred size hint
...
minimum size is still fixed, basing on the contained widget doesn't work
svn path=/trunk/KDE/kdelibs/; revision=1112299
2010-04-07 19:54:44 +00:00
Aaron J. Seigo
5ed9e14f0e
propagate cursor changes to the native widget
...
svn path=/trunk/KDE/kdelibs/; revision=1111916
2010-04-07 01:44:56 +00:00
Marco Martin
7e27da128e
when the inner widget has scroll properties, invert the proper values in fixupanimation
...
svn path=/trunk/KDE/kdelibs/; revision=1111023
2010-04-04 16:54:42 +00:00
Marco Martin
580b91d111
a bit more precision
...
svn path=/trunk/KDE/kdelibs/; revision=1108830
2010-03-29 21:36:33 +00:00
Marco Martin
4d12fc818f
less translated shadow
...
svn path=/trunk/KDE/kdelibs/; revision=1108417
2010-03-28 20:57:59 +00:00
Marco Martin
5560dae986
scale coherently also the old icon during the animation
...
svn path=/trunk/KDE/kdelibs/; revision=1108404
2010-03-28 19:55:51 +00:00
Marco Martin
621ead5280
IconMargin is useful only to give good proportion when there is text,
...
when there isn't we want the whole size to be really precise with size
calculations
svn path=/trunk/KDE/kdelibs/; revision=1108320
2010-03-28 15:59:45 +00:00
Marco Martin
2f8e70b7ab
make the webview widget use scrollwidget for flicking
...
still some issues to fix, but most of the behaviour is ported.
patch based on zack's work
CCMAIL:zack@kde.org
svn path=/trunk/KDE/kdelibs/; revision=1108058
2010-03-27 17:44:16 +00:00
Marco Martin
07ad834e81
scroll horizontally when the scroll is vertical and there was no space to scroll vertically
...
and vice versa for horizontal scroll
svn path=/trunk/KDE/kdelibs/; revision=1106404
2010-03-22 18:36:57 +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
76d131a501
experiment two behavioural changes:
...
- don't flick when the contents are smaller than the view (or flick only for the axis where the contents are bigger)
- still pass mouse moves to childrens so they can initiate drags (useful? annoying? still to be found, but necessary for netbook sal to work at the moment)
svn path=/trunk/KDE/kdelibs/; revision=1105167
2010-03-19 12:09:08 +00:00
Marco Martin
26a4b3f20d
register/unregoster as drag handles is deprecated now since it's automatic
...
svn path=/trunk/KDE/kdelibs/; revision=1104888
2010-03-18 20:22:03 +00:00
Zack Rusin
3c0cffc506
Implement wheel scrolling and add a way of disabling overshoot.
...
plus some doc cleanups.
svn path=/trunk/KDE/kdelibs/; revision=1104868
2010-03-18 19:22:52 +00:00
Zack Rusin
82702e7043
Improve kinetic scrolling on ScrollWidget
...
As previously discussed with this approach we can actually properly intercept events from child items. Furthermore now we properly "steal" events which cause a flick (it's important for child items to properly act on mouseReleaseEvents and not on mousePressEvents as some like to do, since it's the release events that cause a flick) so items don't get clicks when flicked. The physics and especially the overshoot behavior is a lot better in this code as well.
Review http://reviewboard.kde.org/r/3312/
svn path=/trunk/KDE/kdelibs/; revision=1104841
2010-03-18 18:14:39 +00:00
David Faure
c093832d1f
forwardport 1101692: Fix compilation error with Qt-4.6.0,
...
plasma/svgwidget.moc:53: error: 'staticMetaObject' is not a member of 'Plasma'
Apparently moc is more clever in Qt-4.6.3, but anyway http://bugreports.qt.nokia.com/browse/QTBUG-2151 is right,
the property is only usable if declared with Q_DECLARE_METATYPE, isn't it?
svn path=/trunk/KDE/kdelibs/; revision=1101693
2010-03-10 16:38:54 +00:00
Marco Martin
60d5462c3f
don't hide the popup if it lost focus but ithe icon is pressed.
...
not too pretty solution to
BUG:230157
svn path=/trunk/KDE/kdelibs/; revision=1101663
2010-03-10 14:20:20 +00:00
Aaron J. Seigo
12f67240ba
properties need to be fully qualified
...
svn path=/trunk/KDE/kdelibs/; revision=1101266
2010-03-09 20:00:28 +00:00
Aaron J. Seigo
a1b6257416
save some memory
...
svn path=/trunk/KDE/kdelibs/; revision=1101263
2010-03-09 19:59:34 +00:00
Marco Martin
6842d43101
reverting last commit, was plain useless
...
svn path=/trunk/KDE/kdelibs/; revision=1100845
2010-03-08 20:42:06 +00:00
Marco Martin
2116cf8681
delaying setView seems to save some crashes
...
svn path=/trunk/KDE/kdelibs/; revision=1100837
2010-03-08 20:16:41 +00:00
Marco Martin
f7169d811c
unbreak painting
...
svn path=/trunk/KDE/kdelibs/; revision=1100826
2010-03-08 19:03:20 +00:00
Marco Martin
2f308de3da
always reset the icon change timer: will cause less unneeded animations
...
svn path=/trunk/KDE/kdelibs/; revision=1100808
2010-03-08 17:44:59 +00:00
Aaron J. Seigo
0ad75a51db
svg can be null; patch by Nikita Melnichenko
...
CCBUG:229668
svn path=/trunk/KDE/kdelibs/; revision=1100082
2010-03-06 18:44:07 +00:00
Marco Martin
3ba74c0fe8
export wordwrap in api and Q_PROPERTY
...
svn path=/trunk/KDE/kdelibs/; revision=1099291
2010-03-05 12:36:38 +00:00
Aaron J. Seigo
841200fe6a
SVN_SILENT: more pedantry; i should stop reading through the code ;)
...
svn path=/trunk/KDE/kdelibs/; revision=1099008
2010-03-04 22:27:43 +00:00
Marco Martin
67e72fb8ff
sizeFromIconSize should be usable from javascript
...
svn path=/trunk/KDE/kdelibs/; revision=1098964
2010-03-04 19:47:06 +00:00
Marco Martin
6d8783b5e8
export Q_PROPERTY, live happy
...
svn path=/trunk/KDE/kdelibs/; revision=1098949
2010-03-04 18:38:21 +00:00
Marco Martin
8c2dc5036a
the proper text to use here is action->toolTip()
...
CCMAIL:thomas.luebking@web.de
svn path=/trunk/KDE/kdelibs/; revision=1097986
2010-03-02 15:27:51 +00:00
Marco Martin
3408ebe777
we don't want acelerator markers in tooltips
...
svn path=/trunk/KDE/kdelibs/; revision=1097929
2010-03-02 13:02:51 +00:00
Aaron J. Seigo
eddbfdcd99
slightly clearer
...
svn path=/trunk/KDE/kdelibs/; revision=1097679
2010-03-01 21:26:12 +00:00
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
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
Marco Martin
377e6bf9c1
kineticscroll accepts keyboard events too, scrollwidget scrollbars don't
...
accept focus
svn path=/trunk/KDE/kdelibs/; revision=1048165
2009-11-12 20:44:02 +00:00
Marco Martin
86682cb176
the focus indicator can load also simple svg elements instead of
...
framesvgs
the slider uses it to show a glow behind the handle on mouse over or
keyboard focus
svn path=/trunk/KDE/kdelibs/; revision=1048126
2009-11-12 19:31:39 +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
a5f39f0f06
return a size hint based on font metrics
...
svn path=/trunk/KDE/kdelibs/; revision=1046144
2009-11-07 16:44:56 +00:00
Marco Martin
8c047a91eb
don't fade the label if the width is exactly the text width
...
svn path=/trunk/KDE/kdelibs/; revision=1046037
2009-11-07 10:56:06 +00:00
Marco Martin
ca60a5a6cf
convert the function to a qgraphicswidget:
...
sceneeventfilter appears to eat events always and in this way i can
remove elements from dragHandles when they get deleted
svn path=/trunk/KDE/kdelibs/; revision=1045818
2009-11-06 20:20:35 +00:00
Marco Martin
3639317617
send the event to the widget, it will have coordinates mapped in a more
...
precise way
svn path=/trunk/KDE/kdelibs/; revision=1045778
2009-11-06 18:58:47 +00:00
Marco Martin
60eabf5382
void registerAsDragHandle(QGraphicsItem *item);
...
easy way to keep the flickable scrolling even with clickable sub items
svn path=/trunk/KDE/kdelibs/; revision=1045776
2009-11-06 18:57:35 +00:00
Marco Martin
5789ff1883
remove magic numbers
...
svn path=/trunk/KDE/kdelibs/; revision=1045319
2009-11-05 19:21:25 +00:00
Marco Martin
2d0f7dc81b
set the proper margins:.. todo: constant, not magic numbers
...
svn path=/trunk/KDE/kdelibs/; revision=1045303
2009-11-05 18:37:38 +00:00
Marco Martin
f58a5a844b
update the geometry on load finish
...
svn path=/trunk/KDE/kdelibs/; revision=1044727
2009-11-04 14:48:23 +00:00
Marco Martin
54f38beec6
return the page size as size hint
...
svn path=/trunk/KDE/kdelibs/; revision=1044708
2009-11-04 14:16:14 +00:00
Marco Martin
1b945b8aff
removeIconAction(0) clears the actions
...
svn path=/trunk/KDE/kdelibs/; revision=1044330
2009-11-03 13:10:19 +00:00
Petri Damstén
2a7d429232
discard size hint in setText
...
BUG: 212341
svn path=/trunk/KDE/kdelibs/; revision=1043020
2009-10-31 14:10:11 +00:00
Petri Damstén
d03a3ef5df
Return correct width for minimum and preferred size.
...
BUG:212341
svn path=/trunk/KDE/kdelibs/; revision=1042611
2009-10-30 10:11:12 +00:00
Marco Martin
5bd2af94f8
invalidate the main layout when te new page is inserted, only way to get
...
the preferred size right, apparently
svn path=/trunk/KDE/kdelibs/; revision=1042410
2009-10-29 19:05:04 +00:00
Marco Martin
c71cd00557
delay cuurentchanged after the animation, use a preferredsize policy for the
...
pages
svn path=/trunk/KDE/kdelibs/; revision=1042395
2009-10-29 18:31:27 +00:00
Marco Martin
4418fb8971
revert last bogus commit
...
svn path=/trunk/KDE/kdelibs/; revision=1042383
2009-10-29 17:58:52 +00:00
Marco Martin
7e8d330582
some qgraphicslayout hack to return a meaningful size hint, pretty
...
unfortunate
svn path=/trunk/KDE/kdelibs/; revision=1042375
2009-10-29 17:50:44 +00:00
Marco Martin
dd581265cf
move the extra border in the size hint
...
svn path=/trunk/KDE/kdelibs/; revision=1041792
2009-10-28 14:19:34 +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
905f3960da
use the active rect for the focus rect
...
svn path=/trunk/KDE/kdelibs/; revision=1039127
2009-10-22 19:28:19 +00:00
Marco Martin
03bb063c62
migrate focusindicator to the new api
...
change the api of fade to be abe to set a start and an end taget
opacities
svn path=/trunk/KDE/kdelibs/; revision=1039087
2009-10-22 17:39:43 +00:00
Marco Martin
c470055a37
revert the last patch: when there is clipping the borders can't be
...
children of the scrolling widget
svn path=/trunk/KDE/kdelibs/; revision=1038759
2009-10-21 19:47:20 +00:00
Marco Martin
7e80fdd8f1
use anchorlayout, quite a good quantity of code wiped out,
...
workaround to an annoying anchorlayout crasher tough
svn path=/trunk/KDE/kdelibs/; revision=1038665
2009-10-21 15:26:08 +00:00
Marco Martin
637a50e17c
disable the clipping hack
...
svn path=/trunk/KDE/kdelibs/; revision=1038652
2009-10-21 15:01:06 +00:00
Marco Martin
7423a261dd
keep a 1 pixel border
...
svn path=/trunk/KDE/kdelibs/; revision=1038647
2009-10-21 14:48:14 +00:00
Marco Martin
9f806ddf48
decide based on the sizehint whether resize the internal widget or not
...
svn path=/trunk/KDE/kdelibs/; revision=1038632
2009-10-21 14:32:24 +00:00
Marco Martin
82317bda2d
take in consideration the size hint of the internal widget for the own
...
sized hint
svn path=/trunk/KDE/kdelibs/; revision=1038245
2009-10-20 21:37:46 +00:00
Marco Martin
b2bb69732a
provide the Animator::registerScrollingManager(qgraphicsidget) function.
...
the animator creates a kineticscroll and associates it with the widget.
in this way we can use kineticscroll outside of libplasma with a single
call.
svn path=/trunk/KDE/kdelibs/; revision=1037751
2009-10-19 22:10:25 +00:00
Marco Martin
89e73cecd2
animate the highlight with the new animation framework. we got a glow
...
item called FocusIndicaotr, it's private for now and probably it should
remain so
svn path=/trunk/KDE/kdelibs/; revision=1037733
2009-10-19 21:13:54 +00:00
Aaron J. Seigo
211a206277
the count is always 1 larger than the index, so > is not enough
...
svn path=/trunk/KDE/kdelibs/; revision=1036289
2009-10-16 22:41:39 +00:00
Marco Martin
4191b96c6d
force to invalidate the size hint when the inner widget size changes
...
svn path=/trunk/KDE/kdelibs/; revision=1036087
2009-10-16 14:53:11 +00:00
Marco Martin
31cb2730ea
size hint is the inner widget size
...
svn path=/trunk/KDE/kdelibs/; revision=1036073
2009-10-16 14:10:55 +00:00
Marco Martin
1d611eac34
initialize the layout as soon as possible, crash--?
...
svn path=/trunk/KDE/kdelibs/; revision=1036032
2009-10-16 11:14:46 +00:00
Marco Martin
451cf321a2
forgotten to commit before: migrate to the new api
...
svn path=/trunk/KDE/kdelibs/; revision=1035760
2009-10-15 20:12:01 +00:00
Aaron J. Seigo
0d90362d1a
* lump all actions over the max at the end
...
* don't use magic numbers but the enum
* don't leak icon items when the action is destroyed
svn path=/trunk/KDE/kdelibs/; revision=1035440
2009-10-15 02:39:38 +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
e6661712a8
don't reset to zero the position on scrollbar move
...
svn path=/trunk/KDE/kdelibs/; revision=1034699
2009-10-13 10:10:08 +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
38884ccd1a
now the api is similar to what webkit offers and horizontal and vertical
...
scroll is done in pixels and in a single pass.
we have 3 properties in widgets that wants to support scroll:
scrollPosition
viewportGeometry
constentsSize
svn path=/trunk/KDE/kdelibs/; revision=1032821
2009-10-08 16:04:56 +00:00
Giulio Camuffo
86cffbab45
suppress some runtime complaints of QGraphicsGridLayout
...
svn path=/trunk/KDE/kdelibs/; revision=1032423
2009-10-07 19:27:01 +00:00
Aaron J. Seigo
947e2cd632
show() causes an implicit animation which will emit target[Item]Reached signals; this makes the first show smoother in the device notifier
...
svn path=/trunk/KDE/kdelibs/; revision=1032154
2009-10-07 04:16:39 +00:00
Adenilson Cavalcanti Da Silva
e749331979
Using the viewport/content size ratio to inform the geometry.
...
It ensures that at least the page will scroll correctly (i.e. advancing
just 1 page down) in webpages that are too long (e.g. kdeplanet).
svn path=/trunk/KDE/kdelibs/; revision=1032052
2009-10-06 18:31:47 +00:00
Adenilson Cavalcanti Da Silva
3d33d3f28f
Factoring the ratio of widget/viewport size when doing the
...
kinetic scrolling.
This will help to have a proper scrolling in cases that the
viewport is several times smaller than the widget size.
svn path=/trunk/KDE/kdelibs/; revision=1032023
2009-10-06 16:58:42 +00:00
Aaron J. Seigo
bd5359ca8f
setTarget -> targetReached, setTargetItem -> targetItemReached
...
svn path=/trunk/KDE/kdelibs/; revision=1032017
2009-10-06 16:44:23 +00:00
Aaron J. Seigo
70b3847210
make moving between items with different parents work a bit better ;)
...
svn path=/trunk/KDE/kdelibs/; revision=1031762
2009-10-05 22:44:08 +00:00
Aaron J. Seigo
6ccaa814b3
* add getter for targetItem
...
* add property for targetItem
svn path=/trunk/KDE/kdelibs/; revision=1031688
2009-10-05 18:59:21 +00:00
Marco Martin
0e59e70583
move correctly the pages at the first animation
...
svn path=/trunk/KDE/kdelibs/; revision=1031682
2009-10-05 18:40:58 +00:00
Aaron J. Seigo
e4f20fdba8
* add a targetReached(QRectF) signal for completeness
...
* emit the targetReached signals in all cases that the target is reached, not just when there is an animation
* only emit targetReached(QGrahpicsItem*) when there is a target item
* provide a getter for the target rect
* register setTarget as a property
svn path=/trunk/KDE/kdelibs/; revision=1031661
2009-10-05 18:00:06 +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
Aaron J. Seigo
23d1402a5d
--compile_warnings;
...
svn path=/trunk/KDE/kdelibs/; revision=1031625
2009-10-05 16:08:31 +00:00
Giulio Camuffo
81b39250cb
added ensureItemVisible(QGraphicsItem*)
...
svn path=/trunk/KDE/kdelibs/; revision=1031380
2009-10-04 20:08:37 +00:00
Igor Trindade Oliveira
2147d8e090
put return return d->widget->boundingRect(); in ScrollWidget::viewport() and everything starts to work -perfectly-
...
notmart
svn path=/trunk/KDE/kdelibs/; revision=1030979
2009-10-03 16:51:52 +00:00
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