diff options
| author | Alex Richardson <[email protected]> | 2014-04-10 16:34:35 +0200 |
|---|---|---|
| committer | Alex Richardson <[email protected]> | 2014-05-05 23:05:33 +0200 |
| commit | 1ee5cd64881a790b55b1140f761f034187ac1804 (patch) | |
| tree | 84f2b19f43d2241a4b7dd9e268a7136067bf1a4e /src/search/filenamesearchprotocol.cpp | |
| parent | a6b03236d203fd9636a9b2108f4a75b70e2ce27e (diff) | |
make FileNameSearchProtocol::listDir override the KIO::SlaveBase method
The parameter changed from KUrl to QUrl -> we have to add this.
Found with -Woverloaded-virtual
Diffstat (limited to 'src/search/filenamesearchprotocol.cpp')
| -rw-r--r-- | src/search/filenamesearchprotocol.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/search/filenamesearchprotocol.cpp b/src/search/filenamesearchprotocol.cpp index ee7531879..fa42c3994 100644 --- a/src/search/filenamesearchprotocol.cpp +++ b/src/search/filenamesearchprotocol.cpp @@ -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(); |
