summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Hindenburg <kurt.hindenburg@gmail.com>2011-03-07 05:10:40 (GMT)
committerKurt Hindenburg <kurt.hindenburg@gmail.com>2011-03-07 05:10:40 (GMT)
commit1d657aed8fd9a8f7b5563ef032d9f4a0ca0270b5 (patch)
treef576f439e067948fbd6c94190e715a851a167f00
parentad9f8011c36cf86d79f8e72d027853391c94c101 (diff)
Replace & with && for tab title.
If the tab title has & it will replace it by the shortcut symbol (_). BUG: 267851 FIXED-IN: 4.6.2
-rw-r--r--src/ViewContainer.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ViewContainer.cpp b/src/ViewContainer.cpp
index b0b95d9..9888139 100644
--- a/src/ViewContainer.cpp
+++ b/src/ViewContainer.cpp
@@ -788,8 +788,11 @@ void TabbedViewContainer::updateTitle(ViewProperties* item)
const int index = _stackWidget->indexOf( iter.next() );
QString tabText = item->title();
- _tabBar->setTabText( index , tabText );
_tabBar->setTabToolTip( index , tabText );
+
+ // To avoid having & replaced with _ (shortcut indicator)
+ tabText.replace("&", "&&");
+ _tabBar->setTabText( index , tabText );
}
}
void TabbedViewContainer::updateIcon(ViewProperties* item)