Commit Graph

13554 Commits

Author SHA1 Message Date
David Edmundson
81a494b131 Use a shared config in tooltip
Change-Id: I68521f9066114a265c3f3444332e5e67016207f7
2014-12-11 01:57:10 +01:00
David Edmundson
f6aa18c884 Save SVGs only when a theme is unloaded, not on each theme proxy
A single Plasma theme will be represented by one ThemePrivate object,
which is exported in multiple Theme objects.

We want to save the cache when that theme stops being used, not each
time an item stops using the theme.

saveSvgElementsCache calls sync() which involves a lot of parsing and
IO. This makes everything a lot faster at no cost.

Change-Id: Ica6ba0273bc99fb8ad8733a1c90db8f1e87c49ea
2014-12-11 01:56:55 +01:00
David Edmundson
901cc3e159 Do not keep reparsing plasmarc configuration
KConfig->reparseConfiguration is expensive. It throws away our cached
values.

The Units constructor was calling this every single time. Units is
created a _lot_; once per applet and once per FrameSVGItem.

This meant we were reloading the same config ~100 times on startup for
no reason.

Perf showed this as being ~5% of the total startup time.

-    7.47%     0.00%      plasmashell  libKF5ConfigCore.so.5.5.0
                   [.] KConfig::reparseConfiguration()

   - KConfig::reparseConfiguration()

      + 66.51% Units::settingsFileChanged(QString const&)

      + 25.95% KConfig::KConfig(QString const&,
QFlags<KConfig::OpenFlag>, QStandardPaths::StandardLocation)

      + 3.93% KDesktopFile::KDesktopFile(QString const&)

      + 3.61% Units::settingsFileChanged(QString const&)

Change-Id: Ia70b7001ba473c8063e6c999b8e4233ea5b206f5
2014-12-11 01:04:57 +01:00
David Edmundson
aac89104bd roundToIconSize(0) should return 0
If an invalid icon size is passed to roundToIconSize we should return an
invalid icon size.

This can cause IconItem to load a small pixmap which will never be
shown.

Change-Id: Ia678f2e879b83317e2971069acf8f00d9ce2e052
2014-12-10 19:19:57 +01:00
l10n daemon script
d47e417e40 SVN_SILENT made messages (.desktop file) 2014-12-07 08:47:50 +00:00
l10n daemon script
96b26c8833 SVN_SILENT made messages (.desktop file) 2014-12-06 08:59:32 +00:00
David Faure
c2f140fae7 Update version numbers for future 5.5 release 2014-12-03 10:21:09 +01:00
David Faure
d348816c7d Fix compilation with Qt 5.2.0
(moc was a bit buggy it seems)
2014-12-03 09:49:53 +01:00
Martin Klapetek
187e53493e Merge "Fix the platformstatus kded module" 2014-12-02 20:34:03 +01:00
Martin Klapetek
7e5b00cff0 Fix the platformstatus kded module
The module .desktop file has a typo in the X-KDE-DBus-ModuleName which
results in the KCM not being able to see the status of the module.

Plus it renames the .desktop file to not contain the kded_ prefix, now
it matches every other kded .desktop file we ship (and also matches the
library and dbus module names).

Change-Id: I5006672ca041d9820b4388ba4e99b7899f36be18
2014-12-02 19:53:42 +01:00
Weng Xuetian
3093d69fa6 fix typo height -> width
updateMinimumWidth and updateMaximumWidth wrongly set the updated
value to height instead of width.

