Changeset 84587 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- May 28, 2020 12:31:13 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 138317
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp ¶
r84582 r84587 1571 1571 makeSureAtLeastOneItemSelected(); 1572 1572 } 1573 1574 /* Repeat search if search widget is visible: */ 1575 if (view() && view()->isSearchWidgetVisible()) 1576 view()->redoSearch(); 1573 1577 } 1574 1578 -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserSearchWidget.cpp ¶
r82968 r84587 64 64 } 65 65 66 void UIChooserSearchWidget::redoSearch() 67 { 68 if (!m_pLineEdit) 69 return; 70 sltHandleSearchTermChange(m_pLineEdit->text()); 71 } 72 66 73 void UIChooserSearchWidget::prepareWidgets() 67 74 { … … 93 100 m_pMainLayout->addWidget(m_pLineEdit); 94 101 m_pLineEdit->installEventFilter(this); 102 setFocusProxy(m_pLineEdit); 95 103 } 96 104 … … 116 124 { 117 125 if (m_pLineEdit) 118 { 119 connect(m_pLineEdit, &QILineEdit::textChanged, 120 this, &UIChooserSearchWidget::sltHandleSearchTermChange); 121 } 126 connect(m_pLineEdit, &QILineEdit::textChanged, this, &UIChooserSearchWidget::sltHandleSearchTermChange); 122 127 if (m_pCloseButton) 123 128 connect(m_pCloseButton, &QIToolButton::clicked, this, &UIChooserSearchWidget::sltHandleCloseButtonClick); -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserSearchWidget.h ¶
r82968 r84587 57 57 /** Appends the @a strSearchText to the current (if any) search text. */ 58 58 void appendToSearchString(const QString &strSearchText); 59 /** Repeats the last search again. */ 60 void redoSearch(); 59 61 60 62 protected: -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserView.cpp ¶
r84578 r84587 169 169 } 170 170 171 void UIChooserView::redoSearch() 172 { 173 /* Make sure search widget exists: */ 174 AssertPtrReturnVoid(m_pSearchWidget); 175 176 /* Pass request to search widget: */ 177 m_pSearchWidget->redoSearch(); 178 } 179 171 180 void UIChooserView::sltMinimumWidthHintChanged(int iHint) 172 181 { -
TabularUnified trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserView.h ¶
r84578 r84587 70 70 * turn appends it to the current (if any) search term. */ 71 71 void appendToSearchString(const QString &strSearchText); 72 /** Repeats the last search again. */ 73 void redoSearch(); 72 74 /** @} */ 73 75
Note:
See TracChangeset
for help on using the changeset viewer.