Aaron J. Seigo
bea0aaed50
set up the theming in IconWidgetPrivate::init() instead of its ctor as that ends up causing a call to changeEvent, and so if call from the private class' ctor the d member of IconWidget isn't assigned (IconWidgetPrivate is still being constructed) and causes a crash
...
svn path=/trunk/KDE/kdelibs/; revision=1188698
2010-10-23 01:44:37 +00:00
Aaron J. Seigo
b78c8c842a
missing dptr slot declarations
...
svn path=/trunk/KDE/kdelibs/; revision=1188697
2010-10-23 01:37:21 +00:00
Ingomar Wesp
6203d3795b
Minor clean-up.
...
svn path=/trunk/KDE/kdelibs/; revision=1188687
2010-10-23 00:10:45 +00:00
Ingomar Wesp
f7d405546e
- Add support for constraints to sizeHint.
...
- Remove unused QStyleOptionGraphicsItem* parameter from elidedText and
layoutText.
svn path=/trunk/KDE/kdelibs/; revision=1188672
2010-10-22 22:28:03 +00:00
Aaron J. Seigo
b4df2cec9b
fix includes
...
svn path=/trunk/KDE/kdelibs/; revision=1188639
2010-10-22 19:54:40 +00:00
David Faure
a48ae5b0d8
Fix compilation with gcc < 4.5
...
svn path=/trunk/KDE/kdelibs/; revision=1188570
2010-10-22 16:55:46 +00:00
Marco Martin
4dd1c28b6d
fix the wreckage caused by last commit
...
bad Aaron, no cookie :)
can you check if those changes make sense upon what your patch ws supposed to be?
CCMAIL:aseigo@kde.org
svn path=/trunk/KDE/kdelibs/; revision=1188445
2010-10-22 12:29:35 +00:00
Aaron J. Seigo
a793185b21
consolidate all the theming (palette, fonts) code for widgets into a private interface: ThemeWidgetInterface. have the relevant *Private classes inherit from it and all the tricky logic is now in one place and consistent.
...
svn path=/trunk/KDE/kdelibs/; revision=1188314
2010-10-22 00:25:17 +00:00
Marco Martin
22d9baccef
use KIO to access the remote imports
...
svn path=/trunk/KDE/kdelibs/; revision=1188124
2010-10-21 13:18:50 +00:00
Marco Martin
1163aad815
use KIO::AccessManager again, be careful on those kind of regressions
...
svn path=/trunk/KDE/kdelibs/; revision=1188121
2010-10-21 13:12:29 +00:00
Marco Martin
87db9df855
immediately create the engine, so it can be messed with it before actually loading a file
...
svn path=/trunk/KDE/kdelibs/; revision=1187951
2010-10-20 20:53:55 +00:00
Aaron J. Seigo
021d8e4823
* don't set the font on the native widget in change events
...
* don't set the palette on the native widget in change events
* reset the value of customFont when it is set specifically because !customFont (allowing future theme changes to take effect as a result)
svn path=/trunk/KDE/kdelibs/; revision=1187721
2010-10-20 10:07:40 +00:00
Marco Martin
6907acbd11
use imports from the KDE plugin dir, since we can't relay on plasma imports being installed on the systemwide qt imports dir
...
svn path=/trunk/KDE/kdelibs/; revision=1186518
2010-10-16 18:55:55 +00:00
Marco Martin
f49d3bc29b
don't crash on parse error
...
svn path=/trunk/KDE/kdelibs/; revision=1186287
2010-10-15 16:24:12 +00:00
Kevin Ottens
c0f66faad7
Allow to build libplasma without KIO. Only issue is that the
...
copying/moving/removal of folders is defunct (so is the package
install/uninstall).
svn path=/trunk/KDE/kdelibs/; revision=1185865
2010-10-14 12:27:15 +00:00
Aaron J. Seigo
4c5f141992
don't set the native widget's palette. since this now works in QGraphicsProxyWidget, it now causes new problems: setting the palette on the widget (not the nativeWidget()) doesn't work for users of Plasma::* widgets. love it when work arounds to bugs cause new bugs once the original bugs are fixed upstream. ;)
...
svn path=/trunk/KDE/kdelibs/; revision=1185467
2010-10-13 13:16:35 +00:00
Marco Martin
395cd8e146
FEATURE: new property: overflowBordersVisible
...
it can enable/disable the painting of the borders when the inner widget is bigger then the viewport
svn path=/trunk/KDE/kdelibs/; revision=1184911
2010-10-11 19:59:47 +00:00
Marco Martin
b6624d3fe1
remove all margins, if somebody wants any, just add them into the mainWidget contentsMargins
...
svn path=/trunk/KDE/kdelibs/; revision=1184900
2010-10-11 19:01:42 +00:00
Laurent Montel
dd256bfe92
not necessary to test it before delete it
...
svn path=/trunk/KDE/kdelibs/; revision=1183974
2010-10-08 21:57:37 +00:00
Laurent Montel
dc6633a0d5
Fix includes
...
svn path=/trunk/KDE/kdelibs/; revision=1183927
2010-10-08 18:21:31 +00:00
Marco Martin
53f9fb56ed
export symbol of declarative widget
...
svn path=/trunk/KDE/kdelibs/; revision=1183894
2010-10-08 15:47:02 +00:00
Marco Martin
90165f119a
move into libplasma
...
svn path=/trunk/KDE/kdelibs/; revision=1183873
2010-10-08 14:48:03 +00:00
Marco Martin
d1032bc8f5
add default parameter of parent=0
...
this -should- be BC iirc
svn path=/trunk/KDE/kdelibs/; revision=1183393
2010-10-07 10:18:03 +00:00
Zack Rusin
9d89e5519a
Fix transformation artifacts.
...
The widget does have contents (even if it's inherited) which
was confusing graphicsview and causing wonky artifacts on
transformations of all widgets that were inside Plasma::ScrollWidget.
svn path=/trunk/KDE/kdelibs/; revision=1179203
2010-09-24 20:36:00 +00:00
Giulio Camuffo
72b4a73b5d
make the tabbar resize vertically when there are no tabs too
...
svn path=/trunk/KDE/kdelibs/; revision=1179179
2010-09-24 18:42:00 +00:00
Marco Martin
cdc70740bd
set the border size to 0
...
if it will work well enough with existing applications, the border calculation will be just removed
svn path=/trunk/KDE/kdelibs/; revision=1179099
2010-09-24 14:34:40 +00:00
Marco Martin
01838f46b8
signalplotter methods are invokable
...
svn path=/trunk/KDE/kdelibs/; revision=1178797
2010-09-23 22:03:21 +00:00
Aaron J. Seigo
521bc968fd
clean ups, share the FrameSvg object
...
svn path=/trunk/KDE/kdelibs/; revision=1178368
2010-09-22 20:47:35 +00:00
Aaron J. Seigo
938880140b
share the FrameSvg with the focus indicator
...
svn path=/trunk/KDE/kdelibs/; revision=1178172
2010-09-22 09:03:41 +00:00
Aaron J. Seigo
dc9d3f5e50
* share the FrameSvg with the FocusIndicator
...
* get the name of the prefixes right
svn path=/trunk/KDE/kdelibs/; revision=1178170
2010-09-22 09:02:09 +00:00
Marco Martin
8e5a2533b5
save the state of tabBarShown: prevents tabbar to reappear when it shouldn't
...
svn path=/trunk/KDE/kdelibs/; revision=1177838
2010-09-21 12:19:43 +00:00
Marco Martin
7d00f6c756
fix takeTab behaviour
...
svn path=/trunk/KDE/kdelibs/; revision=1177582
2010-09-20 16:27:05 +00:00
Aaron J. Seigo
9300be394e
setting it directly works as well, and doesn't require dipping into QCoreApplication's API
...
svn path=/trunk/KDE/kdelibs/; revision=1175312
2010-09-14 17:41:10 +00:00
Aaron J. Seigo
1fc68e3ef9
IMPROVEMENT: add a clicked() slot (which just backends on to animateClick()), and make setChecked a slot like it is in the native widget
...
svn path=/trunk/KDE/kdelibs/; revision=1175311
2010-09-14 17:34:31 +00:00
Aaron J. Seigo
e4c6d2e92b
work around a bug in QGraphicsProxyWidget where, for whatever reason, the line edit isn't getting a focusInEvent when the QGraphicsProxyWidget does. normally i don't like working around bugs like this, but QGraphicsView seems to be bitrotting.
...
CCMAIL:menard@kde.org
svn path=/trunk/KDE/kdelibs/; revision=1175309
2010-09-14 17:33:26 +00:00
Aaron J. Seigo
a74c0a9706
syncToAction declaration
...
svn path=/trunk/KDE/kdelibs/; revision=1173939
2010-09-10 22:31:58 +00:00
Aaron J. Seigo
6f0631d700
taking an item also requires re-setting the parent
...
BUG:250420
svn path=/trunk/KDE/kdelibs/; revision=1173601
2010-09-09 20:12:03 +00:00
Andreas Hartmetz
baa2c64f61
Only call into the larger framework when we're fully initialized; the framework called back into ItemBackground when member variables were not initialized, causing valgrind warnings.
...
svn path=/trunk/KDE/kdelibs/; revision=1171385
2010-09-03 16:39:37 +00:00
Aaron J. Seigo
6aa1aab52b
make the checks consistent with the rest of the methods: check the count of d->pages, not the tabwidget proxy; use value() instead of [] as it is protected against OOB indexes
...
BUG:248976
svn path=/trunk/KDE/kdelibs/; revision=1168059
2010-08-26 01:22:45 +00:00
Aaron J. Seigo
cc942a894c
IMPROVEMENT: automatically repaint when the svg changes beneath it
...
svn path=/trunk/KDE/kdelibs/; revision=1167531
2010-08-24 20:40:43 +00:00
Marco Martin
d05a127b4a
connect to the signal not to a slot
...
svn path=/trunk/KDE/kdelibs/; revision=1166078
2010-08-20 19:01:59 +00:00
Marco Martin
44d2c0b531
forward urlchaged signal
...
back forward reload slots
to make it more usable from javascript and to have the api simiar to qgraphicswebview
svn path=/trunk/KDE/kdelibs/; revision=1166067
2010-08-20 18:19:11 +00:00
Vitor Boschi da Silva
f2a2d34a48
fixes the reorderPlots apidox
...
svn path=/trunk/KDE/kdelibs/; revision=1165477
2010-08-19 13:08:49 +00:00
Marco Martin
0d6a38b954
add Qt::TextShowMnemonic when painting text
...
svn path=/trunk/KDE/kdelibs/; revision=1164885
2010-08-17 21:04:52 +00:00
Marco Martin
bc6d40852b
animate hide of the focus indicator when a button is pressed
...
svn path=/trunk/KDE/kdelibs/; revision=1164481
2010-08-16 21:16:53 +00:00
Aaron J. Seigo
d6b2d44ae1
pass through mouse events if nobody is connected to us
...
svn path=/trunk/KDE/kdelibs/; revision=1161817
2010-08-10 21:44:55 +00:00
Aaron J. Seigo
fa1350c34c
implement the setter
...
svn path=/trunk/KDE/kdelibs/; revision=1161802
2010-08-10 21:07:28 +00:00
Aaron J. Seigo
84233ee261
add missing API that is asked for often enough
...
svn path=/trunk/KDE/kdelibs/; revision=1161784
2010-08-10 19:59:34 +00:00
Marco Martin
b968f22439
neither the scrollwidget nor its scrollingwidget child paints by themselves
...
svn path=/trunk/KDE/kdelibs/; revision=1158783
2010-08-03 18:43:07 +00:00
Aaron J. Seigo
87a29d9efc
createStandardContextMenu can return null; guard against that
...
BUG:246018
svn path=/trunk/KDE/kdelibs/; revision=1156698
2010-07-29 14:49:06 +00:00
Aurélien Gâteau
beca8835e1
Set page step of scrollbars
...
This way the size of the scrollbar slider represents the visible portion of
the scrolled widget.
svn path=/trunk/KDE/kdelibs/; revision=1151665
2010-07-19 09:59:59 +00:00
Aaron J. Seigo
78119ec9f4
SVN_SILENT: tidy
...
svn path=/trunk/KDE/kdelibs/; revision=1150752
2010-07-16 17:04:45 +00:00
Jacopo De Simoi
7879ff137c
Do not paint twice most Plasma::Label out there!
...
svn path=/trunk/KDE/kdelibs/; revision=1150751
2010-07-16 17:04:37 +00:00
Marco Martin
ab688e2471
try to disable ItemSendsGeometryChanges, if won't cause problems, it could be put in several places in plasma
...
svn path=/trunk/KDE/kdelibs/; revision=1150355
2010-07-15 19:11:29 +00:00
Marco Martin
1d1e382b19
no more window icons
...
svn path=/trunk/KDE/kdelibs/; revision=1149634
2010-07-13 21:49:01 +00:00
Marco Martin
748d85362c
set null icons on the widgets after been put in a proxy.
...
would hopefully cause a bit less pixmap usage
svn path=/trunk/KDE/kdelibs/; revision=1149631
2010-07-13 21:32:07 +00:00
Giulio Camuffo
8002b2415b
add support for adding two qgw on the sides of the tabbar
...
svn path=/trunk/KDE/kdelibs/; revision=1148951
2010-07-12 08:29:49 +00:00
Giulio Camuffo
93a955c984
do the proper animation when deleting the current tab
...
svn path=/trunk/KDE/kdelibs/; revision=1147189
2010-07-07 15:17:48 +00:00
Davide Bettio
3cf1e32282
Fixes the year toolbutton hover bug in Plasma::Calendar.
...
svn path=/trunk/KDE/kdelibs/; revision=1147175
2010-07-07 14:24:38 +00:00
Marco Martin
506a22400c
connect to repaintneeded, tat will be emitted when the proper margins have been recalculated
...
svn path=/trunk/KDE/kdelibs/; revision=1142402
2010-06-24 20:52:14 +00:00
Marco Martin
bc38bec0c7
ensure the main widget is visible after its resize
...
CCBUG:226429
svn path=/trunk/KDE/kdelibs/; revision=1140801
2010-06-21 14:56:37 +00:00
Marco Martin
79e61661e7
stop animations when the inner widget spontaneously resize
...
it should fix 226429 and a very similar issue in the netbook, please test :)
CCBUG:226429
svn path=/trunk/KDE/kdelibs/; revision=1140731
2010-06-21 12:20:48 +00:00
Marco Martin
1f1d59fa4d
ensure to never filter pout events from our scrollbaars
...
svn path=/trunk/KDE/kdelibs/; revision=1138783
2010-06-16 18:47:00 +00:00
Marco Martin
b8342b9412
fix the animation
...
svn path=/trunk/KDE/kdelibs/; revision=1138778
2010-06-16 18:00:38 +00:00
Marco Martin
6e51a2bc2e
fix text cutting here too
...
BUG:241330
svn path=/trunk/KDE/kdelibs/; revision=1136835
2010-06-10 21:42:26 +00:00
Andreas Hartmetz
c7b2aa9134
Compile, and use the usual spacing between operators
...
svn path=/trunk/KDE/kdelibs/; revision=1136794
2010-06-10 19:05:16 +00:00
Nicolas Lécureuil
c40ea8e691
Fix pushbutton text
...
BUG: 192988
svn path=/trunk/KDE/kdelibs/; revision=1136786
2010-06-10 18:05:00 +00:00
Marco Martin
a5dc1e58fd
correctly resize the svg element
...
svn path=/trunk/KDE/kdelibs/; revision=1136012
2010-06-08 17:16:01 +00:00
Marco Martin
5b2983c17e
animate from the current value, not from 0
...
BUG:231292
svn path=/trunk/KDE/kdelibs/; revision=1135492
2010-06-07 12:50:06 +00:00
Aaron J. Seigo
89efdef96c
bounds checks
...
BUG:240724
svn path=/trunk/KDE/kdelibs/; revision=1134602
2010-06-04 17:20:57 +00:00
Marco Martin
935e4cb57c
don't draw the background if the state is not hover or pressed
...
BUG:240570
svn path=/trunk/KDE/kdelibs/; revision=1134320
2010-06-03 22:04:55 +00:00
Marco Martin
7aa44c8d93
this return is wrong
...
svn path=/trunk/KDE/kdelibs/; revision=1134141
2010-06-03 14:16:03 +00:00
Aaron J. Seigo
bbc72390b9
only capture the left clicks
...
CCBUG:240215
svn path=/trunk/KDE/kdelibs/; revision=1133494
2010-06-01 20:42:24 +00:00
Aaron J. Seigo
ff45696e8b
if we have a popup associated with our icon, show it
...
BUG:240265
svn path=/trunk/KDE/kdelibs/; revision=1133021
2010-05-31 22:42:51 +00:00
Aaron J. Seigo
30b2a10d57
yes, that makes a bit more sense ;)
...
svn path=/trunk/KDE/kdelibs/; revision=1130605
2010-05-25 19:43:14 +00:00
Aaron J. Seigo
6db772c0db
--compilerWarnings;
...
svn path=/trunk/KDE/kdelibs/; revision=1130580
2010-05-25 18:18:26 +00:00
Marco Martin
c7e7ea0f6d
expanding size policy in the pages seems to work better (prefferred is still the parent widget)
...
svn path=/trunk/KDE/kdelibs/; revision=1130262
2010-05-24 21:20:33 +00:00
Marco Martin
7dc106086c
export the clickmessage property
...
svn path=/trunk/KDE/kdelibs/; revision=1130077
2010-05-24 11:45:46 +00:00
Aaron J. Seigo
9a1a6a671a
should be protected (the method it is reimplementing is protected), but since it was screwed up like this in a release, needs to go back. meh.
...
svn path=/trunk/KDE/kdelibs/; revision=1130006
2010-05-24 07:37:54 +00:00
Marco Martin
05c9cab404
paint labels in text color if not manually set
...
svn path=/trunk/KDE/kdelibs/; revision=1129448
2010-05-22 12:49:25 +00:00
Marco Martin
5f04930024
if an invalid svg was set, return an empty string as svg()
...
svn path=/trunk/KDE/kdelibs/; revision=1129430
2010-05-22 11:35:53 +00:00
Aaron J. Seigo
31fda702c4
make the clicking actually work
...
BUG:233746
svn path=/trunk/KDE/kdelibs/; revision=1129251
2010-05-21 18:53:15 +00:00
Aaron J. Seigo
2d1fe7b138
don't jiggle
...
BUG:202949
svn path=/trunk/KDE/kdelibs/; revision=1129021
2010-05-21 02:03:19 +00:00
Aaron J. Seigo
67b79a816c
--memoryLeak;
...
svn path=/trunk/KDE/kdelibs/; revision=1129020
2010-05-21 01:53:48 +00:00
Marco Martin
e0b211b52e
use KGlobalSettings::dndEventDelay()
...
svn path=/trunk/KDE/kdelibs/; revision=1128946
2010-05-20 18:45:27 +00:00
Marco Martin
3f6a5ac01a
re enable fading for long text labels
...
svn path=/trunk/KDE/kdelibs/; revision=1128895
2010-05-20 15:49:05 +00:00
Marco Martin
913d891b8a
the widgets that accept input sets their applet status as accepting input as well.
...
it pretty ugly and duplicated code but doing it at this level is the only way to reliably set the proper status
svn path=/trunk/KDE/kdelibs/; revision=1128660
2010-05-19 21:45:08 +00:00
Aaron J. Seigo
404241f348
move this non-exported class to the private header
...
svn path=/trunk/KDE/kdelibs/; revision=1128221
2010-05-18 18:04:51 +00:00
Marco Martin
325d6a7c67
e weakpointers for the animated pages: avoids crashes when a tab gets removed and immeadiately added another one (happens when switching activity type for instance)
...
svn path=/trunk/KDE/kdelibs/; revision=1127865
2010-05-17 20:46:35 +00:00
Marco Martin
2f05f2c3fc
get rid of the old animation code and use focusindicator
...
old themes will have it without animations, but is fine since other widgets are still not animated and the old one was beyond repair
also, get rid of two private slots thankfully added just for 4.5
BUG:235069
svn path=/trunk/KDE/kdelibs/; revision=1126744
2010-05-14 19:18:05 +00:00
Marco Martin
0a4a525237
don't use anymore that pushbutton prefix nonsense
...
svn path=/trunk/KDE/kdelibs/; revision=1126667
2010-05-14 15:36:19 +00:00
Marco Martin
a27ffd0e97
use pushbutton prefix if available
...
svn path=/trunk/KDE/kdelibs/; revision=1126613
2010-05-14 13:26:52 +00:00
Marco Martin
1bbbe5f173
use focusindicator to do button shadows too (perfectly retrocompatible by the way).
...
this makes buttons be correctly aligned in layouts
svn path=/trunk/KDE/kdelibs/; revision=1126591
2010-05-14 12:45:54 +00:00
Aaron J. Seigo
6c5f292e2f
we're not checking the value, use a static_cast
...
svn path=/trunk/KDE/kdelibs/; revision=1125894
2010-05-12 16:17:33 +00:00
Marco Martin
4ab87220a3
try to be more strict when the policy is fixed:
...
the minimum and the preferred size are the same (i.e. avoid to cut away text, always)
svn path=/trunk/KDE/kdelibs/; revision=1125673
2010-05-11 22:06:17 +00:00
Marco Martin
fe9e96f8bf
reset the old icon when a mouseover occurs
...
svn path=/trunk/KDE/kdelibs/; revision=1125592
2010-05-11 19:43:19 +00:00
Aaron J. Seigo
d1263e7096
don't set the size policy to be fixed
...
BUG:181241
svn path=/trunk/KDE/kdelibs/; revision=1125260
2010-05-11 04:02:00 +00:00
Aaron J. Seigo
a6991a8417
SVI_SILENT: cleanup
...
svn path=/trunk/KDE/kdelibs/; revision=1125259
2010-05-11 03:51:22 +00:00
Marco Martin
20d58299b2
handle keypresses (but don't steal them)
...
is the last thing that was missing from kineticscrolling
svn path=/trunk/KDE/kdelibs/; revision=1124609
2010-05-09 16:57:05 +00:00
Aaron J. Seigo
56d063430e
let's try this out without our "work around Qt bugs" hack and see if Qt is now well behaved
...
svn path=/trunk/KDE/kdelibs/; revision=1124321
2010-05-08 20:45:36 +00:00
Aaron J. Seigo
fb2d1cf524
respecdt the contents rect
...
svn path=/trunk/KDE/kdelibs/; revision=1124318
2010-05-08 20:43:51 +00:00
Marco Martin
6dedeb57f6
port the multitouch part to scrollwidget:
...
unfortunately i have no way to test it right now, but will make possible to delete kineticscroll and deprecate all the corresponding functions
svn path=/trunk/KDE/kdelibs/; revision=1123940
2010-05-07 12:09:48 +00:00
Marco Martin
cbabd3b5cf
set the flag in the proper place
...
svn path=/trunk/KDE/kdelibs/; revision=1123756
2010-05-06 20:48:10 +00:00
Marco Martin
b917c7d14d
don't proxy the popup
...
svn path=/trunk/KDE/kdelibs/; revision=1123754
2010-05-06 20:31:18 +00:00
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