summaryrefslogtreecommitdiffstats
path: root/kcontrol/icons/icons.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kcontrol/icons/icons.cpp')
-rw-r--r--kcontrol/icons/icons.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/kcontrol/icons/icons.cpp b/kcontrol/icons/icons.cpp
index 83db5ec52..0e1e51541 100644
--- a/kcontrol/icons/icons.cpp
+++ b/kcontrol/icons/icons.cpp
@@ -27,6 +27,7 @@
#include <kipc.h>
#include <klocale.h>
#include <kseparator.h>
+#include <kglobalsettings.h>
#include <dcopclient.h>
#include "icons.h"
@@ -94,6 +95,10 @@ KIconConfig::KIconConfig(TQWidget *parent, const char *name)
connect(mpAnimatedCheck, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotAnimatedCheck(bool)));
grid->addMultiCellWidget(mpAnimatedCheck, 2, 2, 0, 1, Qt::AlignLeft);
+ mpRoundedCheck = new TQCheckBox(i18n("Rounded text selection"), m_pTab1);
+ connect(mpRoundedCheck, TQT_SIGNAL(toggled(bool)), TQT_SLOT(slotRoundedCheck(bool)));
+ grid->addMultiCellWidget(mpRoundedCheck, 3, 3, 0, 1, Qt::AlignLeft);
+
top->activate();
mpSystrayConfig = new KSimpleConfig( TQString::fromLatin1( "systemtray_panelappletrc" ));
@@ -279,6 +284,9 @@ void KIconConfig::read()
mpKickerConfig->setGroup("General");
mQuickLaunchSize = mpKickerConfig->readNumEntry("panelIconWidth", KIcon::SizeLarge);
+
+ mpConfig->setGroup("KDE");
+ mpRoundedCheck.setChecked(config->readBoolEntry("IconsUseRoundedRect", KDE_DEFAULT_ICONTEXTROUNDED));
}
void KIconConfig::apply()
@@ -459,6 +467,8 @@ void KIconConfig::save()
mpSystrayConfig->writeEntry("systrayIconWidth", mSysTraySize);
mpKickerConfig->setGroup("General");
mpKickerConfig->writeEntry("panelIconWidth", mQuickLaunchSize);
+ mpConfig->setGroup("KDE");
+ mpConfig->writeEntry("IconsUseRoundedRect", mpRoundedCheck.isChecked());
mpConfig->sync();
mpSystrayConfig->sync();
@@ -632,6 +642,11 @@ void KIconConfig::slotAnimatedCheck(bool check)
}
}
+void KIconConfig::slotRoundedCheck(bool check)
+{
+ // Do nothing
+}
+
KIconEffectSetupDialog::KIconEffectSetupDialog(const Effect &effect,
const Effect &defaultEffect,
const TQString &caption, const TQImage &image,