Skip to content

Commit

Permalink
suppress auto connection warning
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniol-lck committed Feb 17, 2022
1 parent fe55038 commit 5216045
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions src/ui/explorebrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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));
Expand Down
6 changes: 3 additions & 3 deletions src/ui/explorebrowser.h
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5216045

Please sign in to comment.