Use a shared config in tooltip
Change-Id: I68521f9066114a265c3f3444332e5e67016207f7
This commit is contained in:
parent
f6aa18c884
commit
81a494b131
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user