diff options
| author | Peter Penz <[email protected]> | 2008-05-07 20:55:51 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-05-07 20:55:51 +0000 |
| commit | 197abb4be8500fed28eeb0a9bc1c2ca5135a9f67 (patch) | |
| tree | f070a41a1199c3a30c8bb6906443f1cd5ecec934 /src/selectiontoggle.cpp | |
| parent | 63be8bc9a149a1bf3d2d8441f6c6bc23b04467d0 (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/selectiontoggle.cpp')
| -rw-r--r-- | src/selectiontoggle.cpp | 7 |
1 files changed, 7 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); |
