Commit Graph

13885 Commits

Author SHA1 Message Date
Aleix Pol Gonzalez
dedc3cc9ae Improve debug information for some plasmoids
I've been trying to figure out why there's so many qml scripts which errors always specify "<Unknown Files>".
This patch is not ideal, but improves the situation slightly.

REVIEW: 123575
2015-05-14 02:56:04 +02:00
Martin Klapetek
37590e2d2b Fix AssociatedApplicationManager lookup when a mimetype has no aliases
QMimeType::aliases() does not return the main mimetype in the returned
list and so when there are no aliases for a mimetype, there would be no
associated application found as it would be querying for empty mimetype.

This now always prepends the current mimetype to the list for which the
apps are queried.

REVIEW: 123779
BUG: 340326
FIXED-IN: 5.11
CHANGELOG: Fix AssociatedApplicationManager lookup when a mimetype has
no aliases

Change-Id: I322b03f2ac17fa4c0eb70fc3354c65a0f7a5e34c
2015-05-13 19:05:09 +02:00
Marco Martin
c0c56191db fix panel background coloring
Change-Id: Ie60dbf45e78be6d400019834d2324f3ca4e18b6f
BUG:347143
2015-05-12 13:45:40 +02:00
Marco Martin
1b5805ba02 qmlobjectsharedengine in wallpapers
Change-Id: I6125cfa6d7a0cbf1f6f4ece132e9b824a447ddfb
2015-05-11 20:54:52 +02:00
Marco Martin
a595bf9f61 use QmlObjectSharedEngine in applets
Change-Id: Ie3f8c90b7fd601fdb2da23bd69e4b4b338cb190b
2015-05-11 20:44:57 +02:00
Marco Martin
cb6b03e907 use QmlObjectSharedEngine for tooltips
Change-Id: I6ddb3bcad870165e24bd7b5cd63505fd31ca46b9
2015-05-11 20:06:28 +02:00
Marco Martin
a7d4e52aed get rid of "Could not load applet" message
is misleading and not correct anymore

Change-Id: I6429d522d92d94661d14d618f20e1c604140a6a9
2015-05-11 17:48:01 +02:00
Marco Martin
9802e9c6d1 implify
Change-Id: I983400993050e2ebf735290387982845d27dc0d1
2015-05-11 14:51:01 +02:00
Marco Martin
bb0d245d5b support fallback to the multi engine
require SingleEngine in X-Plasma-RequiredExtensions to share the engine

Change-Id: I72873d2e370f98a069bb3dff0d58290277da1292
2015-05-11 13:47:15 +02:00
Marco Martin
509c5da619 consider the case of one engine per applet
rest of fallback mechanism still to be implemented

Change-Id: I2889075d72c776fea4a7db7e9ea638697acd907f
2015-05-11 12:02:34 +02:00
Marco Martin
ac2f76d9c8 heuristic for finding out what package we want
based on the absolute path requested

Change-Id: Ie99bfdc322a409e7ef275499eb8b254d834a98b7
2015-05-11 11:49:37 +02:00
l10n daemon script
22f5b94bad Upgrade KF5 version to 5.11.0. 2015-05-08 23:39:07 +00:00
Marco Martin
f1c0a9a06b capability to load QML kcms in plasmoid config windows
With the same mechanism as plasma 1, add the possibility to load kcms directly
 in the plasmoids config windows. this works only for qml based ones.
the apply enable and trigger is correctly wired between the config dialog
and kcm apis.

Change-Id: I66b5ab2253dcbb5f223b5dcf5616efc9d5aab274
REVIEW:123673
2015-05-08 20:35:45 +02:00
Marco Martin
f9e61de51b hopefully fix Plasmoid attached property
Change-Id: I57d6d443b0a2f94e986e11e0e5cfb1ac6e6884bc
2015-05-08 20:23:00 +02:00
Marco Martin
dc288044ef rough experiment on giving all applets the same engine
it has a couple of big problems
Plasmoid attached property (should be easily fixable)
url interceptor (more tricky)

