aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Tillmanns <marcus.tillmanns@qt.io>2024-03-11 16:38:26 +0100
committerMarcus Tillmanns <marcus.tillmanns@qt.io>2024-03-12 08:34:50 +0000
commitda3bc4e86e4fce7132a1898b4234c20693cba1aa (patch)
tree4f2a0ce5cc2229dba3794b075a03e832056f7e65
parent726b023c7836212c3627e50d65e4f1e177f4fd03 (diff)
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>
-rw-r--r--src/plugins/terminal/terminalwidget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/terminal/terminalwidget.cpp b/src/plugins/terminal/terminalwidget.cpp
index 9395172ddb..2bd0fa403d 100644
--- a/src/plugins/terminal/terminalwidget.cpp
+++ b/src/plugins/terminal/terminalwidget.cpp
@@ -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);