[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/pim/mailody/src
From: Frode M. Døving <frode () lnix ! net>
Date: 2007-01-19 19:42:36
Message-ID: 1169235756.862308.11167.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 625283 by fdoving:
When opening webpages in new tabs (3rd mouse button) use host as tab-title.
Fallback to the previous default, 'Site', if kurl can't find a host.
M +3 -1 mainwindow.cpp
--- trunk/playground/pim/mailody/src/mainwindow.cpp #625282:625283
@@ -2186,9 +2186,11 @@
void MainWindow::slotOpenURLInNewTab(const QString& page)
{
+ KURL kurl(page);
+ QString title = kurl.hasHost() ? kurl.host() : i18n("Site");
slotNewTab();
TotalView* tb = static_cast<TotalView*>(m_tabWidget->currentPage());
- m_tabWidget->setTabLabel(tb, i18n("Site"));
+ m_tabWidget->setTabLabel(tb, title);
tb->headers()->hide();
tb->body()->setExternalImage(true);
tb->body()->setOpenLinksDirectly(true);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic