[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/KDE/3.4/kdelibs/kdeui
From:       Stephan Binner <binner () kde ! org>
Date:       2005-07-03 22:14:52
Message-ID: 1120428892.681690.1415.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 431325 by binner:

Bug 106954: tooltips of tabs inside konqueror window are parsed for HTML tags


 M  +2 -1      ktabwidget.cpp  


--- branches/KDE/3.4/kdelibs/kdeui/ktabwidget.cpp #431324:431325
@@ -20,6 +20,7 @@
 
 #include <qapplication.h>
 #include <qstyle.h>
+#include <qstylesheet.h>
 
 #include <kconfig.h>
 #include <kiconloader.h>
@@ -281,7 +282,7 @@
     QString title = d->m_automaticResizeTabs ? d->m_tabNames[ index ] : QTabWidget::label( index );
     removeTabToolTip( page( index ) );
     if ( title.length() > d->m_CurrentMaxLength )
-        setTabToolTip( page( index ), title );
+        setTabToolTip( page( index ), QStyleSheet::escape(title) );
 
     title = KStringHandler::rsqueeze( title, d->m_CurrentMaxLength ).leftJustify( d->m_minLength, ' ' );
     title.replace( '&', "&&" );
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic