Aaron Seigo
03f35f1667
use libkwindowsystem
2012-02-19 14:07:35 +01:00
David Faure
9057ce0c70
Fix compilation with the new cmake automoc stuff.
2012-02-08 23:34:07 +01:00
Stephen Kelly
b1b68adb7d
Don't use the QtGui module name in includes.
...
In Qt5, many of them are moved to QtWidgets, so this is the only
way to be source compatible with both Qt 4 and Qt 5.
2012-02-02 10:35:53 +01:00
Stephen Kelly
8d37df4b8f
Remove moc includes that can be omitted.
...
Mostly these are "<name>.moc" style includes which are incorrect
compared to qmake and cmake automoc behaviour.
2012-01-31 22:44:36 +01:00
Aaron Seigo
8b09ffb51f
Merge remote branch 'origin/KDE/4.7' into frameworks
...
Conflicts:
plasma/corona.cpp
plasma/packagemetadata.cpp
plasma/private/packages.cpp
plasma/theme.cpp
2011-12-20 11:57:49 +01:00
Aaron Seigo
d6e06ff92d
allow controlling the resize a bit more
...
this allows e.g. popupapplet to put constraints on where the edges of the window can resize to
and react differently when the user is actively resizing the dialog.
CCBUG:227095
2011-12-16 14:57:20 +01:00
David Faure
c7ab521ee7
Merge remote-tracking branch 'origin/KDE/4.7' into origin-frameworks
...
Conflicts:
experimental/libkactivities/
plasma/applet.h
plasma/theme.cpp
staging/libkcoreaddons/src/jobs/kjob.cpp
2011-12-08 19:06:24 +01:00
Aaron Seigo
50b42f052b
use Theme consistently for compositing check
2011-12-08 12:54:28 +01:00
Aaron Seigo
fe2286c5da
remove unecessary painting
2011-12-07 14:43:07 +01:00
Aaron Seigo
90b02f3973
massive step towards QGraphicsView being separated from libplasma
...
* remove extenders (never panned out, used by exactly two components that we can find .. anywhere)
* move animations to libplasmagqv
* schedule js anims to be put into the js scriptengine
* move all QGraphicsProxyWidgets, except for IconWidget which is still used by PopupApplet, into libplasmaqgv
* create a subclass-able private class for Applet
TODO: move out icon widget, address FIXMES in graphicswidgetappletprivate.cpp and decide how to register the "right" private class for instantiation in Applet ctors
2011-11-17 14:43:37 +01:00
Aaron Seigo
d82144b609
small change that makes a huge visible difference
...
also removes the unneeded ternary op given the above if()
2011-08-16 16:26:24 +02:00
Aaron Seigo
6df8dc58dc
small change that makes a huge visible difference
...
also removes the unneeded ternary op given the above if()
2011-08-16 16:22:16 +02:00
Marco Martin
33e9192346
Merge branch 'libplasma2' into frameworks
...
Conflicts:
plasma/CMakeLists.txt
plasma/popupapplet.cpp
2011-08-12 11:45:49 +02:00
Aaron Seigo
575057e878
don't bother hiding if we're not visible
2011-08-07 01:02:11 +02:00
Aaron Seigo
cc6c04b5ba
don't bother hiding if we're not visible
2011-08-03 16:45:28 +02:00
Aaron Seigo
82eee5c3b7
avoid compiling in debug strings when compiled without debug
2011-07-29 15:46:52 +02:00
Aaron Seigo
86e6891b25
Merge branch 'plasmadialogshadows' into libplasma2
...
Conflicts:
plasma/animations/pixmaptransition.cpp
plasma/animations/rotation.cpp
2011-06-09 12:48:34 +02:00
Aaron Seigo
8f7b7cda31
shadows on dialogs
2011-06-09 12:46:25 +02:00
Aaron Seigo
7f4bd841e2
make graphicsWidget const
2011-05-20 08:10:39 +02:00
Aaron J. Seigo
a897a641df
connect to the svg's signal, not the theme's. this ensures the svg is ready for us when we check it
...
svn path=/trunk/KDE/kdelibs/; revision=1215513
2011-01-18 23:04:07 +00:00
Marco Martin
324b96e720
use a size hint
...
svn path=/trunk/KDE/kdelibs/; revision=1211733
2011-01-04 19:10:38 +00:00
Marco Martin
5cd5e30e30
remove dead code
...
svn path=/trunk/KDE/kdelibs/; revision=1211699
2011-01-04 17:20:19 +00:00
Marco Martin
4692d7f9b1
add an extra margin to let room for a possible extender scrollbar
...
svn path=/trunk/KDE/kdelibs/; revision=1211692
2011-01-04 17:05:44 +00:00
Marco Martin
e92078b1c0
set the correct margins when a dialog with an extender goes at the edge of the screen
...
svn path=/trunk/KDE/kdelibs/; revision=1211687
2011-01-04 16:53:31 +00:00
Marco Martin
698b513868
the dialog private is in its seprarate file ecause it gets accessed by popupapplet to set an applet pointer
...
in this way we can use the corona to actually find out the real desktop geometry, that doesn't fail for extended monitors like QDesktopWidget does.
BUG:257955
svn path=/trunk/KDE/kdelibs/; revision=1207416
2010-12-17 22:37:09 +00:00
Marco Martin
e04e91e9ad
disable borders near to the edge of the screen for extenders too
...
svn path=/trunk/KDE/kdelibs/; revision=1206154
2010-12-13 16:15:49 +00:00
Luboš Luňák
5de8d333bf
QWidget::setMinimumSize: (/Plasma::Dialog) Negative sizes (-1,-1) are not possible
...
svn path=/trunk/KDE/kdelibs/; revision=1166625
2010-08-22 09:06:37 +00:00
Marco Martin
2d190922f6
call addOffscreenWidget(widget) before actually embedding the widget in setGraphicsWidget(widget)
...
svn path=/trunk/KDE/kdelibs/; revision=1158454
2010-08-02 19:29:45 +00:00
Marco Martin
b8893a8044
too much classes clobbers with the Extender's private, protect d->applet behind a QWeakPointer
...
BUG:195369
BUG:232408
CCBUG:233563
BUG:239022
svn path=/trunk/KDE/kdelibs/; revision=1131248
2010-05-27 19:59:15 +00:00
Marco Martin
891594a433
remove dead code
...
svn path=/trunk/KDE/kdelibs/; revision=1129281
2010-05-21 20:59:33 +00:00
Marco Martin
7a8169685d
don't resize then move, use a single setGeometry: the window will jump around way less
...
also keep the proper edge "fixed" depending on the applet location
svn path=/trunk/KDE/kdelibs/; revision=1129214
2010-05-21 16:47:23 +00:00
Marco Martin
208d362a25
make possible to set a maximum size actually less than the deskop
...
svn path=/trunk/KDE/kdelibs/; revision=1129183
2010-05-21 14:43:28 +00:00
Marco Martin
d19118b818
limit the size of the graphicswidget to the size of the desktop
...
svn path=/trunk/KDE/kdelibs/; revision=1129153
2010-05-21 12:24:59 +00:00
Marco Martin
72931328b8
some positioning fixes that were sitting here since a while
...
svn path=/trunk/KDE/kdelibs/; revision=1126590
2010-05-14 12:44:46 +00:00
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