Commit Graph

189 Commits

Author SHA1 Message Date
Marco Martin
de73bbb278 Revert "don't expand if still creating the representation"
This reverts commit c3a38d3434.
2014-05-27 12:37:56 +02:00
Marco Martin
c3a38d3434 don't expand if still creating the representation
when qml object gets created with an async incubator,
events are still processed, so we have to guard gainst
double triggers that can lead to creating the
extended representation again
BUG:335406
2014-05-27 12:24:35 +02:00
Marco Martin
d4b4a9558f use the interceptor on views too
relax its rules a bit and alter it to make it work with shell packages too
2014-05-23 20:03:41 +02:00
Marco Martin
d2d61c4da3 reposition when resizing if there is visualParent
BUG:334970
BUG:334964
2014-05-21 15:45:21 +02:00
Marco Martin
fd87694c8d fix build 2014-05-19 18:29:41 +02:00
Marco Martin
09453cfe89 parentHasFocus false if Qt::WindowDoesNotAcceptFocus
BUG:334819
2014-05-15 17:44:13 +02:00
Marco Martin
5600cb0fea dismiss on focus out if a View was clicked
BUG:334810
2014-05-15 14:40:03 +02:00
Aleix Pol
3f78d130a5 Improve readability
QWeakPointer -> QPointer
2014-05-14 15:14:32 +02:00
Martin Gräßlin
02917b2335 Do not set a custom format on QQuickWindows
All QQuickWindows share a default format. By setting a custom format
it overwrites the default and this results in a format without a
stencil buffer being requested resulting in possible rendering errors.

REVIEW: 118122
2014-05-14 13:52:29 +02:00
Marco Martin
f5369d6349 resize the framesvg to the proper size 2014-05-13 19:41:56 +02:00
Marco Martin
91e6297114 export plasmoid.rootItem 2014-05-09 13:12:38 +02:00
Marco Martin
79bf8bf138 no compactRepresentationCheck if not ready yet 2014-05-08 15:49:36 +02:00
Aleix Pol
2f027d4348 Remove pointless casts 2014-05-08 15:28:09 +02:00
Marco Martin
2d94312f97 support config for applets children of applets 2014-05-07 13:09:35 +02:00
Aleix Pol
556c1e321a Remove random qDebug output
Makes it easier to spot the actual problems on the output. If there's
something that's actually indicating a problem, we should make it a
qWarning.
2014-05-06 19:57:37 +02:00
Marco Martin
445081843c this assert doesn't make much sense 2014-05-06 10:52:57 +02:00
Eike Hein
2591685579 Emit signal when hiding due to focus loss to a non-related window. 2014-04-30 19:17:14 +02:00
Eike Hein
3ebbedead2 Also consider parent windows when evaluating focus loss for dialog hide. 2014-04-30 19:14:55 +02:00
Eike Hein
000d49463b Don't hide when focus moves to a child window.
REVIEW:117897
2014-04-30 15:04:16 +02:00
Aleix Pol
94dc5c30c9 Remove unneeded statements 2014-04-28 17:18:11 +02:00
Marco Martin
3df85902ec adjust mainItem position to borders
also in syncToMainItemSize() we need to reposition mainItem,
not only in the other way around syncMainItemToSize()
2014-04-28 16:54:04 +02:00
Marco Martin
042c4d815a give a default icon
give the "plasma" icon to dialogs.
It will be never show, but windowmanagers should complain less
2014-04-28 16:46:19 +02:00
Aleix Pol
9cd8f9fbeb Port plasma code to PLASMA_RELATIVE_DATA_INSTALL_DIR 2014-04-27 23:06:32 +02:00
Aleix Pol
e6f1fec0c7 Install all plasma files in a prefix/share/plasma directory
At the moment, we could say that plasma is co-installable by chance,
it's only working because KF5 dropped the apps relative directory.
This change introduces a PLASMA_RELATIVE_DATA_INSTALL_DIR that will
be available to know where in share the components are and
PLASMA_DATA_INSTALL_DIR to know where data has to be installed to.

Reviewed by David Edmundson

