Bug 94525 - statusbar shows <qt> in kontact
Summary: statusbar shows <qt> in kontact
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: cvs
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 97175 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-12-06 08:43 UTC by George Staikos
Modified: 2005-03-02 08:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description George Staikos 2004-12-06 08:43:19 UTC
When embedded in Kontact, the statusbar shows <qt> before each message for the 
page viewer.  It seems that there is a QStatusBar instead of a KStatusBar in 
this case for some reason.
Comment 1 Frank Osterfeld 2005-01-07 22:25:41 UTC
Seems fixed. Can anyone still reproduce that?
Comment 2 George Staikos 2005-01-10 20:29:41 UTC
On Friday 07 January 2005 16:25, Frank Osterfeld wrote:
> 22:25 ------- Seems fixed. Can anyone still reproduce that?

   I still can reproduce it.

Comment 3 Frank Osterfeld 2005-01-16 21:10:48 UTC
*** Bug 97175 has been marked as a duplicate of this bug. ***
Comment 4 Christian Spitzlay 2005-02-20 22:24:15 UTC
It's still there as of today.

Comment 5 George Staikos 2005-03-02 00:40:11 UTC
CVS commit by johnflux: 

Fixed Bug 94525: statusbar shows <qt> in kontact
The problem is konqueror uses a QLabel to put its statusbar messages into and so uses
"<qt>".  But QStatusBar::message()  (and KMessageBar::message() )  does not support
rich text statusmessages.
This fix just strips out the tags returned from khtml.

BUG:94525


  M +3 -1      frame.cpp   1.11
Comment 6 Frank Osterfeld 2005-03-02 08:36:33 UTC
CVS commit by osterfeld: 

backport of #94525 fix (<qt> in kontact statusbar) by johnflux
CCBUG:94525


  M +4 -1      frame.cpp   1.10.6.1


--- kdepim/akregator/src/frame.cpp  #1.10:1.10.6.1
@@ -6,4 +6,6 @@
  ***************************************************************************/
 
+#include <qregexp.h>
+
 #include <kactioncollection.h>
 #include <kdebug.h>
@@ -90,5 +92,6 @@ void Frame::setStatusText(const QString 
 {
     m_statusText=s;
-    emit statusText(s);
+    m_statusText.replace(QRegExp("<[^>]*>"), "");
+    emit statusText(m_statusText);
 }