From 45d7a64e5beb84e1ac9b25a5439f785189beded6 Mon Sep 17 00:00:00 2001 From: Anmol Gautam Date: Sun, 29 Jul 2018 22:33:43 +0530 Subject: [PATCH] removed method 'getPathFromUrl' from QzTools --- src/lib/tools/qztools.cpp | 13 ------------- src/lib/tools/qztools.h | 1 - 2 files changed, 14 deletions(-) diff --git a/src/lib/tools/qztools.cpp b/src/lib/tools/qztools.cpp index dd5d2c79a..5d17e3e4b 100644 --- a/src/lib/tools/qztools.cpp +++ b/src/lib/tools/qztools.cpp @@ -1018,16 +1018,3 @@ void QzTools::paintDropIndicator(QWidget *widget, const QRect &r) 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; - } -} diff --git a/src/lib/tools/qztools.h b/src/lib/tools/qztools.h index 834c92378..1187eec2a 100644 --- a/src/lib/tools/qztools.h +++ b/src/lib/tools/qztools.h @@ -98,7 +98,6 @@ public: } static void paintDropIndicator(QWidget *widget, const QRect &r); - static QString getPathFromUrl(const QUrl &url); }; #endif // QZTOOLS_H