Changeset View
Changeset View
Standalone View
Standalone View
src/widgets/kurifilter.cpp
Show First 20 Lines • Show All 261 Lines • ▼ Show 20 Line(s) | |||||
262 | { | 262 | { | ||
263 | } | 263 | } | ||
264 | 264 | | |||
265 | KUriFilterData::KUriFilterData(const QUrl &url) | 265 | KUriFilterData::KUriFilterData(const QUrl &url) | ||
266 | : d(new KUriFilterDataPrivate(url, url.toString())) | 266 | : d(new KUriFilterDataPrivate(url, url.toString())) | ||
267 | { | 267 | { | ||
268 | } | 268 | } | ||
269 | 269 | | |||
270 | KUriFilterData::KUriFilterData(const QString &url) | 270 | KUriFilterData::KUriFilterData(const QString &url) | ||
dfaure: I would very very much like that KUriFilterData is left untouched if possible. Is there no way… | |||||
271 | : d(new KUriFilterDataPrivate(QUrl::fromUserInput(url), url)) | 271 | : d(new KUriFilterDataPrivate(QUrl::fromUserInput(url, QLatin1String(""), QUrl::AssumeLocalFile), url)) | ||
272 | { | 272 | { | ||
273 | } | 273 | } | ||
274 | 274 | | |||
275 | KUriFilterData::KUriFilterData(const KUriFilterData &other) | 275 | KUriFilterData::KUriFilterData(const KUriFilterData &other) | ||
276 | : d(new KUriFilterDataPrivate(other.d)) | 276 | : d(new KUriFilterDataPrivate(other.d)) | ||
277 | { | 277 | { | ||
278 | } | 278 | } | ||
279 | 279 | | |||
▲ Show 20 Lines • Show All 420 Lines • Show Last 20 Lines |
I would very very much like that KUriFilterData is left untouched if possible. Is there no way do call this in the caller instead? (which would then call the QUrl method)
The whole point of KUriFilterData was to not have any string-url conversion logic itself, but leave that to the actual uri filters.