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:
Sebastian Trueg 2010-05-19 19:31:40 +00:00
parent bcaac21c4e
commit b7f2464709

View file

@ -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)