┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-05-07 20:55:51 +0000
committerPeter Penz <[email protected]>2008-05-07 20:55:51 +0000
commit197abb4be8500fed28eeb0a9bc1c2ca5135a9f67 (patch)
treef070a41a1199c3a30c8bb6906443f1cd5ecec934 /src
parent63be8bc9a149a1bf3d2d8441f6c6bc23b04467d0 (diff)
Update selection toggle icon when the icon theme has been changed. Thanks to David Benjamin for the patch!
BUG: 161316 svn path=/trunk/KDE/kdebase/apps/; revision=805209
Diffstat (limited to 'src')
-rw-r--r--src/selectiontoggle.cpp7
-rw-r--r--src/selectiontoggle.h1
2 files changed, 8 insertions, 0 deletions
diff --git a/src/selectiontoggle.cpp b/src/selectiontoggle.cpp
index 14ec04840..b9b79def0 100644
--- a/src/selectiontoggle.cpp
+++ b/src/selectiontoggle.cpp
@@ -44,6 +44,8 @@ SelectionToggle::SelectionToggle(QWidget* parent) :
setIconOverlay(isChecked());
connect(this, SIGNAL(toggled(bool)),
this, SLOT(setIconOverlay(bool)));
+ connect(KGlobalSettings::self(), SIGNAL(iconChanged(int)),
+ this, SLOT(refreshIcon()));
}
SelectionToggle::~SelectionToggle()
@@ -177,6 +179,11 @@ void SelectionToggle::setIconOverlay(bool checked)
update();
}
+void SelectionToggle::refreshIcon()
+{
+ setIconOverlay(isChecked());
+}
+
void SelectionToggle::startFading()
{
Q_ASSERT(m_fadingTimeLine == 0);
diff --git a/src/selectiontoggle.h b/src/selectiontoggle.h
index c303b662f..e8f808562 100644
--- a/src/selectiontoggle.h
+++ b/src/selectiontoggle.h
@@ -70,6 +70,7 @@ private slots:
void setFadingValue(int value);
void setIconOverlay(bool checked);
+ void refreshIcon();
private:
void startFading();