[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/base/plasma/applets/systray-refactor
From: Jason Stubbs <jasonbstubbs () gmail ! com>
Date: 2008-09-23 14:18:48
Message-ID: 1222179528.585397.19186.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 863924 by jstubbs:
At minimum, Kopete is sending an html notification body, so let's use HTML
all around.
M +5 -1 protocols/fdo/fdoselectionmanager.cpp
M +1 -1 ui/notifytextitem.cpp
--- trunk/playground/base/plasma/applets/systray-refactor/protocols/fdo/fdoselectionmanager.cpp \
#863923:863924 @@ -31,6 +31,7 @@
// Qt
#include <QtGlobal>
#include <QHash>
+#include <QTextDocument>
#include <QTimer>
#include <QX11Info>
@@ -235,10 +236,13 @@
MessageRequest &request = d->messageRequests[winId];
Task *task = d->tasks[winId];
+ QString message = QString::fromUtf8(request.message);
+ message = QTextDocument(message).toHtml();
+
Notification *notification = new Notification(winId, task);
notification->setAppName(task->name());
notification->setAppIcon(task->icon());
- notification->setMessage(QString::fromUtf8(request.message));
+ notification->setMessage(message);
notification->setTimeout(request.timeout);
connect(notification, SIGNAL(notificationDeleted(WId)), this, \
SLOT(cleanupNotification(WId)));
--- trunk/playground/base/plasma/applets/systray-refactor/ui/notifytextitem.cpp \
#863923:863924 @@ -162,7 +162,7 @@
void NotifyTextItem::setBody(const QString &body)
{
- d->body.setPlainText(body);
+ d->body.setHtml(body);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic