Commit Graph

13605 Commits

Author SHA1 Message Date
Marco Martin
d96a8505d9 a check more on centering
Change-Id: Ib22fcc6fe727c8b2b5ddc2473663c1e56b1dad09
CCBUG:342537
2015-01-13 15:59:17 +01:00
Marco Martin
af0dffd89b don't forward events if not visible anymore
BUG:342444
Change-Id: I58bfd951e4f55d07c8f3327881354a678a7f65ba
2015-01-13 13:18:00 +01:00
Marco Martin
c1814477fd trigger button switch on mouse wheel
BUG:342778
Change-Id: Idfa06319ac84762040eea07074042061a4bc313c
2015-01-13 12:49:35 +01:00
l10n daemon script
d255c63ce2 SVN_SILENT made messages (.desktop file) 2015-01-13 11:36:35 +00:00
Marco Martin
7d00d30f44 reset the internal size copy when the theme changes
Change-Id: I1800076e98bc543ffdea3f4c92d5a08f934f7573
2015-01-13 10:50:20 +01:00
Kai Uwe Broulik
7476decf29 Fix errorneously opening a broken context menu when middle clicking Plasma popup
BUG: 342702
2015-01-11 17:50:52 +01:00
Alex Merry
48e9c2f29e Update installation variables. 2015-01-10 17:47:31 +00:00
Elias Probst
2f2e7ca0f1
Deprecate kservice_desktop_to_json(), use kcoreaddons_desktop_to_json().
REVIEW: 121958
2015-01-09 20:49:12 +01:00
l10n daemon script
bf1e90d688 Upgrade KF5 version to 5.7.0. 2015-01-08 22:45:15 +00:00
l10n daemon script
41777ed685 SVN_SILENT made messages (.desktop file) 2015-01-06 10:55:19 +00:00
l10n daemon script
050c7707bf SVN_SILENT made messages (.desktop file) 2015-01-03 09:14:08 +00:00
Kai Uwe Broulik
94ecb4ff43 Let month menu navigate in current year
Rather than jumping back to the current year unconditionally, just navigate
inside the current year.

BUG: 342327
REVIEW: 121774
2015-01-02 14:11:19 +01:00
Kai Uwe Broulik
6f58ddc05d Expose new OnScreenDisplay window type in Dialog
REVIEW: 121301
2015-01-02 12:18:21 +01:00
l10n daemon script
1afbc2c461 SVN_SILENT made messages (.desktop file) 2015-01-02 09:15:04 +00:00
l10n daemon script
0af8a156a9 Upgrade ECM and KF5 version requirements for 5.6.0 release. 2014-12-31 14:26:46 +00:00
Marco Martin
1f01376198 remove set_and_check Plasma_INCLUDE_DIR
since Plasma_INCLUDE_DIR doesn't seem to be used anywhere and fails on CI
experiment with removing it, to see if all packages depending from plasma
build

Change-Id: I1b8f99b0d7e9de2f33674646e273f141646eaeb2
2014-12-30 13:55:07 +01:00
Marco Martin
bc2253b666 find dependency then include kf5plasmatargets
Change-Id: I9c28e7c416deb3d040a0a97d6dbad8a5d4fbce10
2014-12-30 13:07:33 +01:00
l10n daemon script
6f7a3ae9ea SVN_SILENT made messages (.desktop file) 2014-12-30 10:48:32 +00:00
David Edmundson
0f5e9b1a5d Merge "Set visibility on mainItem to match Dialog" 2014-12-29 15:02:24 +01:00
Marco Martin
dd866b427e Merge "migrate to KPackage" 2014-12-29 14:20:43 +01:00
Marco Martin
a629fe4d8f migrate to KPackage
Plasma::Package internally uses KPackage, being a pure wrapper.
old client code and old packagestructures still work using the wrapper.
old workspace code that is not directly using kpackage continues to work correctly

Change-Id: I05f95e8d05e3b67759973c4009e3753c61b1dcce
2014-12-29 13:56:52 +01:00
Kai Uwe Broulik
b4e1fd5f1c Keep the event filter around so get notified of font changes at runtime
Changelog: Fix labels not picking up changes to font settings at runtime

REVIEW: 121728
BUG: 334818
2014-12-28 23:43:47 +01:00
Kai Uwe Broulik
11485738af Connect Plasma::Theme::themeChanged to ColorScope::colorsChanged
Changelog: Fix text not properly updating its color when switching themes (especially dark<-->light)

REVIEW: 121726
2014-12-28 23:02:34 +01:00
Kai Uwe Broulik
cf6cd3297c Use rgba color with 0.5 alpha channel for placeholder text
Changelog: Fix placeholder text in textfields being too strong when using a light theme

