Changeset View
Changeset View
Standalone View
Standalone View
src/search/dolphinsearchbox.cpp
Show First 20 Lines • Show All 509 Lines • ▼ Show 20 Line(s) | 504 | { | |||
---|---|---|---|---|---|
510 | if (!customDir.isEmpty()) { | 510 | if (!customDir.isEmpty()) { | ||
511 | setSearchPath(QUrl::fromLocalFile(customDir)); | 511 | setSearchPath(QUrl::fromLocalFile(customDir)); | ||
512 | } else { | 512 | } else { | ||
513 | setSearchPath(QUrl::fromLocalFile(QDir::homePath())); | 513 | setSearchPath(QUrl::fromLocalFile(QDir::homePath())); | ||
514 | } | 514 | } | ||
515 | 515 | | |||
516 | setText(query.text()); | 516 | setText(query.text()); | ||
517 | 517 | | |||
518 | if (query.hasContentSearch()) { | ||||
519 | m_contentButton->setChecked(true); | ||||
520 | } else if (query.hasFileName()) { | ||||
521 | m_fileNameButton->setChecked(true); | ||||
522 | } | ||||
523 | | ||||
518 | m_facetsWidget->resetOptions(); | 524 | m_facetsWidget->resetOptions(); | ||
519 | m_facetsWidget->setFacetType(query.type()); | 525 | m_facetsWidget->setFacetType(query.type()); | ||
520 | const QStringList searchTerms = query.searchTerms(); | 526 | const QStringList searchTerms = query.searchTerms(); | ||
521 | for (const QString& searchTerm : searchTerms) { | 527 | for (const QString& searchTerm : searchTerms) { | ||
522 | m_facetsWidget->setRatingTerm(searchTerm); | 528 | m_facetsWidget->setRatingTerm(searchTerm); | ||
523 | } | 529 | } | ||
524 | 530 | | |||
525 | m_startSearchTimer->stop(); | 531 | m_startSearchTimer->stop(); | ||
Show All 19 Lines |