Use a shared config in tooltip

Change-Id: I68521f9066114a265c3f3444332e5e67016207f7
This commit is contained in:
David Edmundson 2014-12-11 01:57:10 +01:00
parent f6aa18c884
commit 81a494b131

View File

@ -71,10 +71,8 @@ ToolTip::~ToolTip()
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);
}