Fixed up help.

This commit is contained in:
Ernie Pasveer
2022-05-13 19:27:48 -05:00
parent ca5b5a7608
commit 42b14fa2a8
5 changed files with 8 additions and 16 deletions
+2 -6
View File
@@ -15,7 +15,7 @@ SeerSourceBrowserWidget::SeerSourceBrowserWidget (QWidget* parent) : QWidget(par
setupUi(this);
// Setup the widgets
sourceSearchLineEdit->setPlaceholderText("Search...");
sourceSearchLineEdit->setPlaceholderText("Search regex...");
sourceSearchLineEdit->setClearButtonEnabled(true);
sourceTreeWidget->setMouseTracking(true);
sourceTreeWidget->resizeColumnToContents(0);
@@ -202,11 +202,7 @@ void SeerSourceBrowserWidget::handleSearchLineEdit (const QString& text) {
QList<QTreeWidgetItem*> matches;
if (text.contains('*')) {
matches = sourceTreeWidget->findItems(text, Qt::MatchWildcard | Qt::MatchRecursive, 0);
}else{
matches = sourceTreeWidget->findItems(text, Qt::MatchStartsWith | Qt::MatchRecursive, 0);
}
matches = sourceTreeWidget->findItems(text, Qt::MatchRegularExpression | Qt::MatchRecursive, 0);
QList<QTreeWidgetItem*>::const_iterator it = matches.begin();
QList<QTreeWidgetItem*>::const_iterator e = matches.end();