When searching, apply change in case sensitive option immediately.

Patch by Francesco Cecconi <francesco.cecconi@kdemail.net>

BUG: 273614
wilder-portage
Kurt Hindenburg 15 years ago
parent 35fae00159
commit 050819bb8d
  1. 10
      src/SessionController.cpp
  2. 1
      src/SessionController.h

@ -397,6 +397,7 @@ void SessionController::setSearchBar(IncrementalSearchBar* searchBar)
connect( _searchBar , SIGNAL(findNextClicked()) , this , SLOT(findNextInHistory()) );
connect( _searchBar , SIGNAL(findPreviousClicked()) , this , SLOT(findPreviousInHistory()) );
connect( _searchBar , SIGNAL(highlightMatchesToggled(bool)) , this , SLOT(highlightMatches(bool)) );
connect( _searchBar , SIGNAL(matchCaseToggled(bool)) , this , SLOT(changeSearchMatch()));
// if the search bar was previously active
// then re-enter search mode
@ -950,6 +951,15 @@ void SessionController::findPreviousInHistory()
beginSearch(_searchBar->searchText(),SearchHistoryTask::BackwardsSearch);
}
void SessionController::changeSearchMatch()
{
Q_ASSERT( _searchBar );
Q_ASSERT( _searchFilter );
// reset Selection for new case match
_view->screenWindow()->clearSelection();
beginSearch(_searchBar->searchText(),SearchHistoryTask::ForwardsSearch);
}
void SessionController::showHistoryOptions()
{
HistorySizeDialog* dialog = new HistorySizeDialog( QApplication::activeWindow() );

@ -185,6 +185,7 @@ private slots:
void searchHistory(bool showSearchBar);
void findNextInHistory();
void findPreviousInHistory();
void changeSearchMatch();
void saveHistory();
void showHistoryOptions();
void clearHistory();

Loading…
Cancel
Save