m_urlNavigator(nullptr),
m_emptyTrashButton(nullptr),
m_searchBox(nullptr),
+ m_searchModeEnabled(false),
m_messageWidget(nullptr),
m_view(nullptr),
m_filterBar(nullptr),
}
m_urlNavigator->setLocationUrl(url);
}
+
+ m_searchModeEnabled = enabled;
}
bool DolphinViewContainer::isSearchModeEnabled() const
{
- return m_searchBox->isVisible();
+ return m_searchModeEnabled;
}
QString DolphinViewContainer::placesText() const
m_messageWidget->hide();
}
-QString DolphinViewContainer::getCaption() const
+QString DolphinViewContainer::caption() const
{
if (GeneralSettings::showFullPathInTitlebar()) {
if (!url().isLocalFile()) {
if (!matchedPlaces.isEmpty()) {
return placesModel->text(matchedPlaces.first());
}
+
+ if (isSearchModeEnabled()) {
+ if (currentSearchText().isEmpty()){
+ return i18n("Search");
+ } else {
+ return i18n("Search for %1", currentSearchText());
+ }
+ }
+
if (!url().isLocalFile()) {
QUrl adjustedUrl = url().adjusted(QUrl::StripTrailingSlash);
QString caption;
fileName = '/';
}
- if (isSearchModeEnabled()) {
- if(currentSearchText().isEmpty()){
- return i18n("Search");
- } else {
- return i18n("Search for %1", currentSearchText());
- }
- }
-
return fileName;
}
void DolphinViewContainer::slotUrlSelectionRequested(const QUrl& url)
{
- qCDebug(DolphinDebug) << "slotUrlSelectionRequested: " << url;
m_view->markUrlsAsSelected({url});
m_view->markUrlAsCurrent(url); // makes the item scroll into view
}