Changeset 70475 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 7, 2018 11:59:41 AM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/logviewer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchPanel.cpp
r70466 r70475 64 64 { 65 65 m_iSearchPosition = 0; 66 /* We start the search from the end of the doc. assuming log's end is more interesting: */ 66 67 search(BackwardSearch, true); 67 68 } … … 117 118 if (strSearchString.length()) 118 119 { 119 /* Reset the position to force the search restart from the document's beginnig: */120 /* Reset the position to force the search restart from the document's end: */ 120 121 m_iSearchPosition = 0; 121 122 search(BackwardSearch, true); … … 163 164 configureInfoLabels(); 164 165 emit sigHighlightingUpdated(); 166 } 167 168 void UIVMLogViewerSearchPanel::sltCaseSentitiveCheckBox() 169 { 170 refresh(); 171 } 172 173 void UIVMLogViewerSearchPanel::sltMatchWholeWordCheckBox() 174 { 175 refresh(); 165 176 } 166 177 … … 328 339 { 329 340 /* Prepare connections: */ 330 connect(m_pCloseButton, SIGNAL(clicked()), this, SLOT(hide())); 331 connect(m_pSearchEditor, SIGNAL(textChanged(const QString &)), 332 this, SLOT(findCurrent(const QString &))); 333 connect(m_pNextPrevButtons, SIGNAL(clicked(int)), this, SLOT(find(int))); 341 connect(m_pCloseButton, &UIMiniCancelButton::clicked, this, &UIVMLogViewerSearchPanel::hide); 342 connect(m_pSearchEditor, &UISearchField::textChanged, this, &UIVMLogViewerSearchPanel::findCurrent); 343 connect(m_pNextPrevButtons, &UIRoundRectSegmentedButton::clicked, this, &UIVMLogViewerSearchPanel::find); 334 344 connect(m_pHighlightAllCheckBox, &QCheckBox::stateChanged, 335 345 this, &UIVMLogViewerSearchPanel::sltHighlightAllCheckBox); 346 connect(m_pCaseSensitiveCheckBox, &QCheckBox::stateChanged, 347 this, &UIVMLogViewerSearchPanel::sltCaseSentitiveCheckBox); 348 connect(m_pMatchWholeWordCheckBox, &QCheckBox::stateChanged, 349 this, &UIVMLogViewerSearchPanel::sltMatchWholeWordCheckBox); 336 350 } 337 351 -
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerSearchPanel.h
r70308 r70475 51 51 * @param pViewer Specifies instance of VM Log-Viewer. */ 52 52 UIVMLogViewerSearchPanel(QWidget *pParent, UIVMLogViewerWidget *pViewer); 53 /** Resets the s aech position and starts a new search. */53 /** Resets the search position and starts a new search. */ 54 54 void refresh(); 55 55 void reset(); … … 69 69 void findCurrent(const QString &strSearchString); 70 70 void sltHighlightAllCheckBox(); 71 void sltCaseSentitiveCheckBox(); 72 void sltMatchWholeWordCheckBox(); 71 73 72 74 private:
Note:
See TracChangeset
for help on using the changeset viewer.