diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-30 18:33:00 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-03-30 18:33:00 -0600 |
commit | caf3cad2da9945e48fc2104404460f639c71a6b0 (patch) | |
tree | 513663c5b27299bb088d7af51bcf3fec8f207fa5 /src/gui/widgets/tabbedarea.cpp | |
parent | dc8df2e9205724c7d4c9a7b6599770ddd29aace3 (diff) | |
download | mana-caf3cad2da9945e48fc2104404460f639c71a6b0.tar.gz mana-caf3cad2da9945e48fc2104404460f639c71a6b0.tar.bz2 mana-caf3cad2da9945e48fc2104404460f639c71a6b0.tar.xz mana-caf3cad2da9945e48fc2104404460f639c71a6b0.zip |
Hilight chat tabs when appropriate
Diffstat (limited to 'src/gui/widgets/tabbedarea.cpp')
-rw-r--r-- | src/gui/widgets/tabbedarea.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/tabbedarea.cpp b/src/gui/widgets/tabbedarea.cpp index 8e93d394..0d7cf155 100644 --- a/src/gui/widgets/tabbedarea.cpp +++ b/src/gui/widgets/tabbedarea.cpp @@ -146,4 +146,14 @@ void TabbedArea::removeTab(Tab *tab) void TabbedArea::logic() { logicChildren(); + +} +void TabbedArea::setSelectedTab(gcn::Tab *tab) +{ + gcn::TabbedArea::setSelectedTab(tab); + + Tab *newTab = dynamic_cast<Tab*>(tab); + + if (newTab) + newTab->setCurrent(); } |