forked from qt-creator/qt-creator
Don't clash signal names with other methods
Amends d2e1feceac
Change-Id: Icbd1179b29a9284d4dd64d3e4609a701a0708510
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -353,7 +353,7 @@ void BookmarkWidget::activated(const QModelIndex &index)
|
||||
emit linkActivated(data);
|
||||
}
|
||||
|
||||
void BookmarkWidget::customContextMenuRequested(const QPoint &point)
|
||||
void BookmarkWidget::showContextMenu(const QPoint &point)
|
||||
{
|
||||
QModelIndex index = treeView->indexAt(point);
|
||||
if (!index.isValid())
|
||||
@@ -449,7 +449,7 @@ void BookmarkWidget::setup()
|
||||
connect(treeView, &TreeView::collapsed, this, &BookmarkWidget::expand);
|
||||
connect(treeView, &TreeView::activated, this, &BookmarkWidget::activated);
|
||||
connect(treeView, &TreeView::customContextMenuRequested,
|
||||
this, &BookmarkWidget::customContextMenuRequested);
|
||||
this, &BookmarkWidget::showContextMenu);
|
||||
|
||||
filterBookmarkModel->setFilterKeyColumn(0);
|
||||
filterBookmarkModel->setDynamicSortFilter(true);
|
||||
|
@@ -117,7 +117,7 @@ private:
|
||||
void filterChanged();
|
||||
void expand(const QModelIndex& index);
|
||||
void activated(const QModelIndex &index);
|
||||
void customContextMenuRequested(const QPoint &point);
|
||||
void showContextMenu(const QPoint &point);
|
||||
void setup();
|
||||
void expandItems();
|
||||
bool eventFilter(QObject *object, QEvent *event) override;
|
||||
|
Reference in New Issue
Block a user