Change-Id: Ie75dfa97e097f43e8e5778f9b47fdff29224e5fc
2015-05-08 19:44:22 +02:00
Aleix Pol
ec6afe2a8a Don't use the DataEngineStructure for Applets
Use Plasmoid instead.

REVIEW: 123690
2015-05-08 19:24:38 +02:00
l10n daemon script
662adbb41b SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-05-08 10:19:36 +00:00
David Edmundson
04f96779c1 Fix memory leak in AppletQuickItem
Change-Id: I7307cdd4f61fa87f6385a5c09b2fe722165e5199
REVIEW: 123492
2015-05-07 22:18:33 +01:00
Marco Martin
ea924b1469 port libplasma away from sycoca as much as possible
this ports most of libplasma away from sycoca, using instead
a combination of KPluginLoader and KPackage::PackageLoader instead
(so eventually using their own little caches instead of the
global sycoca cache)
a kservicetypetrader call is left in the loading of
containmentactions since is the only way to make an older
workspace still work, but is only a fallback, so containmentactions
in plasma-workspace can be ported eventually as well

Change-Id: Ie9579c3e01284f6d97043e22d01bbe63d3c3f45a
REVIEW:123626
2015-05-07 16:26:37 +02:00
Martin Klapetek
02f124b120 [plasmacomponents] Make SectionScroller follow the ListView.section.criteria
Now it will show first character only if the ListView has FirstCharacter
set

Change-Id: I6d2451d95e36a9a07eed4168402ac5748e87dcb3
Reviewed-by: Marco Martin
2015-05-07 12:56:49 +02:00
Kai Uwe Broulik
01d7343642 Disable transient scrollbars
To improve accessibility and consistency with widget applications scroll bars no longer
automatically hide after a timeout, which was the case when a touch screen was present,
which is nice for tablets but bad for desktops.

CHANGELOG: Scroll bars no longer automatically hide when a touch screen is present

REVIEW: 123645
BUG: 347254
2015-05-05 22:12:48 +02:00
Sergio Martins
dea859ee60 Fix member initialization order [-Wreorder] 2015-05-03 20:36:59 +01:00
Sergio Martins
245082dc34 Fix mismatched header include guards 2015-05-03 12:32:56 +01:00
l10n daemon script
55cf2c176b Upgrade ECM and KF5 version requirements for 5.10.0 release. 2015-05-01 15:25:55 +00:00
l10n daemon script
a48529b3c8 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-05-01 10:21:06 +00:00
Aleix Pol
71891996d4 -- unneeded includes 2015-04-30 19:29:50 +02:00
Marco Martin
fe9f515bf5 increase maxAllowedSize a bit
Change-Id: I88ca56d1ac687288e8e780ce43506fb45246d23f
2015-04-28 12:43:49 +02:00
Kai Uwe Broulik
93cf07deac Add support for menu sections
Also adds a manual unit test

CHANGELOG: PlasmaComponents.Menu now supports sections
REVIEW: 123537
2015-04-27 22:19:41 +02:00
l10n daemon script
4207218d8b SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-04-26 09:45:20 +00:00
Marco Martin
c22bb8c4a8 don't cut away text
Change-Id: I56cf92d0ac6515ec9deb2c8136ef7e2914d1a529
2015-04-21 11:23:11 +02:00
l10n daemon script
7897780310 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-04-18 10:26:53 +00:00
Marco Martin
f248bfbfd1 consider corona actions when evaluating shortcuts
Change-Id: Ic8ff309d6abac6bd85c4fb3c568a9c040f0fc93a
2015-04-16 18:38:23 +02:00
Marco Martin
a5588aab9a Merge "Consider visualParent rotation in popupPosition" 2015-04-10 15:02:34 +02:00
l10n daemon script
3adabce619 Upgrade KF5 version to 5.10.0. 2015-04-10 07:44:47 +00:00
Sebastian Kügler
2b1a487428 Use KPluginLoader to load dataengines
KPluginLoader has all the needed machinery to identify a plugin by its
pluginId. No need to use the query parser here, replace it with a
lambda.

Look for C++ dataengines first. These are much more common, especially
in essential cases. By looking up the plugins through KPluginLoader
first, we can save querying ksycoca.