Change-Id: Ie24ef194d9bf02e53b92aa6802b0fbded68b896d
2014-12-02 10:01:20 -05:00
Marco Martin
0ca29bc0f2 export a plasma version number in themes
some of the behavior of the theme has changed.
this makes some of the old themes to not work correctly
(like black text on black)
read a version number of the "plasma version this theme has been intended for"
and use it to change the behavior for retrocompatibility
(all themes that don't export this are assumed to be from KDE4)

Change-Id: I4bc20a0c10de9f9a6c3facd63b6c5b6da210039a
2014-12-02 15:05:48 +01:00
Marco Martin
15547cd885 initialize size of wallpaper as soon as possible
in order to minimize resizes, redraws and eventual reloading of images,
try to initialize the wallpaper with the correct size already.

reviewed by: Kai Uwe Broulik <kde@privat.broulik.de>

Change-Id: I8489744cb845213195f1916bfb9328c53ec0798d
2014-12-02 11:48:33 +01:00
Sebastian Kügler
b4519bdffb Fix DialogStatus namespace in SelectionDialog
DialogStatus, as in other Dialog variants, can only be accessed through
the PlasmaComponents namespace.

Fixes 3 ReferenceErrors in SelectionDialog and makes it actually work.
2014-12-02 02:05:58 +01:00
l10n daemon script
cf3898f7a9 SVN_SILENT made messages (.desktop file) 2014-12-01 08:51:21 +00:00
l10n daemon script
7d8ebae3f7 SVN_SILENT made messages (.desktop file) 2014-11-30 08:55:13 +00:00
David Edmundson
c1b5adf25e Fix documentation linking
Change-Id: I391d1c4c7d0aae63ebf99e19197f20484a78f315
2014-11-27 12:53:14 +01:00
Marco Martin
bd7eecb9b5 Merge "use PlasmaCore.ColorScope when suitable" 2014-11-26 15:06:00 +01:00
l10n daemon script
0b944473d1 SVN_SILENT made messages (.desktop file) 2014-11-26 08:31:20 +00:00
Marco Martin
cb8175f1f6 use PlasmaCore.ColorScope when suitable
It is possible to put a PlasmaCore.ColorScope element, to automatically
change the colors:
if for instance the complementary scope will be set, all labels
descendent of such element would flip their color

Change-Id: I2214aca522eb094cf067d8726c5bf2a7ecbf36b3
2014-11-25 18:27:20 +01:00
l10n daemon script
8415c20760 SVN_SILENT made messages (.desktop file) 2014-11-23 08:53:19 +00:00
Aleix Pol
fe0d60cfca Make WallpaperInterface use the suggested async object loading API
Just asks QmlObject to create an object and waits for QmlObject::finished
signal to acquire it.

REVIEW: 121148
2014-11-19 11:59:45 +01:00
l10n daemon script
7c65143e12 SVN_SILENT made messages (.desktop file) 2014-11-19 08:40:19 +00:00
l10n daemon script
db195f66dc SVN_SILENT made messages (.desktop file) 2014-11-18 10:41:47 +00:00
l10n daemon script
6f854997d6 SVN_SILENT made messages (.desktop file) 2014-11-17 08:38:53 +00:00
l10n daemon script
0517bc2b62 SVN_SILENT made messages (.desktop file) 2014-11-16 08:53:17 +00:00
l10n daemon script
dcd299a3f9 SVN_SILENT made messages (.desktop file) 2014-11-15 09:06:57 +00:00
l10n daemon script
0e13fb9833 SVN_SILENT made messages (.desktop file) 2014-11-14 09:03:12 +00:00
Albert Astals Cid
f7043425c1 Keywords separator is ; 2014-11-14 01:31:23 +01:00
David Edmundson
fdbb37472b remove unused forward declare
Change-Id: Iba058903214eaf01e9ee6020af6bea4a3f755db1
2014-11-13 18:03:45 +01:00
Marco Martin
fa0a37c705 never hide desktops
Change-Id: I804bc9de57b42c1e299cc20efb636bfab3457464
2014-11-13 11:44:25 +01:00
Eike Hein
7b747fb341 Fix margins in tasks.svgz.
It's no longer necessary to add extra margin at the outside edge
with the panel theming fix.

Also clean up element positions to make the file easier to work
with.
2014-11-12 17:11:57 +01:00
l10n daemon script
43049221ab SVN_SILENT made messages (.desktop file) 2014-11-12 08:52:06 +00:00
Kai Uwe Broulik
ca78cfa094 Make ProgressBar test cover the 1% case where the FrameSVG used to leak outside 2014-11-10 22:13:41 +01:00
Kai Uwe Broulik
f54ff55bc5 Migrate ProgressBar to QtQuick.Controls
Test is enhanced to also cover vertical bars. The ProgressBar does not yet use
the vertical assets since Qt just conveniently rotates the bar for us and
apparently just overriding the entire "panel" component is evil

REVIEW: 121085
2014-11-10 22:09:55 +01:00
Burkhard Lück
a609b5a237 use correct ki18n_wrap_ui in ki18n based plasma-frameworks
REVIEW:121065
2014-11-10 10:03:01 +01:00
l10n daemon script
4390aa5536 SVN_SILENT made messages (.desktop file) 2014-11-10 08:26:37 +00:00
l10n daemon script
37a97d41c0 SVN_SILENT made messages (.desktop file) 2014-11-09 08:55:12 +00:00
Kai Uwe Broulik
65a6861476 Migrate BusyIndicator to QtQuick.Controls
Comes with a test for the seamless pause/resume

REVIEW: 121070
2014-11-09 01:16:30 +01:00
l10n daemon script
2c65e911e8 SVN_SILENT made messages (.desktop file) 2014-11-06 08:50:22 +00:00
l10n daemon script
fa21d7b1c5 SVN_SILENT made messages (.desktop file) 2014-11-05 08:37:57 +00:00
Marco Martin
51a821512a typos
Change-Id: I6fb45ab89a4313b838e6926b7761f54e1da8c17a
2014-11-04 15:22:30 +01:00
Marco Martin
8fe43b3c20 Merge "show/hide view when applet asked to be destroyed" 2014-11-04 15:21:41 +01:00
Marco Martin
e6a0d09607 actually use isAncestor
Change-Id: I12180137a256c33d3e603238537c81a7059ba65f
2014-11-04 15:17:37 +01:00
Marco Martin
36cd79b590 Merge "workaround on textarea input breaking" 2014-11-04 15:14:11 +01:00
Marco Martin
b54e328304 workaround on textarea input breaking
this makes sure if there is an item with focus in the applet,
it and all its parent are removed the focus when the applet is deleted.
otherwise when there is an item with focus that loses its qquickwindow,
it will never be able to gain it again
it's a workaround but i'm not sure how should be fixed in qquickitem,
or if is even appropriate

Change-Id: I72c8f01d4557003604c4261ca5a9ab49dd136b02
2014-11-04 15:04:17 +01:00
Aleix Pol
9d41131ac7 Use QtQuick components for the options
This way we can test it with debug information without getting lots of
unneeded information.
2014-11-04 11:55:07 +01:00
Aleix Pol
e967049bee Fix Breeze tasks east border on hover, for the bottom left element
The name was wrong, so it wasn't being found, hten something black was
being painted instead, for some reason.

Reviewed by David Edmundson
2014-11-04 11:55:07 +01:00
l10n daemon script
1a4b23f845 SVN_SILENT made messages (.desktop file) 2014-11-04 10:53:50 +00:00
Marco Martin
bb0bd0a4c5 fix build
Change-Id: Ibb1d5a0a5432f8638d33251a8be6b3762f236265
2014-11-03 11:54:26 +01:00