summaryrefslogtreecommitdiffstats
path: root/kcontrol/background/bgsettings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/background/bgsettings.cpp')
-rw-r--r--kcontrol/background/bgsettings.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/kcontrol/background/bgsettings.cpp b/kcontrol/background/bgsettings.cpp
index d36d7f140..f29eeacf4 100644
--- a/kcontrol/background/bgsettings.cpp
+++ b/kcontrol/background/bgsettings.cpp
@@ -437,6 +437,7 @@ KBackgroundSettings::KBackgroundSettings(int desk, int screen, bool drawBackgrou
defBlendMode = _defBlendMode;
defBlendBalance = _defBlendBalance;
defReverseBlending = _defReverseBlending;
+ defCrossFadeBg = _defCrossFadeBg;
m_MinOptimizationDepth = _defMinOptimizationDepth;
m_bShm = _defShm;
@@ -537,6 +538,7 @@ void KBackgroundSettings::copyConfig(const KBackgroundSettings *settings)
m_BlendMode = settings->m_BlendMode;
m_BlendBalance = settings->m_BlendBalance;
m_ReverseBlending = settings->m_ReverseBlending;
+ m_CrossFadeBg = settings->m_CrossFadeBg;
m_MinOptimizationDepth = settings->m_MinOptimizationDepth;
m_bShm = settings->m_bShm;
m_MultiMode = settings->m_MultiMode;
@@ -633,6 +635,15 @@ void KBackgroundSettings::setReverseBlending(bool value)
}
+void KBackgroundSettings::setCrossFadeBg(bool value)
+{
+ if (m_CrossFadeBg == value)
+ return;
+ dirty = hashdirty = true;
+ m_CrossFadeBg = value;
+}
+
+
void KBackgroundSettings::setWallpaper(TQString wallpaper)
{
dirty = hashdirty = true;
@@ -774,6 +785,8 @@ void KBackgroundSettings::readSettings(bool reparse)
m_ReverseBlending = m_pConfig->readBoolEntry( "ReverseBlending", defReverseBlending);
+ m_CrossFadeBg = m_pConfig->readBoolEntry( "CrossFadeBg", defCrossFadeBg);
+
// Multiple wallpaper config
m_WallpaperList = m_pConfig->readPathListEntry("WallpaperList");
@@ -834,6 +847,7 @@ void KBackgroundSettings::writeSettings()
m_pConfig->writeEntry("BlendMode", m_BlMRevMap[m_BlendMode]);
m_pConfig->writeEntry("BlendBalance", m_BlendBalance);
m_pConfig->writeEntry("ReverseBlending", m_ReverseBlending);
+ m_pConfig->writeEntry("CrossFadeBg", m_CrossFadeBg);
m_pConfig->writeEntry("MinOptimizationDepth", m_MinOptimizationDepth);
m_pConfig->writeEntry("UseSHM", m_bShm);