Use QComboBox::currentTextChanged instead of currentIndexChanged

QComboBox::currentIndexChanged is depcrecated as of Qt 5.13 and
QComboBox::currentTextChanged is available since Qt 4.1

Change-Id: I97b8eb37765cbb7556cfbde87ea90f91f63bfa63
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Alessandro Portale
2019-05-27 10:24:56 +02:00
parent 4b92b7ac60
commit 25f9d9c434
5 changed files with 5 additions and 8 deletions

View File

@@ -95,8 +95,7 @@ BookmarkDialog::BookmarkDialog(BookmarkManager *manager, const QString &title,
&QStandardItemModel::itemChanged,
this, &BookmarkDialog::itemChanged);
connect(ui.bookmarkFolders,
QOverload<const QString &>::of(&QComboBox::currentIndexChanged),
connect(ui.bookmarkFolders, &QComboBox::currentTextChanged,
this, &BookmarkDialog::selectBookmarkFolder);
connect(ui.treeView, &TreeView::customContextMenuRequested,