Changeset View
Changeset View
Standalone View
Standalone View
src/search/dolphinsearchbox.cpp
Show First 20 Lines • Show All 524 Lines • ▼ Show 20 Line(s) | 519 | #ifdef HAVE_BALOO | |||
---|---|---|---|---|---|
525 | 525 | | |||
526 | const QString customDir = query.includeFolder(); | 526 | const QString customDir = query.includeFolder(); | ||
527 | if (!customDir.isEmpty()) { | 527 | if (!customDir.isEmpty()) { | ||
528 | setSearchPath(QUrl::fromLocalFile(customDir)); | 528 | setSearchPath(QUrl::fromLocalFile(customDir)); | ||
529 | } else { | 529 | } else { | ||
530 | setSearchPath(QUrl::fromLocalFile(QDir::homePath())); | 530 | setSearchPath(QUrl::fromLocalFile(QDir::homePath())); | ||
531 | } | 531 | } | ||
532 | 532 | | |||
533 | m_facetsWidget->resetOptions(); | ||||
534 | | ||||
533 | setText(query.searchString()); | 535 | setText(query.searchString()); | ||
534 | 536 | | |||
535 | QStringList types = query.types(); | 537 | QStringList types = query.types(); | ||
536 | if (!types.isEmpty()) { | 538 | if (!types.isEmpty()) { | ||
537 | m_facetsWidget->setFacetType(types.first()); | 539 | m_facetsWidget->setFacetType(types.first()); | ||
538 | } | 540 | } | ||
539 | 541 | | |||
540 | const QStringList subTerms = query.searchString().split(' ', QString::SkipEmptyParts); | 542 | const QStringList subTerms = query.searchString().split(' ', QString::SkipEmptyParts); | ||
Show All 24 Lines |