summaryrefslogtreecommitdiffstats
path: root/src/kile/kilemultitabbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kile/kilemultitabbar.cpp')
-rw-r--r--src/kile/kilemultitabbar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kile/kilemultitabbar.cpp b/src/kile/kilemultitabbar.cpp
index 0c86c3e..59f08fa 100644
--- a/src/kile/kilemultitabbar.cpp
+++ b/src/kile/kilemultitabbar.cpp
@@ -436,7 +436,7 @@ int KileMultiTabBarButton::id() const{
void KileMultiTabBarButton::setText(const TQString& text)
{
TQString s = text;
- s = s.tqreplace("&", TQString()); // we do not allow accelerators to be set
+ s = s.replace("&", TQString()); // we do not allow accelerators to be set
// This is a little hack to avoid KAcceleratorManager
// provide us with accelerators as the class name of the
// widget is no longer KMultiTabBar.
@@ -623,8 +623,8 @@ void KileMultiTabBarTab::updateState()
int KileMultiTabBarTab::neededSize()
{
TQString text = m_text;
- text = text.tqreplace(TQRegExp("&(?=[^&])"), TQString());
- text = text.tqreplace("&&", "&");
+ text = text.replace(TQRegExp("&(?=[^&])"), TQString());
+ text = text.replace("&&", "&");
return (((m_style!=KileMultiTabBar::KDEV3)?24:0)+TQFontMetrics(TQFont()).width(text)+6);
}