Fixed naming of the dock area titlebar actions to be consistent

This commit is contained in:
Uwe Kindler 2020-06-30 09:59:42 +02:00
parent da20405a6a
commit 80eb628ea3

View File

@ -577,12 +577,12 @@ void CDockAreaTitleBar::contextMenuEvent(QContextMenuEvent* ev)
} }
QMenu Menu(this); QMenu Menu(this);
auto Action = Menu.addAction(tr("Detach Area"), this, SLOT(onUndockButtonClicked())); auto Action = Menu.addAction(tr("Detach Group"), this, SLOT(onUndockButtonClicked()));
Action->setEnabled(d->DockArea->features().testFlag(CDockWidget::DockWidgetFloatable)); Action->setEnabled(d->DockArea->features().testFlag(CDockWidget::DockWidgetFloatable));
Menu.addSeparator(); Menu.addSeparator();
Action = Menu.addAction(tr("Close Area"), this, SLOT(onCloseButtonClicked())); Action = Menu.addAction(tr("Close Group"), this, SLOT(onCloseButtonClicked()));
Action->setEnabled(d->DockArea->features().testFlag(CDockWidget::DockWidgetClosable)); Action->setEnabled(d->DockArea->features().testFlag(CDockWidget::DockWidgetClosable));
Menu.addAction(tr("Close Other Areas"), d->DockArea, SLOT(closeOtherAreas())); Menu.addAction(tr("Close Other Groups"), d->DockArea, SLOT(closeOtherAreas()));
Menu.exec(ev->globalPos()); Menu.exec(ev->globalPos());
} }