[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kate/utils
From: Erlend Hamberg <ehamberg () gmail ! com>
Date: 2009-02-02 19:42:41
Message-ID: 1233603761.053008.30082.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 920371 by ehamberg:
escape text before showing it in the qlabel.
M +2 -1 katevimodebar.cpp
--- trunk/KDE/kdelibs/kate/utils/katevimodebar.cpp #920370:920371
@@ -27,6 +27,7 @@
#include <QtGui/QLabel>
#include <QtGui/QHBoxLayout>
#include <QTimer>
+#include <QTextDocument>
#include "klocale.h"
@@ -81,7 +82,7 @@
if ( m_timer ) {
m_timer->stop();
}
- m_labelMessage->setText(QString("<font color=\"red\">")+msg+"</font>");
+ m_labelMessage->setText(QString("<font color=\"red\">")+Qt::escape(msg)+"</font>");
}
void KateViModeBar::clearMessage()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic