Commit Graph

13962 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
2c8dd8982d Merge "roundToIconSize(0) should return 0" 2014-12-10 19:46:19 +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
Heiko Becker
c107433190 plasma_containmentactions_test: Link to KI18n
I get "CMakeFiles/plasma_containmentactions_test.dir/test.cpp.o:
test.cpp:function ContextTest::createConfigurationInterface(QWidget*):
error: undefined reference to 'ki18n(char const*)'"
errors otherwise when building with -DBUILD_EXAMPLES:BOOL=TRUE.

Change-Id: I9af913bf182fee20c1e59cd76c840b1e6350c269
2014-12-10 13:14:29 +01:00
Kai Uwe Broulik
d5148f87c0 Fix capitalization
REVIEW: 121071
2014-12-09 23:24:01 +01:00
Kai Uwe Broulik
5e17e3fd1c Give undo notifications a title
The "Plasma" (default put in there by the notification applet because it has no title)
is not really descriptive.

REVIEW: 121071
2014-12-09 23:22:57 +01:00
Kai Uwe Broulik
23b590b90c Fix scaling in ProgressBar and Slider
REVIEW: 121417
2014-12-09 22:46:57 +01:00
Marco Martin
bf99d9c03c Merge "move the controls to an independent style" 2014-12-09 13:27:54 +01:00
l10n daemon script
819f1107c3 SVN_SILENT made messages (.desktop file) 2014-12-08 08:40:39 +00: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
7d52397115 move the controls to an independent style
* Adapt the existing controls to be generic enough to work on stock QtQuickControls
* Add missing styles needed for the set to be complete (and applications actually work)

The full list of controls styles is now:
ApplicationWindowStyle
BusyIndicatorStyle
ButtonStyle
CalendarStyle
CheckBoxStyle
ComboBoxStyle
MenuBarStyle
MenuStyle
ProgressBarStyle
RadioButtonStyle
ScrollViewStyle
SliderStyle
SpinBoxStyle
StatusBarStyle
SwitchStyle
TabViewStyle
TableViewStyle
TextAreaStyle
TextFieldStyle
ToolBarStyle
ToolButtonStyle
GroupBoxStyle

Change-Id: Ic5d33bc20c7456d1478c07aca33bda63378d5c05
2014-12-02 15:59:42 +01: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