1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

removed method 'getPathFromUrl' from QzTools

This commit is contained in:
Anmol Gautam 2018-07-29 22:33:43 +05:30
parent cdaf8efbce
commit 45d7a64e5b
2 changed files with 0 additions and 14 deletions

View File

@ -1018,16 +1018,3 @@ void QzTools::paintDropIndicator(QWidget *widget, const QRect &r)
p.drawLine(x + i, r.top(), x + i, r.bottom()); p.drawLine(x + i, r.top(), x + i, r.bottom());
} }
} }
QString QzTools::getPathFromUrl(const QUrl &url)
{
if (url.isLocalFile()) {
return url.toLocalFile();
} else if (url.scheme() == QSL("qrc")) {
const QString path = url.toString(QUrl::RemoveScheme);
return QSL(":") + path;
} else {
const QString path = url.toString(QUrl::RemoveScheme);
return path;
}
}

View File

@ -98,7 +98,6 @@ public:
} }
static void paintDropIndicator(QWidget *widget, const QRect &r); static void paintDropIndicator(QWidget *widget, const QRect &r);
static QString getPathFromUrl(const QUrl &url);
}; };
#endif // QZTOOLS_H #endif // QZTOOLS_H