Commit Graph

1299 Commits

Author SHA1 Message Date
Lasse Liehu
d0e8d977b4 ignore() key press event for keys not handled
(cherry picked from commit 6e208cf0cc60d3e7016a3bbdbb6dfd3c1b105186)
2011-02-10 21:05:34 +02:00
Marco Martin
c158ebbaa4 realign the widget if it's resized
svn path=/trunk/KDE/kdelibs/; revision=1216378
2011-01-22 22:13:42 +00:00
Marco Martin
312bdcf909 if the theme wants to paint with the system style just let the proxy paint
svn path=/trunk/KDE/kdelibs/; revision=1216324
2011-01-22 17:55:14 +00:00
Marco Martin
8e152270ce set a custom geometry also in init, not only when the size doesn't change, because it can happen that the size will never change (so the focusindicator staying at the wrong size)
svn path=/trunk/KDE/kdelibs/; revision=1214258
2011-01-13 20:00:33 +00:00
Alex Merry
54ad0622e7 Simplify an if-else statement in the tabbar - d->tabBarShown makes the else if condition obsolete
svn path=/trunk/KDE/kdelibs/; revision=1212398
2011-01-06 20:50:09 +00:00
Alex Merry
082ddcb95a Don't add the tabbar to the layout twice, or try to remove it twice.
BUG: 258867


svn path=/trunk/KDE/kdelibs/; revision=1212395
2011-01-06 20:33:56 +00:00
Marco Martin
244ec458f8 don't handle wheel events in the event filter, let any widget that wants to steal it do so
seems to have a more natural behaviour

svn path=/trunk/KDE/kdelibs/; revision=1212343
2011-01-06 15:30:55 +00:00
Marco Martin
ec6d137012 use smooth transformation for the pressed effect: it's used rarely enough to not pose too much performance issues
BUG:262128

svn path=/trunk/KDE/kdelibs/; revision=1212069
2011-01-05 16:41:06 +00:00
Aaron J. Seigo
510d4d57a5 clearAction private slot
svn path=/trunk/KDE/kdelibs/; revision=1211028
2011-01-02 23:17:57 +00:00
Marco Martin
5fd137c064 emit clicked only on mouse release and only with left button
svn path=/trunk/KDE/kdelibs/; revision=1208161
2010-12-20 21:16:06 +00:00
Marco Martin
3ad1f7887a ignore mouse press as well if isn't possible to flick
svn path=/trunk/KDE/kdelibs/; revision=1207046
2010-12-16 17:39:59 +00:00
Marco Martin
e2f5428044 limit the rate of wheel events to 50 msecs.
this makes the scroll widget not getting mad with a touchpad scroll, that spits a ton of subsequent wheel events

svn path=/trunk/KDE/kdelibs/; revision=1207045
2010-12-16 17:38:41 +00:00
Marco Martin
9269fcb7a3 ignore wheel events if it is not possible to scroll
BUG:256073

svn path=/trunk/KDE/kdelibs/; revision=1207036
2010-12-16 17:11:09 +00:00
Marco Martin
8c4c8b877d add sliderMoved()
svn path=/trunk/KDE/kdelibs/; revision=1205511
2010-12-11 10:53:28 +00:00
Marco Martin
5d9766f6c1 break; in the switch,
crash--

svn path=/trunk/KDE/kdelibs/; revision=1202309
2010-11-30 12:04:44 +00:00
Davide Bettio
d8546805e5 Display applet context menu when the label hasn't any context menu to show. It makes sense to show a context menu only when the text can be selected or when there is a link.
reviewboard: http://reviewboard.kde.org/r/6009/

svn path=/trunk/KDE/kdelibs/; revision=1202176
2010-11-29 23:29:03 +00:00
Marco Martin
28e6398a6a hide the focus indicator if the stylesheet is not empty
svn path=/trunk/KDE/kdelibs/; revision=1202169
2010-11-29 22:30:35 +00:00
Marco Martin
07610e04ea try to remove the hardcoded size hint of the tabbar proxy widget.. the Qt bug that it was masking should be gone now
svn path=/trunk/KDE/kdelibs/; revision=1202100
2010-11-29 17:08:52 +00:00
Marco Martin
1d9da0068e fix behaviour of setTabBarShown
svn path=/trunk/KDE/kdelibs/; revision=1202099
2010-11-29 17:00:26 +00:00
Marco Martin
0d168b6c57 don't try to treat touch events as mose ones
crash--

svn path=/trunk/KDE/kdelibs/; revision=1200789
2010-11-25 19:30:55 +00:00
Boudewijn Rempt
3242318a93 Add config-plasma include to make the PLASMA_NO_KIO work
svn path=/trunk/KDE/kdelibs/; revision=1195104
2010-11-10 11:41:02 +00:00
Marco Martin
11d8738af4 minimum and maximum settable from javascript
svn path=/trunk/KDE/kdelibs/; revision=1194798
2010-11-09 22:16:05 +00:00
Kevin Ottens
d85c4cc7ff Include cleanup.
Based on a patch by Marijn Kruisselbrink.

svn path=/trunk/KDE/kdelibs/; revision=1194730
2010-11-09 17:22:22 +00:00
Kevin Ottens
6c56a21a41 Really don't depend on KIO, forgot that include.
svn path=/trunk/KDE/kdelibs/; revision=1194729
2010-11-09 17:22:03 +00:00
Dawit Alemayehu
086599b47a Fixed compile errors when using QT_USE_FAST_CONCATENATION and QT_USE_FAST_OPERATOR_PLUS to compile kdelibs...
svn path=/trunk/KDE/kdelibs/; revision=1194330
2010-11-08 18:14:17 +00:00
Kevin Ottens
c09422cc8c Remove deprecated symbols from the build (if KDE_NO_DEPRECATED is defined).
svn path=/trunk/KDE/kdelibs/; revision=1192863
2010-11-04 08:06:43 +00:00
Marco Martin
c251a29564 fix logic about show/hide of scrollbars
svn path=/trunk/KDE/kdelibs/; revision=1191181
2010-10-29 21:09:06 +00:00
Aaron J. Seigo
ca4e345c15 use button text for normal text, preserves theme compatibility with prior releases
svn path=/trunk/KDE/kdelibs/; revision=1191136
2010-10-29 17:25:24 +00:00
Kevin Ottens
526e700b09 Make sure it builds without KIO.
CCMAIL: notmart@gmail.com

svn path=/trunk/KDE/kdelibs/; revision=1189682
2010-10-25 15:03:54 +00:00
Marco Martin
37d302047e don't block events on text elements that have Qt::TextSelectableByMouse
svn path=/trunk/KDE/kdelibs/; revision=1189643
2010-10-25 13:37:31 +00:00
Marco Martin
6bc40f06d0 notify the current index changed
svn path=/trunk/KDE/kdelibs/; revision=1189378
2010-10-24 21:36:50 +00:00
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