CCMAIL: plasma-devel@kde.org
2014-04-27 17:14:22 +02:00
Alex Merry
c4f408a334 Fix Plasma_INCLUDE_INSTALL_DIR variable in (another) config module
This should have been part of the INCLUDE_INSTALL_DIR to
KF5_INCLUDE_INSTALL_DIR commit.
2014-04-26 13:16:21 +01:00
Alex Merry
2ef3b32dcd Use KF5_INCLUDE_INSTALL_DIR and KF5_INSTALL_TARGETS_DEFAULT_ARGS
This is instead of INCLUDE_INSTALL_DIR and INSTALL_TARGETS_DEFAULT_ARGS,
which will lose the "KF5" suffix from the include path.
2014-04-26 12:14:03 +01:00
Aurélien Gâteau
d0bd7f77bf cmake warnings--
No need to define projects if we don't use any ${project}_* var.
2014-04-26 02:10:23 +02:00
Kevin Ottens
72ba7b4146 Apply the astyle-kdelibs script 2014-04-26 01:48:37 +02:00
Marco Martin
65c5c0dfe8 slightly more deterministic tooltip animations 2014-04-25 22:44:08 +02:00
Marco Martin
c4bdaa1610 restore border check on window move 2014-04-24 17:45:01 +02:00
Marco Martin
55e2b27d53 change a bit resize logic
Make sure to always execute one between syncToMainItemSize()
and syncMainItemToSize() in a mutually exclusive fashion.
this should (hopefully) fix the dancing dialog problem
and dialogs with content of the wrong size
CCBUG:332576
CCBUG:332812
2014-04-24 17:29:40 +02:00
Antonis Tsiapaliokas
3798ac076a Remove whitespace 2014-04-24 13:33:30 +03:00
Marco Martin
7ce31b6b69 correct the last commit 2014-04-23 21:14:56 +02:00
Marco Martin
fc98e6323b always use all the borders for floating dialogs 2014-04-23 20:57:52 +02:00
Eike Hein
1e5524525f Revert "Install header for Dialog so it's publically subclassable as discussed."
This reverts commit baff217874.
2014-04-23 19:48:04 +02:00
Eike Hein
baff217874 Install header for Dialog so it's publically subclassable as discussed.
CCMAIL:notmart@gmail.com
CCMAIL:aleixpol@kde.org
2014-04-23 19:41:01 +02:00
Marco Martin
2e7d295e9e sync borders after adjusting geometry 2014-04-23 17:20:47 +02:00
Marco Martin
13016a42b4 don't make the tooltip dance
note: this is different from the "dancing dialog" bug.
the tooltip should now appear in the proper position
and behave reasonably good
2014-04-17 20:06:43 +02:00
Michael Palimaka
d488420dcb Move stray tests to the root directory to be more like
other frameworks.

REVIEW: 117599
2014-04-18 02:25:50 +10:00
Marco Martin
6a5350786a swap top and bottom too
BUG:333281
2014-04-11 15:52:08 +02:00
Marco Martin
a0b52f4bf8 LeftEdge and RightEdge positioning was swapped
BUG:333281
2014-04-11 15:26:02 +02:00
Marco Martin
96e2522b8a allow urls that are just an UrlString
BUG:333284
2014-04-11 12:55:05 +02:00
Marco Martin
ba4e6825a4 don't create expander for containments
or always expaqnded applets
2014-04-08 20:14:06 +02:00
Marco Martin
b2ecbd7ae5 make sure dialog is resized on minimumSize changed 2014-04-04 21:45:38 +02:00
David Edmundson
1a65efb619 Remove now unused code to handle positioning widget explorer 2014-04-03 15:55:46 +02:00
Marco Martin
aeabbe9444 new AppletInterface in case of inexistent plugin
if the plugin name is wrong, create a fullfledged appletinterface for the error visualization.
This will make applet removal possible
BUG:332971
2014-04-02 18:59:47 +02:00
Marco Martin
82e9bd46d0 don't depend from Qt5Declarative
That's the qt5 port of QGraphicsView-based QML
2014-03-31 18:37:28 +02:00
Ivan Čukić
f53a976ae7 Bypassing the window manager does not imply no focus 2014-03-27 19:51:16 +01:00
Alex Merry
9aabcbe067 Explicitly specify link interface libraries for libKF5PlasmaQuick
The headers may not be public (yet?), but it doesn't hurt to have this
stuff specified properly.

