mirror of
https://invent.kde.org/system/dolphin
synced 2024-08-22 01:40:02 +00:00
make FileNameSearchProtocol::listDir override the KIO::SlaveBase method
The parameter changed from KUrl to QUrl -> we have to add this. Found with -Woverloaded-virtual
This commit is contained in:
parent
a6b03236d2
commit
1ee5cd6488
|
@ -45,22 +45,22 @@ FileNameSearchProtocol::~FileNameSearchProtocol()
|
||||||
cleanup();
|
cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FileNameSearchProtocol::listDir(const KUrl& url)
|
void FileNameSearchProtocol::listDir(const QUrl& url)
|
||||||
{
|
{
|
||||||
cleanup();
|
cleanup();
|
||||||
|
|
||||||
const QString search = url.queryItem("search");
|
const QString search = url.queryItemValue("search");
|
||||||
if (!search.isEmpty()) {
|
if (!search.isEmpty()) {
|
||||||
m_regExp = new QRegExp(search, Qt::CaseInsensitive, QRegExp::Wildcard);
|
m_regExp = new QRegExp(search, Qt::CaseInsensitive, QRegExp::Wildcard);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_checkContent = false;
|
m_checkContent = false;
|
||||||
const QString checkContent = url.queryItem("checkContent");
|
const QString checkContent = url.queryItemValue("checkContent");
|
||||||
if (checkContent == QLatin1String("yes")) {
|
if (checkContent == QLatin1String("yes")) {
|
||||||
m_checkContent = true;
|
m_checkContent = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const QString urlString = url.queryItem("url");
|
const QString urlString = url.queryItemValue("url");
|
||||||
searchDirectory(KUrl(urlString));
|
searchDirectory(KUrl(urlString));
|
||||||
|
|
||||||
cleanup();
|
cleanup();
|
||||||
|
|
|
@ -39,7 +39,7 @@ public:
|
||||||
FileNameSearchProtocol(const QByteArray& pool, const QByteArray& app);
|
FileNameSearchProtocol(const QByteArray& pool, const QByteArray& app);
|
||||||
virtual ~FileNameSearchProtocol();
|
virtual ~FileNameSearchProtocol();
|
||||||
|
|
||||||
virtual void listDir(const KUrl& url);
|
virtual void listDir(const QUrl& url) Q_DECL_OVERRIDE;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void searchDirectory(const KUrl& directory);
|
void searchDirectory(const KUrl& directory);
|
||||||
|
|
Loading…
Reference in a new issue