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);
|
emit linkActivated(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BookmarkWidget::customContextMenuRequested(const QPoint &point)
|
void BookmarkWidget::showContextMenu(const QPoint &point)
|
||||||
{
|
{
|
||||||
QModelIndex index = treeView->indexAt(point);
|
QModelIndex index = treeView->indexAt(point);
|
||||||
if (!index.isValid())
|
if (!index.isValid())
|
||||||
@@ -449,7 +449,7 @@ void BookmarkWidget::setup()
|
|||||||
connect(treeView, &TreeView::collapsed, this, &BookmarkWidget::expand);
|
connect(treeView, &TreeView::collapsed, this, &BookmarkWidget::expand);
|
||||||
connect(treeView, &TreeView::activated, this, &BookmarkWidget::activated);
|
connect(treeView, &TreeView::activated, this, &BookmarkWidget::activated);
|
||||||
connect(treeView, &TreeView::customContextMenuRequested,
|
connect(treeView, &TreeView::customContextMenuRequested,
|
||||||
this, &BookmarkWidget::customContextMenuRequested);
|
this, &BookmarkWidget::showContextMenu);
|
||||||
|
|
||||||
filterBookmarkModel->setFilterKeyColumn(0);
|
filterBookmarkModel->setFilterKeyColumn(0);
|
||||||
filterBookmarkModel->setDynamicSortFilter(true);
|
filterBookmarkModel->setDynamicSortFilter(true);
|
||||||
|
@@ -117,7 +117,7 @@ private:
|
|||||||
void filterChanged();
|
void filterChanged();
|
||||||
void expand(const QModelIndex& index);
|
void expand(const QModelIndex& index);
|
||||||
void activated(const QModelIndex &index);
|
void activated(const QModelIndex &index);
|
||||||
void customContextMenuRequested(const QPoint &point);
|
void showContextMenu(const QPoint &point);
|
||||||
void setup();
|
void setup();
|
||||||
void expandItems();
|
void expandItems();
|
||||||
bool eventFilter(QObject *object, QEvent *event) override;
|
bool eventFilter(QObject *object, QEvent *event) override;
|
||||||
|
Reference in New Issue
Block a user