From 3156948d813f94c00ac87f80c5850f9f67b42318 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 23 Aug 2014 14:37:16 +0200 Subject: Sidebar: Remove hightlight from TabBar after Deck close After clicking on "Close Sidebar Deck" the highlighted icon will now lose its highlight. Change-Id: Iee947641343d46c84af7afb93cd52101e39149f7 --- sfx2/source/sidebar/TabBar.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'sfx2/source/sidebar/TabBar.cxx') diff --git a/sfx2/source/sidebar/TabBar.cxx b/sfx2/source/sidebar/TabBar.cxx index 29b377fdccc8..8587bcb52baa 100644 --- a/sfx2/source/sidebar/TabBar.cxx +++ b/sfx2/source/sidebar/TabBar.cxx @@ -251,6 +251,19 @@ void TabBar::HighlightDeck (const ::rtl::OUString& rsDeckId) +void TabBar::RemoveDeckHighlight () +{ + for (ItemContainer::iterator iItem(maItems.begin()),iEnd(maItems.end()); + iItem!=iEnd; + ++iItem) + { + iItem->mpButton->Check(false); + } +} + + + + void TabBar::DataChanged (const DataChangedEvent& rDataChangedEvent) { SetBackground(Theme::GetPaint(Theme::Paint_TabBarBackground).GetWallpaper()); -- cgit