REVIEW:123297
CHANGELOG:Use KPluginLoader instead of ksycoca for loading C++ dataengines
2015-04-09 01:10:52 +02:00
Marco Martin
a5737b553e fix margin sizing after the imagepath changes
Change-Id: If47f4d538caf93a35b4ef008cbc5339a9ef265a0
2015-04-08 13:44:55 +02:00
Marco Martin
7ea2e8f028 panels have bottom margin
simplify the theme, always use complete frames
and drop the now unised *-mini-* prefixes

Change-Id: I2b85e3561adc6cb910dc12866f246ce1c9fd9c7a
2015-04-07 21:31:47 +02:00
Antonis Tsiapaliokas
684e456f84 Fix typo
REVIEW: 123276
2015-04-07 17:47:36 +03:00
l10n daemon script
505c1f8cba SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2015-04-07 13:16:44 +00:00
l10n daemon script
c6e1efd5f4 Upgrade ECM and KF5 version requirements for 5.9.0 release. 2015-04-04 11:51:13 +00:00
l10n daemon script
864a0ad1d1 Upgrade KF5 version to 5.9.0. 2015-04-04 08:06:18 +00:00
Andrius da Costa Ribas
99d968e190 Convert switch/case statements to if/else due to MSVC being unable to recognise e.g. FrameSvg::TopBorder | FrameSvg::LeftBorder as a const expression (error C2051: case expression not constant)
REVIEW: 120877
2015-04-03 16:29:37 -03:00
Marco Martin
6dfc6e38dd Consider visualParent rotation in popupPosition
if there are transforms in the scene, to correctly compute the position the
transform is needed to be accounter for.
QQuickITem::mapRectToScene does consider tranforms.
this adresses bug 345787 where the toolbox may be rotated.

BUG:345787
Change-Id: I13a5509d95a7498382155abf3c3d195708de56a6
2015-04-02 15:59:14 +02:00
Marco Martin
48dd5963d3 always return all the actuions
it's task of the visualization(the toolbox) to show or hide them

BUG:345788
Change-Id: I267ba99d7300b52c03877868204d628098d3c2aa
2015-04-02 15:10:40 +02:00
Marco Martin
b2583a9368 measure the proper elements
Change-Id: I938abac5001c980e664ed7e5df41fdf0cacfafbc
2015-04-01 13:11:10 +02:00
Marco Martin
67a64e8763 fix themes that don't have hint-bar-size element
Change-Id: Ic2623d66223628b992650084de451ac288467157
2015-03-31 21:43:05 +02:00
Marco Martin
e37576f8d8 expose repaintNeeded()
also emits marginsChanged when is needed
on the fly theme changes work a bit better now

Change-Id: Icefc4fba9c6a80531edc4b1e0c08b62ea039e244
2015-03-30 13:42:40 +02:00
Marco Martin
b9efa292b0 make sure the coordinates are containment relative
Change-Id: I82d3d6dded9701cd674a861a339cd60d6d12c962
Corona::availableScreenRegion has absolute coordinates, we need relative ones
2015-03-27 14:10:20 +01:00
Marco Martin
22796e978d function to adjust a rect to availableScreenRect
Given a geometry, it adjusts it moving it completely inside of the boundaries
of availableScreenRegion, returning the topLeft point of the adjusted
rectangle

reviewed-by: David Edmundson <david@davidedmundson.co.uk>

Change-Id: Ib58cbf521d5def1cd5bb34fe90366d4b628f8a89
CCBUG:345401
CCBUG:345002
2015-03-26 16:50:10 +01:00
Kai Uwe Broulik
4985a4fe65 Immediately hide tooltip on ToolTipArea destruction or when it becomes empty
When the tooltip is empty (no text, no subtext, and no mainItem) it will not be shown.
However, when it becomes empty while it is already shown, it stays there as a small
rectangle. This hides the tooltip immediately (so KWin's fadeout animation still has
the proper content rather than the empty tooltip) when the TooltipArea that opened
the tooltip has been destroyed or its content becomes empty.

CHANGELOG: Fixed stray tooltips when temporary owner of tooltip disappeared or became empty

REVIEW: 122939
2015-03-26 15:23:46 +01:00