Remove uses QOverload<const QString &>::of(&QComboBox::currentIndexChanged)

Gone in Qt 6.

Task-number: QTCREATORBUG-24098
Change-Id: I7ab2dcb9b7c71a3b0d07f05162ef2752e02dc881
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-06-19 10:14:47 +02:00
parent f9a5ad4d3c
commit 3ec4afff0e
9 changed files with 20 additions and 23 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, QOverload<int>::of(&QComboBox::currentIndexChanged),
this, &BookmarkDialog::selectBookmarkFolder);
connect(ui.treeView, &TreeView::customContextMenuRequested,
@@ -188,11 +187,9 @@ void BookmarkDialog::textChanged(const QString& string)
ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(!string.isEmpty());
}
void BookmarkDialog::selectBookmarkFolder(const QString &folderName)
void BookmarkDialog::selectBookmarkFolder(int index)
{
if (folderName.isEmpty())
return;
const QString folderName = ui.bookmarkFolders->itemText(index);
if (folderName == tr("Bookmarks")) {
ui.treeView->clearSelection();
return;