Convert SLOT macros to function pointers.
This commit is contained in:
@@ -1047,7 +1047,7 @@ void lcMainWindow::ModelTabContextMenuRequested(const QPoint& Point)
|
||||
mModelTabWidgetContextMenuIndex = mModelTabWidget->tabBar()->tabAt(Point);
|
||||
|
||||
if (mModelTabWidget->count() > 1)
|
||||
Menu->addAction(tr("Close Other Tabs"), this, SLOT(ModelTabCloseOtherTabs()));
|
||||
Menu->addAction(tr("Close Other Tabs"), this, &lcMainWindow::ModelTabCloseOtherTabs);
|
||||
if (mModelTabWidgetContextMenuIndex == mModelTabWidget->currentIndex())
|
||||
Menu->addAction(mActions[LC_VIEW_RESET_VIEWS]);
|
||||
|
||||
|
||||
@@ -576,7 +576,7 @@ void lcPartSelectionListView::CustomContextMenuRequested(QPoint Pos)
|
||||
if (!Palettes.empty())
|
||||
{
|
||||
for (const lcPartPalette& Palette : Palettes)
|
||||
SetMenu->addAction(Palette.Name, mPartSelectionWidget, SLOT(AddToPalette()));
|
||||
SetMenu->addAction(Palette.Name, mPartSelectionWidget, &lcPartSelectionWidget::AddToPalette);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -584,7 +584,7 @@ void lcPartSelectionListView::CustomContextMenuRequested(QPoint Pos)
|
||||
Action->setEnabled(false);
|
||||
}
|
||||
|
||||
QAction* RemoveAction = Menu->addAction(tr("Remove from Palette"), mPartSelectionWidget, SLOT(RemoveFromPalette()));
|
||||
QAction* RemoveAction = Menu->addAction(tr("Remove from Palette"), mPartSelectionWidget, &lcPartSelectionWidget::RemoveFromPalette);
|
||||
RemoveAction->setEnabled(mCategoryType == lcPartCategoryType::Palette);
|
||||
|
||||
Menu->exec(viewport()->mapToGlobal(Pos));
|
||||
@@ -1150,7 +1150,7 @@ void lcPartSelectionWidget::OptionsMenuAboutToShow()
|
||||
QMenu* Menu = (QMenu*)sender();
|
||||
Menu->clear();
|
||||
|
||||
Menu->addAction(tr("Edit Palettes..."), this, SLOT(EditPartPalettes()));
|
||||
Menu->addAction(tr("Edit Palettes..."), this, &lcPartSelectionWidget::EditPartPalettes);
|
||||
|
||||
Menu->addSeparator();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user