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();
|
||||
}
|
||||
|
||||
void FileNameSearchProtocol::listDir(const KUrl& url)
|
||||
void FileNameSearchProtocol::listDir(const QUrl& url)
|
||||
{
|
||||
cleanup();
|
||||
|
||||
const QString search = url.queryItem("search");
|
||||
const QString search = url.queryItemValue("search");
|
||||
if (!search.isEmpty()) {
|
||||
m_regExp = new QRegExp(search, Qt::CaseInsensitive, QRegExp::Wildcard);
|
||||
}
|
||||
|
||||
m_checkContent = false;
|
||||
const QString checkContent = url.queryItem("checkContent");
|
||||
const QString checkContent = url.queryItemValue("checkContent");
|
||||
if (checkContent == QLatin1String("yes")) {
|
||||
m_checkContent = true;
|
||||
}
|
||||
|
||||
const QString urlString = url.queryItem("url");
|
||||
const QString urlString = url.queryItemValue("url");
|
||||
searchDirectory(KUrl(urlString));
|
||||
|
||||
cleanup();
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
FileNameSearchProtocol(const QByteArray& pool, const QByteArray& app);
|
||||
virtual ~FileNameSearchProtocol();
|
||||
|
||||
virtual void listDir(const KUrl& url);
|
||||
virtual void listDir(const QUrl& url) Q_DECL_OVERRIDE;
|
||||
|
||||
private:
|
||||
void searchDirectory(const KUrl& directory);
|
||||
|
|
Loading…
Reference in a new issue