summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRohan Garg <rohangarg@kubuntu.org>2010-12-23 19:49:54 +0530
committerRohan Garg <rohangarg@kubuntu.org>2010-12-23 19:49:54 +0530
commitbf4d66a35f5a86376e50fe31179bceedcad75045 (patch)
treec546db5a052b4dce355e89b3a1755f2cc3e8eff8 /src
parentrekonq 0.6.56 (diff)
downloadrekonq-bf4d66a35f5a86376e50fe31179bceedcad75045.tar.xz
Highlight current tab in tab list by making it bold.
Thanks to Furkan
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 938e6985..61ffce1f 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1261,6 +1261,12 @@ void MainWindow::aboutToShowTabListMenu()
KAction *action = new KAction(m_view->tabText(i), this);
action->setIcon(Application::iconManager()->iconForUrl(m_view->webTab(i)->url()).pixmap(16, 16));
action->setData(i);
+ if(mainView()->tabBar()->currentIndex() == i)
+ {
+ QFont font;
+ font.setBold(true);
+ action->setFont(font);
+ }
m_tabListMenu->addAction(action);
}
m_tabListMenu->adjustSize();