REVIEW: 121724
2014-12-28 21:32:42 +01:00
David Edmundson
7d545e22f1 Set visibility on mainItem to match Dialog
Otherwise we can have an invisible dialog in which the items think they
are visible.

QtQuick is smart enough to not redraw anything if the window isn't
visible, but a lot of bits of our code check the visibility flag to
enable/disable animations. These animation timers do still trigger when
the window isn't visible which wastes CPU cycles.

We are already meddling with the visibility flag so this shouldn't have
too much impact.

Change-Id: I92b969e60b4fdbe4ff2c70f9cce6e3408482a862
2014-12-28 20:37:04 +01:00
Kai Uwe Broulik
8a68da469c Rename keyboard_layout.svgz to keyboard.svgz
In order for Plasma to find the icon named "keyboard-layout" (used by the OSD)
the filename needs to match
2014-12-27 17:56:06 +01:00
l10n daemon script
10a94ba7c9 SVN_SILENT made messages (.desktop file) 2014-12-24 08:38:52 +00:00
David Edmundson
86e89dd309 Document WallpaperInterface
Change-Id: I25819a1d11fb63d3685a6fa0940e0c2f88e5cfd4
2014-12-21 21:03:51 +01:00
l10n daemon script
53d694072c SVN_SILENT made messages (.desktop file) 2014-12-19 09:15:56 +00:00
l10n daemon script
04e39b4fa7 Upgrade KF5 version to 5.6.0. 2014-12-17 16:29:32 +00:00
Kai Uwe Broulik
6d7ce28992 Merge "save some CPU cycle when busy indicator is not visible." 2014-12-16 22:18:39 +01:00
Kai Uwe Broulik
6531279771 Load IconItem immediately upon componentComplete()
This makes the IconItem load the icon immediately after component creation and not
wait 150ms there for no reason which prevents eg. flickering in the OSD when it shows up.

REVIEW: 121219
2014-12-15 20:21:06 +01:00
Weng Xuetian
267ddccbff save some CPU cycle when busy indicator is not visible.
Change-Id: Ia5c296cdbc6c0ccd2ca45444d4f3171723b50d23
2014-12-14 16:23:13 -08:00
l10n daemon script
f64207f408 SVN_SILENT made messages (.desktop file) 2014-12-14 08:54:42 +00:00
Weng Xuetian
a11ac49717 stop animation if the pixmap change is triggered by geometry change
Making transition between two different size doesn't make much sense,
since repainting is usually happens at that time and it could take some
time to finish. And the animation need to be stopped if m_animValue is set
manually.

Change-Id: I240c19f46d4d13eb0e54b4e7b3fa3b6c31cfc6d8
REVIEW: 121411
2014-12-11 14:49:43 -05:00
David Edmundson
2de3f489d3 Don't create a Plasma::Theme in units which is unused
Unit now takes all fonts from the default system font, which we monitor
for with an eventFilter on the application object.

Change-Id: Ib17c01e2811c0c672be18a930d625d84ecd154a4
2014-12-11 18:33:16 +01:00
David Edmundson
2204d21be6 Add FocusFrameStyle to qmldir
Change-Id: I67fadd9f3d13557541a4873f8bbb3740e0eee427
2014-12-11 17:34:37 +01:00
Marco Martin
43f1ff419d Merge "Different themes between desktop and dialogs" 2014-12-11 15:21:44 +01:00
David Edmundson
c546f314be Use the same text colour for comboboxes as buttons
Given comboboxes use the same background as buttons they should use the
same text colour too.

This prevents a situation in Breeze where a ComboBox could get white
text on a white background when using a colourscope with complementary
colours.

Change-Id: I21502186178a32ce480cd3e838335451bf644c3e
2014-12-11 15:06:54 +01:00
Marco Martin
340a4680bf Different themes between desktop and dialogs
different themes between QtControl themes in applets
and in config dialogs: this allows QtQuickControls
to be freely usable in applets without worrying how they
will integrate

Change-Id: I696bdcbd78eb2e4df708367ac0d70d13c5d6cf12
2014-12-11 12:46:02 +01:00
David Edmundson
2afeb22f42 Merge changes Ibb130779,I68521f90,Ica6ba027
* changes:
  Reparse settings when they change
  Use a shared config in tooltip
  Save SVGs only when a theme is unloaded, not on each theme proxy
2014-12-11 12:40:43 +01:00
David Edmundson
e9d760d93b Merge "Do not keep reparsing plasmarc configuration" 2014-12-11 12:40:37 +01:00
David Edmundson
d2707e795a Reparse settings when they change
Change-Id: Ibb13077943330417fa08d23ce1ea60f2aff5defc
2014-12-11 01:59:51 +01:00
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