[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:21:08 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=b0f8154
The following commit has been merged in the master branch:
commit b0f81549b958e4424d348317ebc7358d71e6c439
Author: Lasath Fernando <kde at lasath.org>
Date: Fri Feb 3 20:57:37 2012 +1100
Change "Urls" property from QList<QString> to QList<KUrl>
---
lib/url-filter.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lib/url-filter.cpp b/lib/url-filter.cpp
index 1990d18..3c86ad0 100644
--- a/lib/url-filter.cpp
+++ b/lib/url-filter.cpp
@@ -21,6 +21,7 @@
#include <QImageReader>
+#include <KUrl>
#include <KProtocolInfo>
#include <KDebug>
@@ -32,7 +33,7 @@ UrlFilter::UrlFilter(QObject *parent)
void UrlFilter::filterMessage(Message &info) {
QString message = info.mainMessagePart();
//FIXME: make "Urls" into a constant
- QStringList urls = info.property("Urls").toStringList();
+ QVariantList urls = info.property("Urls").toList();
// link detection
QRegExp link(QLatin1String("\b(?:(\w+)://|(www\.))([^\s]+)"));
@@ -80,7 +81,7 @@ void UrlFilter::filterMessage(Message &info) {
fromIndex += realUrl.length();
}
- urls.append(realUrl);
+ urls.append(KUrl(realUrl));
} else {
fromIndex += link.matchedLength();
}
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list