REVIEW: 117060
2014-03-25 19:40:00 +00:00
David Edmundson
b5dc457570 Compact two identical conditions 2014-03-24 17:07:30 +01:00
David Edmundson
399e61901f don't crash when expanding applets whilst loading
BUG: 332429
2014-03-24 17:05:40 +01:00
Marco Martin
213584e987 export private signal 2014-03-19 18:31:26 +01:00
Martin Klapetek
f1af24c40e Don't try to set the Dialog's state when being destroyed
Because it crashes.

Reviewed-by: Marco Martin
2014-03-19 16:10:19 +01:00
Marco Martin
546dd32304 Dialog is now
it statically links FrameSvgItem and Units.. they may become libplasmaquick eventually but for now is fine like that
2014-03-19 12:47:09 +01:00
Aleix Pol
a3641aac25 Fix headers management in plasma-framework
Use generate headers instead of having them stored in the repository.
Figure out how relative paths are forwarded around, there were some weird
things.
Stop installing plasma header files in the KDE/ prefix.
2014-03-17 16:28:24 +01:00
Marco Martin
710fe45527 move the shell packages in libplasmaquick 2014-03-15 17:25:42 +01:00
Marco Martin
5fe26c0da1 close at applet destruction
and bury behind a weakpointer
BUG:332015

in some cases seems a crash still happens, but is completely unrelated with the one in 332015, so should be a separate bug
2014-03-11 12:44:04 +01:00
Marco Martin
fc6938887b correctly restore saved popup size 2014-03-06 15:57:37 +01:00
Marco Martin
f1448ed71c use the namespace 2014-02-27 16:33:02 +01:00
Alex Merry
7dc3895451 Fix build
Link test that includes QQmlAbstractUrlInterceptor against Qt5::Qml.
2014-02-26 15:04:05 +00:00
Marco Martin
0fdc1a71f0 don't double create root objects 2014-02-25 13:52:19 +01:00
Marco Martin
68496ed363 unbreak wallpaper config model 2014-02-20 13:35:11 +01:00
Marco Martin
5fb89a5ea9 add warning notices that is not public api 2014-02-20 11:19:50 +01:00
Marco Martin
e9580fc257 don't install headers of plasmaquick
don't commit to binary stability just yet
2014-02-20 11:16:46 +01:00
Marco Martin
90c608f863 complete porting 2014-02-19 20:00:29 +01:00
Marco Martin
d3253428dc plasmaquickview.h -> view.h 2014-02-19 19:40:40 +01:00
Marco Martin
5bb4761c73 use a namespace in libplasmaquick
right now only the library builds
2014-02-19 19:37:30 +01:00
Alex Merry
596abe8c68 Use ecm_configure_package_config_file
Ported with:
sed -i -e 's/\(include(\)CMake\(PackageConfigHelpers)\)/\1ECM\2/' \
       -e 's/\<\(configure_package_config_file\)/ecm_\1/' \
       CMakeLists.txt

See http://commits.kde.org/extra-cmake-modules/139f60d81653888f696ef433
2014-02-18 21:18:16 +00:00
Marco Martin
d1b0e89a63 a way to read and write global shortcuts from qml config views 2014-02-14 17:28:10 +01:00
Marco Martin
5c6077c728 add a zoom icon
used for the panel controls
2014-02-13 11:50:49 +01:00
David Faure
452413ef33 use version strings defined at toplevel - doesn't work though ? 2014-02-11 16:23:33 +01:00
Marco Martin
0d138bf2fb check the pointer 2014-02-11 11:11:34 +01:00
Marco Martin
4e13ce6966 make sure full representations don't get loaded 2014-02-10 18:14:11 +01:00
Marco Martin
5ba990df15 invert parent relationship of the compact and expander 2014-02-07 16:19:11 +01:00
Marco Martin
857150c183 the expander is compactrepresentation child
because it'll contain a tooltip too
2014-02-07 12:20:43 +01:00
Marco Martin
cab11dd7f8 change expanded accordingly when applet expands or collapses 2014-02-06 13:57:53 +01:00
Marco Martin
3858044d25 Merge branch 'mart/AppletAttached'
Conflicts:
	src/declarativeimports/core/dialog.cpp
	src/scriptengines/qml/plasmoid/containmentinterface.cpp
