Commit Graph

295 Commits

Author SHA1 Message Date
Torgny Nyblom
8f6075ac7c include kicon.h 2012-02-10 19:59:05 +01:00
David Faure
9057ce0c70 Fix compilation with the new cmake automoc stuff. 2012-02-08 23:34:07 +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
David Faure
6a01732860 Merge remote-tracking branch 'origin/KDE/4.8' into origin-frameworks
Conflicts:
	CMakeLists.txt [version number]
	kdecore/tests/kcharsetstest.cpp [deleted]
2012-01-13 11:29:36 +01:00
Nikita Churaev
6dcaf4fe7f Fix one-pixel distance from some edges.
REVIEW: 103595
2011-12-31 11:45:02 +04: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
64373cf1da sanity check the y just as we do the x 2011-12-16 14:52:16 +01:00
Aaron Seigo
7491b9e71f appletsrc files are SimpleConfigs
cascading, let alone kdeglobals, make no sense whatsoever for them. so just skip that overhead.
2011-12-12 09:23:26 +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
Marco Martin
33e9192346 Merge branch 'libplasma2' into frameworks
Conflicts:
	plasma/CMakeLists.txt
	plasma/popupapplet.cpp
2011-08-12 11:45:49 +02:00
Matthias Fuchs
0b9f5d68d2 Correctly display popups when using multiple screens
If there are multiple screens with different resolutions or which
are not alligned the same way then it could happen that popups at
the edge were drawn (partially) offscreen.
This patch fixes that issue.

REVIEW:102118
BUG:256835
FIXED-IN:4.7.1
(cherry picked from commit c50f180f29a5d46093e0172baf71f6dcf9f23281)
2011-07-31 13:10:00 +02:00
Matthias Fuchs
d2c63bfdcd Use a qobject_cast instead of a dynamic_cast.
(cherry picked from commit f93aa997b1de14f76b6e1c8862992d590b77e776)
2011-07-31 13:09:48 +02:00
Matthias Fuchs
a18379e5d0 Correctly display popups when using multiple screens
If there are multiple screens with different resolutions or which
are not alligned the same way then it could happen that popups at
the edge were drawn (partially) offscreen.
This patch fixes that issue.

REVIEW:102118
BUG:276336
FIXED-IN:4.7.1
2011-07-31 13:04:00 +02:00
Matthias Fuchs
db3b17abf2 Use a qobject_cast instead of a dynamic_cast. 2011-07-31 13:03:49 +02:00
Aaron Seigo
011f79bca8 get rid of vestigal m_corona now 2011-07-30 20:21:15 +02:00
Aaron Seigo
296951ada0 revert change to tooltipmanager 2011-07-30 20:06:50 +02:00
Aaron Seigo
a665c17a6c remove some api duplication 2011-07-30 20:05:46 +02:00
Aaron Seigo
82eee5c3b7 avoid compiling in debug strings when compiled without debug 2011-07-29 15:46:52 +02:00
Aaron Seigo
35898d57f1 get rid of all Class:load(..) methods, use PluginLoader directrly. --apiBloat; 2011-07-19 22:04:22 +02:00
Aaron Seigo
4cc44f6a92 Merge remote-tracking branch 'origin/master' into libplasma2
Conflicts:
	plasma/package.cpp
2011-05-28 00:25:07 +02:00
Aaron Seigo
223795818f check the value before using it 2011-05-28 00:23:37 +02:00
Aaron Seigo
394979daa4 check value of view
BUG:274202
2011-05-27 15:51:20 +02:00
Aaron Seigo
38004e0f9c remove deprecated version of loadLayout 2011-05-27 12:07:12 +02:00
Aaron Seigo
e834795263 remove some empty overloads 2011-05-26 16:42:41 +02:00
Aaron Seigo
eb871eca6a don't set the QObject parent with the parentWidget if the parentWidget is null 2011-04-30 13:29:25 +02:00
Marco Martin
7f46a77e7d fix popup position
if item is in an hidden Dialog, try to find the parent applet and use it instead of item
this fixes the device notifier popup placement
BUG:234564
BUG:253858
2011-04-20 18:12:07 +02:00
Marco Martin
96d0f935c2 popup in the correct place when viewFor is hidden
when item is in an hidden Dialog, try to find the parent applet and position the popup there.
this fixes the devicenotifier popup placement
BUG:253858
BUG:234564
2011-04-20 18:12:07 +02:00
Aaron J. Seigo
56fc44f841 various cleanups
svn path=/trunk/KDE/kdelibs/; revision=1217825
2011-01-28 22:30:54 +00:00
Aaron J. Seigo
cd4e26f59f FEATURE: configurable default containment plugin name
svn path=/trunk/KDE/kdelibs/; revision=1213879
2011-01-12 00:05:13 +00:00
Aaron J. Seigo
3af6a91dd7 * give Corona a proper private header in private/
* don't create the shortcuts dialog until it is actually needed
* unify the handling of the action collections with a list of smart pointers

