summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabbedarea.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-03-30 18:33:00 -0600
committerJared Adams <jaxad0127@gmail.com>2009-03-30 18:33:00 -0600
commitcaf3cad2da9945e48fc2104404460f639c71a6b0 (patch)
tree513663c5b27299bb088d7af51bcf3fec8f207fa5 /src/gui/widgets/tabbedarea.cpp
parentdc8df2e9205724c7d4c9a7b6599770ddd29aace3 (diff)
downloadmana-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.cpp10
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();
}