diff options
author | Chris Robinson <[email protected]> | 2020-08-31 17:48:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-08-31 17:48:26 -0700 |
commit | 02e51c0525507dd0bc59629851449d4d5ad97223 (patch) | |
tree | 34999f298eea29046637e2bc356471b9402ca967 | |
parent | af97a929522e031d326f382bd7104cf8b5651d95 (diff) |
Avoid using a deprecated function
-rw-r--r-- | utils/alsoft-config/mainwindow.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index b67df582..547dc300 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -475,10 +475,9 @@ MainWindow::MainWindow(QWidget *parent) : for(int i = 0;backendList[i].backend_name[0];i++) { QList<QListWidgetItem*> items = ui->backendListWidget->findItems( - backendList[i].full_string, Qt::MatchFixedString - ); - foreach(const QListWidgetItem *item, items) - ui->backendListWidget->setItemHidden(item, false); + backendList[i].full_string, Qt::MatchFixedString); + foreach(QListWidgetItem *item, items) + item->setHidden(false); } loadConfig(getDefaultConfigName()); |