diff --git a/src/ui/explorebrowser.cpp b/src/ui/explorebrowser.cpp index b69aac98..1124b1ab 100644 --- a/src/ui/explorebrowser.cpp +++ b/src/ui/explorebrowser.cpp @@ -53,9 +53,9 @@ ExploreBrowser::ExploreBrowser(QWidget *parent, const QIcon &icon, const QString statusBar_->addPermanentWidget(statusBarWidget_); connect(statusBarWidget_, &ExploreStatusBarWidget::viewModeChanged, stackedWidget_, &QStackedWidget::setCurrentIndex); - connect(modListView_, &QWidget::customContextMenuRequested, this, &ExploreBrowser::on_modListView_customContextMenuRequested); - connect(modIconListView_, &QWidget::customContextMenuRequested, this, &ExploreBrowser::on_modIconListView_customContextMenuRequested); - connect(modTreeView_, &QWidget::customContextMenuRequested, this, &ExploreBrowser::on_modTreeView_customContextMenuRequested); + connect(modListView_, &QWidget::customContextMenuRequested, this, &ExploreBrowser::on_modListViewCustomContextMenuRequested); + connect(modIconListView_, &QWidget::customContextMenuRequested, this, &ExploreBrowser::on_modIconListViewCustomContextMenuRequested); + connect(modTreeView_, &QWidget::customContextMenuRequested, this, &ExploreBrowser::on_modTreeViewCustomContextMenuRequested); connect(modListView_->verticalScrollBar(), &QScrollBar::valueChanged, this , &ExploreBrowser::onListSliderChanged); connect(modIconListView_->verticalScrollBar(), &QScrollBar::valueChanged, this , &ExploreBrowser::onIconListSliderChanged); connect(modTreeView_->verticalScrollBar(), &QScrollBar::valueChanged, this , &ExploreBrowser::onTreeSliderChanged); @@ -158,19 +158,19 @@ void ExploreBrowser::updateTreeViewIndexWidget() } } -void ExploreBrowser::on_modListView_customContextMenuRequested(const QPoint &pos) +void ExploreBrowser::on_modListViewCustomContextMenuRequested(const QPoint &pos) { if(auto menu = getCustomContextMenu()) menu->exec(modListView_->viewport()->mapToGlobal(pos)); } -void ExploreBrowser::on_modIconListView_customContextMenuRequested(const QPoint &pos) +void ExploreBrowser::on_modIconListViewCustomContextMenuRequested(const QPoint &pos) { if(auto menu = getCustomContextMenu()) menu->exec(modIconListView_->viewport()->mapToGlobal(pos)); } -void ExploreBrowser::on_modTreeView_customContextMenuRequested(const QPoint &pos) +void ExploreBrowser::on_modTreeViewCustomContextMenuRequested(const QPoint &pos) { if(auto menu = getCustomContextMenu()) menu->exec(modTreeView_->viewport()->mapToGlobal(pos)); diff --git a/src/ui/explorebrowser.h b/src/ui/explorebrowser.h index 3c93fc02..137717e1 100644 --- a/src/ui/explorebrowser.h +++ b/src/ui/explorebrowser.h @@ -46,9 +46,9 @@ private slots: void onItemSelected(); void updateListViewIndexWidget(); void updateTreeViewIndexWidget(); - void on_modListView_customContextMenuRequested(const QPoint &pos); - void on_modIconListView_customContextMenuRequested(const QPoint &pos); - void on_modTreeView_customContextMenuRequested(const QPoint &pos); + void on_modListViewCustomContextMenuRequested(const QPoint &pos); + void on_modIconListViewCustomContextMenuRequested(const QPoint &pos); + void on_modTreeViewCustomContextMenuRequested(const QPoint &pos); void onDoubleClicked(const QModelIndex &index); protected: