Commit Graph

122 Commits

Author SHA1 Message Date
Aaron J. Seigo
e96539da54 don't ignore the window flags passed in to the ctor
svn path=/trunk/KDE/kdelibs/; revision=1125895
2010-05-12 16:17:51 +00:00
Aaron J. Seigo
79d8b41bda adjustSize is not a slot, so create a private slot and use that as a relay
svn path=/trunk/KDE/kdelibs/; revision=1125281
2010-05-11 07:20:46 +00:00
Aaron J. Seigo
59409bc888 SVN_SILENT: make this easier to find when we grep for things to fix in KDE5
svn path=/trunk/KDE/kdelibs/; revision=1124322
2010-05-08 20:46:56 +00:00
Marco Martin
62f2eb46f1 delay syze sync a bit
fixes things when two operations are done subsequent, like removing a normal widget and set a qgraphicswidget

svn path=/trunk/KDE/kdelibs/; revision=1122864
2010-05-04 21:30:52 +00:00
Alessandro Diaferia
d6d1c812c0 restore cursor when entering the view
this addresses bug 234386
BUG:234386
CCMAIL:bjoern@ruberg-wegener.de

svn path=/trunk/KDE/kdelibs/; revision=1115117
2010-04-15 09:49:44 +00:00
Marco Martin
ea1e8d4b93 move the dialog on resize only it it waasn't the user resizing it manually
svn path=/trunk/KDE/kdelibs/; revision=1112886
2010-04-09 12:26:01 +00:00
Marco Martin
861c4c18c3 when one of the size hints changes, sync again the graphicswidget and the view
svn path=/trunk/KDE/kdelibs/; revision=1112684
2010-04-08 20:31:29 +00:00
Marco Martin
2cecd31fe2 move the dialog in relation to the delta of the size change when the applet localtion is bottom or right, instead of calling popupposition each time
svn path=/trunk/KDE/kdelibs/; revision=1111730
2010-04-06 15:04:33 +00:00
Marco Martin
6fc15a4687 move the popup before adjusting borders, makes it a bit less jumpy
svn path=/trunk/KDE/kdelibs/; revision=1109701
2010-03-31 19:48:22 +00:00
Marco Martin
422a8bc297 reposition wen adjusting borders: size could have changed
svn path=/trunk/KDE/kdelibs/; revision=1106721
2010-03-23 18:52:08 +00:00
Aaron J. Seigo
3e6f6ab670 This patch splits themeUpdated() into a set of methods that do the border checking and mask updating so that only the necessary work is actually done. The resize and move events now also cooperate in the scheduling of calls to checkBorders (reducing them by 50% or more during resizing). Calls to update(), which trigger full repaints, are also minimized.
svn path=/trunk/KDE/kdelibs/; revision=1104141
2010-03-16 20:40:59 +00:00
Fredrik Höglund
48c6fcbe8e Set the blur region for tooltips and dialogs.
svn path=/trunk/KDE/kdelibs/; revision=1100074
2010-03-06 18:25:24 +00:00
Marco Martin
270ffa55d5 unset the masks when they should and set overrideshadow on each window show
svn path=/trunk/KDE/kdelibs/; revision=1099654
2010-03-05 22:31:04 +00:00
Marco Martin
885b1271f4 WA_NoSystemBackground causes huge graphical glitches combined with the slidingpopups kwin effect
svn path=/trunk/KDE/kdelibs/; revision=1099566
2010-03-05 19:04:09 +00:00
Aaron J. Seigo
3dff1d2d99 don't set the cursor if alt is held
BUG:228959

svn path=/trunk/KDE/kdelibs/; revision=1098440
2010-03-03 18:12:33 +00:00
Marco Martin
fd7b4fa730 a bit smarter policy to enable/disable borders:
-if the dialog is far from the panel, don't disable the corresponding border
-if the panel is smaller then the dialog, don't disable the corresponding border


svn path=/trunk/KDE/kdelibs/; revision=1083523
2010-02-01 12:02:20 +00:00
Marco Martin
26b361824d apply the proper mask when composite is off
svn path=/trunk/KDE/kdelibs/; revision=1074120
2010-01-13 13:43:18 +00:00
Aaron J. Seigo
e7b129bea3 since the QGrahicsWidget we're given originates from the outside, don't assume it'll stay around nicely; use a QWeakPointer to track it
svn path=/trunk/KDE/kdelibs/; revision=1073410
2010-01-12 08:11:27 +00:00
Aaron J. Seigo
40b3e0bed5 allow users of Dialog to sync to the widget immediately
svn path=/trunk/KDE/kdelibs/; revision=1073291
2010-01-11 22:52:08 +00:00
Marco Martin
d6dd4ae24a use the overrideMask window effect
svn path=/trunk/KDE/kdelibs/; revision=1070728
2010-01-06 16:00:53 +00:00
Marco Martin
429b000af3 use windowTranslucencyEnabled() instead of caching the value frm kwindowsystem
svn path=/trunk/KDE/kdelibs/; revision=1069170
2010-01-02 20:48:44 +00:00
Marco Martin
6d3387453d set a rectangular mask when composite is enabled, much faster
svn path=/trunk/KDE/kdelibs/; revision=1069040
2010-01-02 16:11:32 +00:00
Marco Martin
edc2fccdf4 don't get bigger than the desktop area, makes the notifications problem slightly less worse
svn path=/trunk/KDE/kdelibs/; revision=1067535
2009-12-29 18:58:10 +00:00
Marco Martin
8e967abc2d avoid view sync more than every 150 msecs, avoids cpu hogging and displaying garbage
BUG:206946

svn path=/trunk/KDE/kdelibs/; revision=1062972
2009-12-16 14:19:10 +00:00
Giulio Camuffo
a35e7394c3 adds aspect ratio modes to Dialog; PopupApplet sets the right one for its dialog
svn path=/trunk/KDE/kdelibs/; revision=1051074
2009-11-18 20:11:03 +00:00
Aaron J. Seigo
def1a43dc1 always resize the graphics widget when the dialog does, unless we're resizing the dialog because the graphics widget did
svn path=/trunk/KDE/kdelibs/; revision=1047713
2009-11-11 21:45:45 +00:00
Aaron J. Seigo
2f02f25bda set complimentary expand corners when we run out of space on one edge
BUG:214052

svn path=/trunk/KDE/kdelibs/; revision=1047679
2009-11-11 19:43:43 +00:00
Aaron J. Seigo
f9b2ad74fc api docs and note an API wart that should be fixed in the next BIC release
svn path=/trunk/KDE/kdelibs/; revision=1038110
2009-10-20 16:37:25 +00:00
Marco Martin
189618d2e4 look up in the parent hyerarchy rather than parentItem
svn path=/trunk/KDE/kdelibs/; revision=1033106
2009-10-09 13:40:33 +00:00
Marco Martin
d8e084c77e be based also on the widget parent applet location for removing the proper borders
svn path=/trunk/KDE/kdelibs/; revision=1032273
2009-10-07 13:04:09 +00:00
Aaron J. Seigo
b5d5a9a924 remove a bunch of dead code and some dptr member vars thanks to reliance on the kwin effects
svn path=/trunk/KDE/kdelibs/; revision=1022539
2009-09-12 00:18:26 +00:00
Aaron J. Seigo
1e6aaec27f extenders into a subdir
svn path=/trunk/KDE/kdelibs/; revision=1019570
2009-09-03 21:53:56 +00:00
Marco Martin
b95b9cfd6d add an overloaded member that uses a qwidget and animates always from ad
edge of the widget: saves tons of code

svn path=/trunk/KDE/kdelibs/; revision=1003631
2009-07-28 13:50:48 +00:00
Aaron J. Seigo
4dd1cc887b it's not really setting the window to slide, but saying "slide this window"
svn path=/trunk/KDE/kdelibs/; revision=1003321
2009-07-28 01:33:31 +00:00
Marco Martin
8ecfc801de pass the offset in the api, rather that trying to do magic with
qdesktopwidget

svn path=/trunk/KDE/kdelibs/; revision=1003244
2009-07-27 21:53:36 +00:00
Marco Martin
6a60d6cf75 WindowEffects namespace: here will go functions used to set atoms on
windows to trigger kwin effects, without having t use xlibs directly
from the rest of the code

svn path=/trunk/KDE/kdelibs/; revision=1002670
2009-07-26 18:58:27 +00:00
Marco Martin
ab6124c2a6 use the new _KDE_SLIDE atom to make popups use a sliding animation
svn path=/trunk/KDE/kdelibs/; revision=1001605
2009-07-23 19:08:06 +00:00
Aaron J. Seigo
8a4dc5460d avoid calling getMargins twice when not necessary
svn path=/trunk/KDE/kdelibs/; revision=979113
2009-06-08 23:33:10 +00:00
Aaron J. Seigo
25b34778ce standard naming
svn path=/trunk/KDE/kdelibs/; revision=976575
2009-06-02 05:49:31 +00:00
Marco Martin
fd1a5a98fc move the dialog to make it still look attached to the panel/screen edge
when its size is synced with the graphicswidget one
BUG:193100

svn path=/trunk/KDE/kdelibs/; revision=969468
2009-05-18 12:36:19 +00:00
Marco Martin
7b93ddbc4c mess with borders only if the dialog is visible fixes the panel
controller options dialog appearance

svn path=/trunk/KDE/kdelibs/; revision=966571
2009-05-11 12:08:29 +00:00
Andreas Hartmetz
b3bdde3483 make the compiler happy on ARM: with qreal==float the compiler is not sure which qFuzzyCompare to use otherwise.
svn path=/trunk/KDE/kdelibs/; revision=964126
2009-05-06 02:54:47 +00:00
Aaron J. Seigo
3fd3c6bb37 --noise;
svn path=/trunk/KDE/kdelibs/; revision=959958
2009-04-27 16:33:15 +00:00
Aaron J. Seigo
f904ed3fac some small tweaks during usage tonight
svn path=/trunk/KDE/kdelibs/; revision=954626
2009-04-16 05:29:16 +00:00
Aaron J. Seigo
81cc419de6 actually show when not animating; faster show when animating
svn path=/trunk/KDE/kdelibs/; revision=954620
2009-04-16 04:33:55 +00:00
Aaron J. Seigo
406a0fac5f animated shows as well
svn path=/trunk/KDE/kdelibs/; revision=954617
2009-04-16 04:19:03 +00:00
Aaron J. Seigo
3919fe141a support animated hiding
svn path=/trunk/KDE/kdelibs/; revision=954610
2009-04-16 03:19:02 +00:00
Aaron J. Seigo
fe02bd3735 "widget" is a QGraphicsWidget, and since we have other widgets around, refer to it as something more obvious
svn path=/trunk/KDE/kdelibs/; revision=951375
2009-04-09 04:51:51 +00:00
Aaron J. Seigo
b5c6c9c817 * update the borders before adjusting the view in the move event so that we have the right borders (fixes misplaced contents in taskbar popups on first show)
* sceneBoundingRect fixes

svn path=/trunk/KDE/kdelibs/; revision=951362
2009-04-09 03:18:24 +00:00
Marco Martin
ce6ac2d4d3 fix extenders appearance broken in the last commit
svn path=/trunk/KDE/kdelibs/; revision=939772
2009-03-15 17:31:19 +00:00