svn path=/trunk/KDE/kdelibs/; revision=1213847
2011-01-11 20:45:24 +00:00
Marco Martin
d41c2a2b54 set corona stickyFocus property to true.
This means that clicking on an inactive widget doesn't reset the focus, done for 2 reasons:
* consistence: same behaviour as QWidgets and top level windows
* bugfix: the plasmaboard on screen keyboard now can send input to desktop widgets 


svn path=/trunk/KDE/kdelibs/; revision=1213727
2011-01-11 12:14:16 +00:00
Aaron J. Seigo
ab4e0e24d3 constify
svn path=/trunk/KDE/kdelibs/; revision=1208728
2010-12-22 23:37:56 +00:00
Aaron J. Seigo
c21986f62d provide a containmentForScreen implementation that allows adding containments for screens / desktop affinities even in spite of immutabilities
svn path=/trunk/KDE/kdelibs/; revision=1198498
2010-11-18 17:17:56 +00:00
Aaron J. Seigo
0e5e5b7c9d * be sure to set kiosk-based immutability
* don't allow external creation of containments if the corona is immutable; they won't get saved to disk anyways

svn path=/trunk/KDE/kdelibs/; revision=1196287
2010-11-12 22:51:31 +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
Chani Armitage
25d9f45583 exportLayout function to go with importLayout
also, deprecated the old importLayout in favour of one that only accepts
kconfiggroup.
CCBUG: 248386

svn path=/trunk/KDE/kdelibs/; revision=1180338
2010-09-27 18:16:43 +00:00
Aaron J. Seigo
d071b6e301 remove any stale config data to avoid accidentally merging old and existing containment configs
svn path=/trunk/KDE/kdelibs/; revision=1167946
2010-08-25 18:54:22 +00:00
Marco Martin
02faf90355 new property:
preferredToolBoxPlugin(Containment::Type)
used to decide what toolbox plugin dynamically load, only corona
implementations can decide this.

api review anyone? ;)

CCMAIL:plasma-devel@kde.org

svn path=/trunk/KDE/kdelibs/; revision=1157190
2010-07-30 12:46:22 +00:00
Marco Martin
6b864f6b96 if you map to global the position of the view, you'll get coordinates dpubled
map 0,0 instead

svn path=/trunk/KDE/kdelibs/; revision=1156165
2010-07-28 16:57:41 +00:00
Aaron J. Seigo
3a2ffb1238 call restore on new containments too
svn path=/trunk/KDE/kdelibs/; revision=1152621
2010-07-21 15:57:36 +00:00
Aaron J. Seigo
e07a9c88bb if we don't have a PlasmaView, then ask QDesktopWidget which screen it thinks we are tipping on
BUG:241278

svn path=/trunk/KDE/kdelibs/; revision=1137109
2010-06-11 17:20:29 +00:00
Aaron J. Seigo
4c3f1104b3 when initializing the applets, restore from config, then init, then flush the containment's constraints, then flush the applet's constraints. ensures that constraint events always happen after both restoration and initialization of the applet
BUG:241298

svn path=/trunk/KDE/kdelibs/; revision=1136767
2010-06-10 17:07:50 +00:00
Aaron J. Seigo
f7c28b7ebb differentiate loadLayout from importLayout by making loadLayout set what the configuration file to use is while import simply brings the data from the config file in without changing the target config file to save to for the corona. open vs import, iow.
svn path=/trunk/KDE/kdelibs/; revision=1136734
2010-06-10 15:59:53 +00:00
Aaron J. Seigo
1f0ecedca3 put all the applet restore/init code in one place so that the order of ops is more obvious when debugging
svn path=/trunk/KDE/kdelibs/; revision=1134668
2010-06-04 21:36:28 +00:00
Aaron J. Seigo
235172e42e some more data points for asraniel's charts
svn path=/trunk/KDE/kdelibs/; revision=1129278
2010-05-21 20:52:27 +00:00
Aaron J. Seigo
bdf9ddee65 split out the loadLayout into a load and an import. works well for importing the default layout, next to test it out against exported layouts to ensure the merging does indeed work
svn path=/trunk/KDE/kdelibs/; revision=1126706
2010-05-14 17:00:54 +00:00
Aaron J. Seigo
af942eaf1d this is a repeatable action
svn path=/trunk/KDE/kdelibs/; revision=1124339
2010-05-08 22:13:42 +00:00
Aaron J. Seigo
2c1d53204d SVN_SILENT: tidying
svn path=/trunk/KDE/kdelibs/; revision=1123295
2010-05-05 20:00:36 +00:00
Aaron J. Seigo
97e82393ea cleanup
svn path=/trunk/KDE/kdelibs/; revision=1120901
2010-04-30 02:11:11 +00:00
Aaron J. Seigo
a8008999c6 allow mapping of animations by the app corona; useful for mapping things like the appear/disappear animations
svn path=/trunk/KDE/kdelibs/; revision=1120239
2010-04-28 17:39:44 +00:00