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:
parent
cdaf8efbce
commit
45d7a64e5b
@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user