2014-02-06 13:16:11 +01:00
Marco Martin
29c72a9898 include appletquickitem_p.h from the right file 2014-02-05 18:00:05 +01:00
Marco Martin
f8b649fba9 move AppletQuickItem in libplasmaquick 2014-02-05 17:23:52 +01:00
Marco Martin
74515ee2f5 use "_plasma_graphicObject" in applet*
to avoid possible collisions, use the private looking name "_plasma_graphicObject" for the dynamic property of Applet that represents the AppletInterface* pointer
2014-02-05 12:59:33 +01:00
David Edmundson
f5618db949 Remove unused property drawWallpaper
As suggested here: http://community.kde.org/Plasma/libplasma2/API_Review/Containment
kde-workspace doesn't use it.

REVIEW: 115224
2014-01-30 15:34:45 +01:00
Sebastian Kügler
94540a4262 Workaround seems to have been accidentally disabled
This workaround is needed for applet internal qmldirs to be loaded.

Fixes crasher in notifications applet.
2014-01-26 23:24:07 +01:00
Marco Martin
92fe107329 put namespace around KDeclarative 2014-01-13 21:21:14 +01:00
Aleix Pol
5c88e300bd Small changes
Fix typo on API documentation
Remove pointless debug output
Remove unneeded loop
2014-01-11 11:17:53 +01:00
Marco Martin
6a0525c1c3 ToolTip->ToolTipArea 2014-01-08 18:13:07 +01:00
Marco Martin
798b7665d4 work around a bug in url resolution of qmldir files 2014-01-08 13:06:23 +01:00
Marco Martin
f9f89eda56 qmldir is like anybody else 2014-01-07 12:30:21 +01:00
Marco Martin
569ad6a41d applets can only import from their own private
importing from the private imports of another applet makes the applet fail to load
2014-01-07 11:16:11 +01:00
Marco Martin
86369030de extra whitelist of allowed paths 2013-12-27 14:59:37 +01:00
David Edmundson
4336262d31 Connect to the right geometrychanged signal 2013-12-16 16:52:46 +01:00
David Edmundson
a26913ccac Move screen management logic in ShellCorona
Previously shells, activities, shellcorona and corona all tried to
manage
which screen a containment was on.

This version moves all screen management into ShellCorona so we have a
central place for keeping tracking of containments, activities and
screens.
2013-12-16 15:30:13 +01:00
Aurélien Gâteau
7c74c27a25 Add missing alias 2013-12-11 21:40:54 +01:00
Aurélien Gâteau
02d6b37976 Renames for the KF5 prefix 2013-12-11 21:40:54 +01:00
Martin Klapetek
3214bd8132 Add KF5 prefix to plasma framework
This changes the lib name and package names to follow other frameworks

libFoo -> libKF5Foo
find_package(KFoo) -> find_package(KF5Foo)

REVIEW: 114389
2013-12-11 21:40:54 +01:00
Aleix Pol
6c82a1ee86 Reduce compiler warnings
Remove unused and deprecated headers
Port some K_GLOBAL_STATIC to Q_GLOBAL_STATIC
2013-12-09 16:50:18 +01:00
Sebastian Kügler
73e3c4a6ed Don't crash
Apparently, q->rootObject() can be invalid here.
2013-12-08 05:50:50 +01:00
Aleix Pol
a6ee7bb8fe Remove warning 2013-12-05 19:35:43 +01:00
Aleix Pol
23eacffcb3 Add more information about interception warnings
It's good to know who is trying to be naughty
2013-12-05 19:32:14 +01:00
Andrea Scarpino
b8e34cffe2 Revert "Revert "QQmlAbstractUrlInterceptor is now public""
This reverts commit 4d38b136ad.
Sorry for the mess.
2013-12-04 12:38:38 +01:00
Andrea Scarpino
4d38b136ad Revert "QQmlAbstractUrlInterceptor is now public"
This reverts commit 5540fdeaa5.
2013-12-04 08:21:45 +01:00