Commit Graph

1097 Commits

Author SHA1 Message Date
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