Showing the changes to interface/src/ui/BaseLogDialog.cpp (1 of 5 files). Show all
Unified · Split
| @@ -95,7 +95,7 @@ void BaseLogDialog::initControls() { · 94 unmodified lines | |||
| 95 | connect(_logTextBox, SIGNAL(selectionChanged()), SLOT(updateSelection())); | 95 | connect(_logTextBox, SIGNAL(selectionChanged()), SLOT(updateSelection())); |
| 96 | } | 96 | } |
| 97 | 97 | ||
| 98 | void BaseLogDialog::showEvent(QShowEvent* event) { | 98 | void BaseLogDialog::showEvent(QShowEvent* event) { |
| 99 | showLogData(); | 99 | showLogData(); |
| 100 | } | 100 | } |
| 101 | 101 | ||
| @@ -124,7 +124,7 @@ void BaseLogDialog::handleSearchTextChanged(QString searchText) { · 22 unmodified lines | |||
| 124 | if (cursor.hasSelection()) { | 124 | if (cursor.hasSelection()) { |
| 125 | QString selectedTerm = cursor.selectedText(); | 125 | QString selectedTerm = cursor.selectedText(); |
| 126 | if (selectedTerm == searchText) { | 126 | if (selectedTerm == searchText) { |
| 127 | return; | 127 | return; |
| 128 | } | 128 | } |
| 129 | } | 129 | } |
| 130 | 130 | ||
| @@ -147,7 +147,8 @@ void BaseLogDialog::toggleSearchPrev() { · 16 unmodified lines | |||
| 147 | if (searchCursor.hasSelection()) { | 147 | if (searchCursor.hasSelection()) { |
| 148 | QString selectedTerm = searchCursor.selectedText(); | 148 | QString selectedTerm = searchCursor.selectedText(); |
| 149 | _logTextBox->find(selectedTerm, QTextDocument::FindBackward); | 149 | _logTextBox->find(selectedTerm, QTextDocument::FindBackward); |
| 150 | } else { | 150 | } |
| 151 | else { | ||
| 151 | handleSearchTextChanged(_searchTextBox->text()); | 152 | handleSearchTextChanged(_searchTextBox->text()); |
| 152 | } | 153 | } |
| 153 | } | 154 | } |
| @@ -157,7 +158,8 @@ void BaseLogDialog::toggleSearchNext() { · 3 unmodified lines | |||
| 157 | if (searchCursor.hasSelection()) { | 158 | if (searchCursor.hasSelection()) { |
| 158 | QString selectedTerm = searchCursor.selectedText(); | 159 | QString selectedTerm = searchCursor.selectedText(); |
| 159 | _logTextBox->find(selectedTerm); | 160 | _logTextBox->find(selectedTerm); |
| 160 | } else { | 161 | } |
| 162 | else { | ||
| 161 | handleSearchTextChanged(_searchTextBox->text()); | 163 | handleSearchTextChanged(_searchTextBox->text()); |
| 162 | } | 164 | } |
| 163 | } | 165 | } |