forked from qt-creator/qt-creator
Don't clash signal names with other methods
In case when signal name clashes with other method name - rename accordingly. Remove some repeated signal declarations - they are already declared in superclass. Change-Id: Ie1430b85d6436d26996494fa44c7554fb354b6ce Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -99,7 +99,7 @@ BookmarkDialog::BookmarkDialog(BookmarkManager *manager, const QString &title,
|
||||
this, &BookmarkDialog::selectBookmarkFolder);
|
||||
|
||||
connect(ui.treeView, &TreeView::customContextMenuRequested,
|
||||
this, &BookmarkDialog::customContextMenuRequested);
|
||||
this, &BookmarkDialog::showContextMenu);
|
||||
|
||||
connect(ui.treeView->selectionModel(), &QItemSelectionModel::currentChanged,
|
||||
this, &BookmarkDialog::currentChanged);
|
||||
@@ -208,7 +208,7 @@ void BookmarkDialog::selectBookmarkFolder(int index)
|
||||
}
|
||||
}
|
||||
|
||||
void BookmarkDialog::customContextMenuRequested(const QPoint &point)
|
||||
void BookmarkDialog::showContextMenu(const QPoint &point)
|
||||
{
|
||||
QModelIndex index = ui.treeView->indexAt(point);
|
||||
if (!index.isValid())
|
||||
|
||||
Reference in New Issue
Block a user