mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Use the user provided query as UDS_DISPLAY_NAME. For 4.6 I will most likely hide the 'userquery' URL query parameter in the Nepomuk::Query API
svn path=/trunk/KDE/kdebase/apps/; revision=1128624
This commit is contained in:
parent
bcaac21c4e
commit
b7f2464709
1 changed files with 8 additions and 1 deletions
|
@ -201,7 +201,14 @@ KUrl DolphinSearchOptionsConfigurator::directory() const
|
|||
KUrl DolphinSearchOptionsConfigurator::nepomukSearchUrl() const
|
||||
{
|
||||
const Nepomuk::Query::Query query = nepomukQuery();
|
||||
return query.isValid() ? query.toSearchUrl() : KUrl();
|
||||
if ( query.isValid() ) {
|
||||
KUrl url = query.toSearchUrl();
|
||||
url.addQueryItem( QLatin1String( "userquery" ), customSearchQuery() );
|
||||
return url;
|
||||
}
|
||||
else {
|
||||
return KUrl();
|
||||
}
|
||||
}
|
||||
|
||||
void DolphinSearchOptionsConfigurator::setCustomSearchQuery(const QString& searchQuery)
|
||||
|
|
Loading…
Reference in a new issue