summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-21 02:34:52 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-21 02:34:52 +0000
commitc7481f84f95a3e8777ff8a416a6938df8b2919be (patch)
tree91003d75b0dd7a093e28ae5ab41202717db8d695
parentb54dffb3d67b9077782b597d592bf073894d9805 (diff)
downloadtdelibs-c7481f84f95a3e8777ff8a416a6938df8b2919be.tar.gz
tdelibs-c7481f84f95a3e8777ff8a416a6938df8b2919be.zip
Add configuration option for global kiconview activation effects
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1177728 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
-rw-r--r--kdecore/kglobalsettings.cpp7
-rw-r--r--kdecore/kglobalsettings.h11
2 files changed, 18 insertions, 0 deletions
diff --git a/kdecore/kglobalsettings.cpp b/kdecore/kglobalsettings.cpp
index fcaf3c279..5a410e191 100644
--- a/kdecore/kglobalsettings.cpp
+++ b/kdecore/kglobalsettings.cpp
@@ -752,6 +752,13 @@ bool KGlobalSettings::showFilePreview(const KURL &url)
return g.readBoolEntry(protocol, defaultSetting );
}
+bool KGlobalSettings::showKonqIconActivationEffect()
+{
+ KConfigGroup g( KGlobal::config(), "KDE" );
+ return g.readBoolEntry("ShowKonqIconActivationEffect",
+ KDE_DEFAULT_KONQ_ACTIVATION_EFFECT);
+}
+
bool KGlobalSettings::opaqueResize()
{
KConfigGroup g( KGlobal::config(), "KDE" );
diff --git a/kdecore/kglobalsettings.h b/kdecore/kglobalsettings.h
index 04afe8567..4925fd098 100644
--- a/kdecore/kglobalsettings.h
+++ b/kdecore/kglobalsettings.h
@@ -36,6 +36,7 @@
#define KDE_DEFAULT_OPAQUE_RESIZE true
#define KDE_DEFAULT_BUTTON_LAYOUT 0
#define KDE_DEFAULT_SHADE_SORT_COLUMN true
+#define KDE_DEFAULT_KONQ_ACTIVATION_EFFECT true
class KURL;
@@ -504,6 +505,16 @@ class KDECORE_EXPORT KGlobalSettings
static bool showFilePreview(const KURL &);
/**
+ * This function determines if the user wishes to see icon
+ * activation effects in Konqueror or KDesktop
+ *
+ * @return Returns true if user wants to show activation effects.
+ *
+ * @since 3.5.12
+ */
+ static bool showKonqIconActivationEffect();
+
+ /**
* Whether the user wishes to use opaque resizing. Primarily
* intended for TQSplitter::setOpaqueResize()
*