summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-02-14 22:12:45 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-02-14 22:13:02 (GMT)
commit48a317147b77fa7a7da571e5d47c66f4152269c4 (patch)
treeacb1fe465af56ceaf65b718333ff2e3c680b3a71
parent81a5b370a221ba1c5b37983786b490b9ceceea85 (diff)
downloadswift-48a317147b77fa7a7da571e5d47c66f4152269c4.zip
swift-48a317147b77fa7a7da571e5d47c66f4152269c4.tar.bz2
Removed use of P2QSTRING in FreeDesktopNotifier.
-rw-r--r--Swift/QtUI/FreeDesktopNotifier.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/Swift/QtUI/FreeDesktopNotifier.cpp b/Swift/QtUI/FreeDesktopNotifier.cpp
index 037f67b..2393340 100644
--- a/Swift/QtUI/FreeDesktopNotifier.cpp
+++ b/Swift/QtUI/FreeDesktopNotifier.cpp
@@ -14,8 +14,6 @@
#include <QtDBus/QtDBus>
#include <algorithm>
-#include "QtSwiftUtil.h"
-
namespace Swift {
FreeDesktopNotifier::FreeDesktopNotifier(const std::string& name) : applicationName(name) {
@@ -31,7 +29,7 @@ void FreeDesktopNotifier::showMessage(Type type, const std::string& subject, con
return;
}
- QString body = P2QSTRING(description);
+ QString body = description.c_str();
body = body.replace("&", "&amp;");
body = body.replace("<", "&lt;");
body = body.replace(">", "&gt;");
@@ -43,10 +41,10 @@ void FreeDesktopNotifier::showMessage(Type type, const std::string& subject, con
QStringList actions;
QMap<QString, QVariant> hints;
hints["x-canonical-append"] = QString("allowed");
- msg << P2QSTRING(applicationName);
+ msg << applicationName.c_str();
msg << quint32(0); // ID of previous notification to replace
msg << imageScaler.getScaledImage(picture, 48).string().c_str(); // Icon to display
- msg << P2QSTRING(subject); // Summary / Header of the message to display
+ msg << subject.c_str(); // Summary / Header of the message to display
msg << body; // Body of the message to display
msg << actions; // Actions from which the user may choose
msg << hints; // Hints to the server displaying the message