diff options
-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() * |