summaryrefslogtreecommitdiffstats
path: root/kdecore
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-20 06:16:11 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-20 06:16:11 +0000
commit0369eb65aa64440d34c975eea79da600abc1ee2b (patch)
tree0a23c265bf013c11bb885b4e40136a0aa5170d37 /kdecore
parent3033222c21d070743c3153b52e38fade9769208a (diff)
downloadtdelibs-0369eb65aa64440d34c975eea79da600abc1ee2b.tar.gz
tdelibs-0369eb65aa64440d34c975eea79da600abc1ee2b.zip
Add ability to use old style rectangular icon text boxes
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1177312 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdecore')
-rw-r--r--kdecore/kglobalsettings.cpp6
-rw-r--r--kdecore/kglobalsettings.h7
2 files changed, 13 insertions, 0 deletions
diff --git a/kdecore/kglobalsettings.cpp b/kdecore/kglobalsettings.cpp
index 35b958e9e..c8884409d 100644
--- a/kdecore/kglobalsettings.cpp
+++ b/kdecore/kglobalsettings.cpp
@@ -118,6 +118,12 @@ bool KGlobalSettings::singleClick()
return g.readBoolEntry("SingleClick", KDE_DEFAULT_SINGLECLICK);
}
+bool KGlobalSettings::iconUseRoundedRect()
+{
+ KConfigGroup g( KGlobal::config(), "KDE" );
+ return g.readBoolEntry("IconUseRoundedRect", KDE_DEFAULT_SINGLECLICK);
+}
+
KGlobalSettings::TearOffHandle KGlobalSettings::insertTearOffHandle()
{
int tearoff;
diff --git a/kdecore/kglobalsettings.h b/kdecore/kglobalsettings.h
index a26a7c174..04afe8567 100644
--- a/kdecore/kglobalsettings.h
+++ b/kdecore/kglobalsettings.h
@@ -24,6 +24,7 @@
#include "kdelibs_export.h"
#define KDE_DEFAULT_SINGLECLICK false
+#define KDE_DEFAULT_ICONTEXTROUNDED true
#define KDE_DEFAULT_INSERTTEAROFFHANDLES 0
#define KDE_DEFAULT_AUTOSELECTDELAY -1
#define KDE_DEFAULT_CHANGECURSOR true
@@ -101,6 +102,12 @@ class KDECORE_EXPORT KGlobalSettings
static bool singleClick();
/**
+ * Returns whether icon text is drawn in a rounded style
+ * @return true if rounded, or false if rectangular.
+ **/
+ static bool iconUseRoundedRect();
+
+ /**
* This enum describes the return type for insertTearOffHandle() whether to insert
* a handle or not. Applications who independently want to use handles in their popup menus
* should test for Application level before calling the appropriate function in KPopupMenu.