Changeset View
Changeset View
Standalone View
Standalone View
src/dolphinviewcontainer.cpp
Show First 20 Lines • Show All 343 Lines • ▼ Show 20 Line(s) | |||||
344 | 344 | | |||
345 | bool DolphinViewContainer::isFilterBarVisible() const | 345 | bool DolphinViewContainer::isFilterBarVisible() const | ||
346 | { | 346 | { | ||
347 | return m_filterBar->isVisible(); | 347 | return m_filterBar->isVisible(); | ||
348 | } | 348 | } | ||
349 | 349 | | |||
350 | void DolphinViewContainer::setSearchModeEnabled(bool enabled) | 350 | void DolphinViewContainer::setSearchModeEnabled(bool enabled) | ||
351 | { | 351 | { | ||
352 | | ||||
353 | emit sendSearchState(enabled); | ||||
354 | | ||||
352 | if (enabled == isSearchModeEnabled()) { | 355 | if (enabled == isSearchModeEnabled()) { | ||
353 | if (enabled && !m_searchBox->hasFocus()) { | 356 | if (enabled && !m_searchBox->hasFocus()) { | ||
354 | m_searchBox->setFocus(); | 357 | m_searchBox->setFocus(); | ||
355 | m_searchBox->selectAll(); | 358 | m_searchBox->selectAll(); | ||
356 | } | 359 | } | ||
357 | return; | 360 | return; | ||
358 | } | 361 | } | ||
359 | 362 | | |||
▲ Show 20 Lines • Show All 362 Lines • Show Last 20 Lines |