Commit Graph

13672 Commits

Author SHA1 Message Date
Sebastian Kügler
47206f89b1 Fix plasmapkg2 -t package for translated systems
We're comparing all package type arguments against translated and
untranslated strings. For the simple "package" type packages, this was
actually forgotten, so the english version would not work on non-English
systems.

CHANGELOG:Fix plasmapkg2 for translated systems

Reviewed-by: notmart
2015-02-19 15:55:51 +01:00
Marco Martin
1794d3c43f ungrab the current grabber before showing the menu
forcing the current item to ungrab the mouse before showinf a modal
menu ensures the scene mouse state will be coherent and an even won't
be lost

Change-Id: Icc0a89c437184ea0b87348358827f898ad342f72
2015-02-19 15:11:25 +01:00
Kai Uwe Broulik
e823ec8488 Ignore single actions on popups
Changelog: Sticky notes no longer appear when middle clicking a plasmoid popup

REVIEW: 122623
BUG: 344309
2015-02-18 14:36:21 +01:00
Kai Uwe Broulik
a717bac7a4 Make non-interactive tooltips outputOnly
This makes them significantly less annoying by having them close more reliably when
leaving the ToolTipArea and more importantly fixes the tooltip interrupting the
applet resize operation.

REVIEW: 122624
2015-02-18 14:32:36 +01:00
Kai Uwe Broulik
d0c5aa6fc9 Explain magical round ToolButton behavior on the documentation
Reviewed by David Edmundson
2015-02-17 23:21:54 +01:00
Kai Uwe Broulik
2a4812c9ba Drop size check for round ToolButton
It causes binding loops causing all sorts of weird behavior, like the buttons
in Klipper not always having a background.

Changelog: Fix rendering glitches with ToolButtons that don't have a label

REVIEW: 122609
BUG: 339303
BUG: 340588
2015-02-17 23:21:54 +01:00
Sebastian Kügler
70b545a964 Don't install dpitest app
It's really only a test, not supposed to be installed.
2015-02-17 18:40:49 +01:00
Hrvoje Senjan
9f677ebb55 Use qstrcmp instead of comparing char* pointer with a string literal [-Waddress]
Reviewed by: mgraesslin
2015-02-17 16:11:20 +01:00
Marco Martin
462ad8a6ca support for C++ applets
make possible for an applet to be implemented in c++ but still
have the qml package with the usual api, this was supposed to
be supported from the beginning.

if a c++ applet has been loaded, make available the property
plasmoid.nativeInterface to the qml part, exposing the subclasses
Applet instance with all eventual extra propertiels/slots.

if no c++ plugin is present, appletInterface will be dummy/not available

this (besides limiting a bit the qml import rabbit procreation)
makes available some things not available to normal private imports:
* access to applet config() to save more complex things compared to what kconfigxt allows
  or save/load stuff from the c++ part
* access to containment()/corona(), may be useful for containment implementations
* easier port for old very big applets such as comics/weather

Change-Id: I65117660043de3a60ad58c77b086f686683d4d8c
2015-02-17 13:43:33 +01:00
Lasse Liehu
edc767740e Load config i18n domain from applet root path
This now matches AppletQuickItem

BUG: 343932
Change-Id: Ia019ea45d61ec7ae6a8ae6ea83ea757804649b1a
Reviewed-by: David Edmundson
2015-02-16 19:10:27 +01:00
Kai Uwe Broulik
b3f607ec1a Distinguish datacontainer relays by both interval and alignment
This allows being able to change just the alignment, which can happen, since
the order of QML bindings being re-evaluated is non-deterministic

REVIEW: 122593
2015-02-16 18:47:10 +01:00
David Edmundson
ae2b9f7099 Guard around a bug in older versions of Qt
Change-Id: I7d6c11bd426c87b3d1abcedbfc18ccc7b912b1a2
2015-02-16 16:46:34 +01:00
Kai Uwe Broulik
5cfe737618 Optimize DataSource
- Use QQmlParserStatus to provide event compression for setupDate() method
- Re-introduce interval alignment
- Cache sources and emit change signal only when it has actually changed

Changelog: DataSource can now align polling to full minutes

