refs #621, URL from local file path

This commit is contained in:
Klaus Basan
2016-03-19 01:44:50 +01:00
parent 703a43c6fb
commit 468182da4c
2 changed files with 8 additions and 0 deletions

View File

@@ -200,6 +200,11 @@ namespace BlackMisc
return port == p;
}
CUrl CUrl::fromLocalFile(const QString &localFile)
{
return QUrl::fromLocalFile(localFile);
}
QString CUrl::stripQueryString(const QString query)
{
QString q(query.trimmed());

View File

@@ -147,6 +147,9 @@ namespace BlackMisc
//! Default port for given protocol
static bool isDefaultPort(const QString &protocol, int port);
//! From local file path
static CUrl fromLocalFile(const QString &localFile);
//! Convert to QUrl
operator QUrl() const { return this->toQUrl(); }