mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
refs #621, URL from local file path
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user