REVIEW: 122470
2015-02-16 14:55:49 +01:00
l10n daemon script
073b83b440 SVN_SILENT made messages (.desktop file) 2015-02-16 10:17:17 +00:00
l10n daemon script
f64424781a Upgrade KF5 version to 5.8.0. 2015-02-15 22:41:18 +00:00
Kevin Funk
7e302a5236 Use Q_DECL_OVERRIDE where possible
REVIEW: 122542
2015-02-13 13:31:58 +01:00
Lukáš Tinkl
667eb808a9 correctly default to AutoText for tooltip contents
acked by notmart
2015-02-13 13:17:42 +01:00
Aleix Pol
3937b0453e Fix PlasmaCore.IconItem initialization when using QPixmap on it
I was getting the m_pixmapIcon cleared some times, instead of the
m_iconPixmap. This made it forget about my image.
m_iconPixmap should be renamed to something else.

Reviewed and done in collaboration with David Edmindson
2015-02-12 16:35:28 +01:00
Aleix Pol
fbe756bd39 improve packageurlinterceptor errors
if it's going to prevent something to load, at least explain a bit what's
going on.

Reviewed by David Edmundson
2015-02-12 16:06:46 +01:00
Aleix Pol
4909a2f471 Save 1 string construction
We already were constructing the string, no need to do it twice.
2015-02-12 16:05:46 +01:00
David Edmundson
ecf922ab85 Put all non tiled frame textures in the atlas
Change-Id: I2525998ab3c1c76870fe8e395051127a673979af
Changelog: Faster rendering of Plasma frames from QtQuick
2015-02-12 13:05:12 +01:00
David Edmundson
084be8e534 Port to kpackage::package
Change-Id: Id52b8d6bf76ab964c02cec9f0bba1dcdf3950d76
2015-02-12 13:05:12 +01:00
Marco Martin
9c855f05ab use the X-Plasma-RootPath property as default catalog
if X-Plasma-RootPath is set, use that instead of the plugin name as
default translation domain.
if an applet uses the package of another one, of course it has to use its
translation catalog as well

Change-Id: Ia23b261f449a560c3da19bc074e521139ae942c8
reviewed-by:Eike Hein <hein@kde.org>
2015-02-11 16:48:47 +01:00
David Edmundson
e0f6b76f4b Port from deprecated KConfigLoader API
Change-Id: I9fe88d2b0b16dab02e4e35af3d0e992cec0edb91
2015-02-11 14:52:41 +01:00
David Edmundson
685ee11822 Fix leak in ContainmentActions
Change-Id: I41c9b9c224b36b045034755b07a92f2bdfe9f40e
2015-02-11 14:49:23 +01:00
David Edmundson
5f9ecfb6e1 Fix warning when compiled without HAVE_XCB_COMPOSITE
Change-Id: I62dc7cc731cf6d05592ff8e4427740c76643178a
2015-02-11 14:28:41 +01:00
David Edmundson
2c535282d5 Re-order initialisation. Warnings--
Change-Id: Ie44a657364de72739f8d52822b9f50937ad777a3
2015-02-11 14:16:09 +01:00
David Edmundson
e0f0d3a948 Merge "Unify when tooltips are shown and kept alive." 2015-02-10 15:39:35 +01:00
David Edmundson
b71d33f2be Unify when tooltips are shown and kept alive.
A new tooltip would only be shown if it had content to show.

However in the old code if the tooltip was already visible we would keep
the tooltip alive and sync with empty contents regardless of whether we
had anything to show.

This seems to clear up the system tray where we have nested tooltip
areas for the tray applet and the icon itself and things would flicker

Change-Id: I7d9ded9edb70672c572e008c8d6f1ffe2d76b773
Changelog: Avoid showing an empty tooltip
2015-02-10 15:25:38 +01:00
Vishesh Handa
b81663bd65 Add a X-Plasma-StandAloneApp option to applets
We can use this option to figure out which applets should be exposed as
independent applications.

REVIEW: 122502
2015-02-10 14:43:30 +01:00
Marco Martin
ef28deebfc use the proper colors
Change-Id: Ia507ba367ab47c1373f3c5b6fc7e1eef5e3eda3a
2015-02-06 11:21:53 +01:00
Marco Martin
b484b7faf0 document what happens to the page after pop()
Change-Id: I85b6cca525ced119329e1c28807efb6befcb4af3
2015-02-04 13:24:23 +01:00
l10n daemon script
03bae89ac5 SVN_SILENT made messages (.desktop file) 2015-02-04 08:58:49 +00:00
Marco Martin
e2a6cc9c8e delete the activityId entry as well when deleting
cleanup the activityId entry when the config group is deleted

Change-Id: I1eb7559c3111f058a730a620646bfd3e03af8b5b
2015-02-02 19:04:36 +01:00
Alex Merry
d4ea9ef66d Fix CamelCase header installation.
Installing the Plasma directory (which contains the CamelCase forwarding
headers) breaks on case-insensitive filesystems (eg: Windows) because it
is that directory also contains the lowercase build-time-only forwarding
headers (they are put in the plasma directory). These then overwrite the
real lowercase headers with ones that forward to the source directory.

