Terminal: Rename "Close" action

Fixes: QTCREATORBUG-30520
Change-Id: I0fc2eaba533e6260763c0c02657cf3a7de7c9dce
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-03-11 16:38:26 +01:00
parent 726b023c78
commit da3bc4e86e

View File

@@ -280,9 +280,10 @@ void TerminalWidget::setupActions()
pasteAction.addOnTriggered(this, &TerminalWidget::pasteFromClipboard);
m_paste = make_registered(pasteAction);
ActionBuilder closeAction(this, Core::Constants::CLOSE);
closeAction.setContext(m_context);
closeAction.addOnTriggered(this, &TerminalWidget::closeTerminal);
ActionBuilder(this, Core::Constants::CLOSE)
.setContext(m_context)
.addOnTriggered(this, &TerminalWidget::closeTerminal)
.setText(Tr::tr("Close Terminal"));
// We do not register the close action, as we want it to be blocked if the keyboard is locked.
ActionBuilder clearTerminalAction(this, Constants::CLEAR_TERMINAL);