Change in plasma-framework[master]: Use a shared config in tooltip

David Edmundson (Code Review) noreply at kde.org
Thu Dec 11 01:00:04 UTC 2014


David Edmundson has uploaded a new change for review.

  https://gerrit.vesnicky.cesnet.cz/r/216

Change subject: Use a shared config in tooltip
......................................................................

Use a shared config in tooltip

Change-Id: I68521f9066114a265c3f3444332e5e67016207f7
---
M src/declarativeimports/core/tooltip.cpp
1 file changed, 2 insertions(+), 4 deletions(-)


  git pull ssh://gerrit.vesnicky.cesnet.cz:29418/plasma-framework refs/changes/16/216/1

diff --git a/src/declarativeimports/core/tooltip.cpp b/src/declarativeimports/core/tooltip.cpp
index 839b8b7..dc0b457 100644
--- a/src/declarativeimports/core/tooltip.cpp
+++ b/src/declarativeimports/core/tooltip.cpp
@@ -71,10 +71,8 @@
 
 void ToolTip::settingsChanged()
 {
-    KConfig config("plasmarc");
-    KConfigGroup cg(&config, "PlasmaToolTips");
-
-    m_interval = cg.readEntry("Delay", 700);
+    KConfigGroup cfg = KConfigGroup(KSharedConfig::openConfig("plasmarc"), "PlasmaToolTips");
+    m_interval = cfg.readEntry("Delay", 700);
     m_tooltipsEnabledGlobally = (m_interval > 0);
 }
 

-- 
To view, visit https://gerrit.vesnicky.cesnet.cz/r/216
To unsubscribe, visit https://gerrit.vesnicky.cesnet.cz/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I68521f9066114a265c3f3444332e5e67016207f7
Gerrit-PatchSet: 1
Gerrit-Project: plasma-framework
Gerrit-Branch: master
Gerrit-Owner: David Edmundson <david at davidedmundson.co.uk>
Gerrit-Reviewer: Marco Martin <notmart at gmail.com>


More information about the Plasma-devel mailing list