diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-21 02:34:52 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-21 02:34:52 +0000 |
commit | c7481f84f95a3e8777ff8a416a6938df8b2919be (patch) | |
tree | 91003d75b0dd7a093e28ae5ab41202717db8d695 | |
parent | b54dffb3d67b9077782b597d592bf073894d9805 (diff) | |
download | tdelibs-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.cpp | 7 | ||||
-rw-r--r-- | kdecore/kglobalsettings.h | 11 |
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() * |