However, the first argument to ecm_generate_headers is a variable name
containing exactly the CamelCase headers that should be installed,
avoiding this issue rather neatly.

Reviewed-by: Patrick von Reth
2015-01-31 13:01:49 +00:00
Marco Martin
0161b2fce3 don't load hidden toolboxes
Change-Id: I96badc3f3b0c1ff0986bc74570f3dd19073e83b3
2015-01-30 21:05:38 +01:00
Marco Martin
7ef09d883d reload the configuration when plasmarc changes
Change-Id: I77a5a1d49d6d260bc302203658cc9790858dbda7
CCBUG:343569
2015-01-30 16:44:12 +01:00
Marco Martin
2f0f7716e4 default to AutoText as textformat
yep, we don't have access to the proper enum :/

Change-Id: I47bc0662e4204e5f510704dbece1f64a2d1517ce
2015-01-30 14:56:16 +01:00
Marco Martin
ea8974fa93 try to reposition before showing
to minimize dialog repositions, try to put it at the proper position before showing.

besides making things a bit snappier,
showing at 0,0 for an instant has some interesting sideeffects:
MouseArea has a rather strange way to manage hoverevents:
at window show, it will check if the item is under the absolute mouse position,
if so, will emit an entered() signal. This causes the Kickoff menu to
automatically select the last tab on first show, because for an instant
(that never gets drawn on the screen) all the tabs will actually be under the mouse cursor

Change-Id: Ie9fc45f2a5076c3f49b42e8a7cee109b04db46b9
2015-01-30 14:40:25 +01:00
Xavier Vello
867098ea14 Removed hardcoded colors from viewitem.svgz
selected-bottom* and hover-bottom* were still hardcoded blue
2015-01-29 13:12:00 -05:00
Sebastian Kügler
b931c00031 Fix fallback from invalid L&F packages
The mechanism should have deleted the old key from the config if it was
invalid and then try again in order to get the default. As we were
deleting the wrong key (actually the value of the shell package key),
this was turning into a recursive loop. Deleting the correct key
obviously fixes this.

Thanks Bille for reporting!

Reviewed-by: Marco Martin

BUG:343510
2015-01-29 13:35:31 +01:00
Marco Martin
2d7dfd2147 fix tooltip positioning
don't ever try to reposition the tooltip on showEvent

Change-Id: Ie1c159c092baf480ab3cbb83e537b28e354973bf
2015-01-29 13:17:39 +01:00
Marco Martin
534733558c restore hint-apply-color-scheme support
make hint-apply-color-scheme work (kiconeffect based coloring),
and make sure the kcolorschemes are reloaded when app palette changes
and the theme follows system colors

BUG:343389
Change-Id: I0a7a7eb0f89ed0948e618f1d608521f235aa1959
2015-01-29 13:17:39 +01:00
l10n daemon script
8fb6f677dd SVN_SILENT made messages (.desktop file) 2015-01-29 09:16:20 +00:00
Marco Martin
bdda85a40d restore hint-apply-color-scheme support
make hint-apply-color-scheme work (kiconeffect based coloring),
and make sure the kcolorschemes are reloaded when app palette changes
and the theme follows system colors

BUG:343389
Change-Id: I0a7a7eb0f89ed0948e618f1d608521f235aa1959
2015-01-28 17:54:26 +01:00
Marco Martin
993cdb54a6 collapse tooltips that only have text
if a tooltip has only text, expecially only title or only subtitle, make
it as small as possible

BUG:343390
Change-Id: I5eff081613c9c64c78b8c5741bac67409a112c98
2015-01-28 12:41:34 +01:00
Marco Martin
8044e15a71 export textFormat for the tooltip
in some cases richtext in the tooltip is not desired, like
in the case of klipper. export a property to set
the text format

Change-Id: Ib4e8e913e060b868188b4f0b46db2162f33d8bb1
2015-01-28 10:20:57 +01:00
Marco Martin
c17ed3a107 fix layout in reverse mode
Change-Id: Ib81611f149821fc79669ae191a03daeba840b802
2015-01-27 19:36:58 +01:00
l10n daemon script
4b1970cf83 SVN_SILENT made messages (.desktop file) 2015-01-27 11:23:41 +00:00
Lukáš Tinkl
f29ba02777 fix tooltip docu 2015-01-26 15:09:48 +01:00