diff options
author | hjk <[email protected]> | 2023-12-13 12:29:46 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2023-12-13 13:00:00 +0000 |
commit | b442ca38731e007ff57b7fb84461f758989b686f (patch) | |
tree | b78477cb9d8b862638078f631f15d780522f6af0 /src/plugins/terminal/terminalwidget.cpp | |
parent | 3b7d29d2a12429fe61f510c73e03b3048163d9d3 (diff) |
Core: Rename ActionBuilder::setOn* to addOn*
There could be multiple connections.
Change-Id: I7dbca9d24599f776b7d1f1bfa11826e3eeb5640a
Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/terminal/terminalwidget.cpp')
-rw-r--r-- | src/plugins/terminal/terminalwidget.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/terminal/terminalwidget.cpp b/src/plugins/terminal/terminalwidget.cpp index 60a8656cc92..defa019b3f3 100644 --- a/src/plugins/terminal/terminalwidget.cpp +++ b/src/plugins/terminal/terminalwidget.cpp @@ -271,42 +271,42 @@ void TerminalWidget::setupActions() ActionBuilder copyAction(this, Constants::COPY); copyAction.setContext(m_context); - copyAction.setOnTriggered(this, &TerminalWidget::copyToClipboard); + copyAction.addOnTriggered(this, &TerminalWidget::copyToClipboard); m_copy = make_registered(copyAction); ActionBuilder pasteAction(this, Constants::PASTE); pasteAction.setContext(m_context); - pasteAction.setOnTriggered(this, &TerminalWidget::pasteFromClipboard); + pasteAction.addOnTriggered(this, &TerminalWidget::pasteFromClipboard); m_paste = make_registered(pasteAction); ActionBuilder closeAction(this, Core::Constants::CLOSE); closeAction.setContext(m_context); - closeAction.setOnTriggered(this, &TerminalWidget::closeTerminal); + closeAction.addOnTriggered(this, &TerminalWidget::closeTerminal); m_close = make_registered(closeAction); ActionBuilder clearTerminalAction(this, Constants::CLEAR_TERMINAL); clearTerminalAction.setContext(m_context); - clearTerminalAction.setOnTriggered(this, &TerminalWidget::clearContents); + clearTerminalAction.addOnTriggered(this, &TerminalWidget::clearContents); m_clearTerminal = make_registered(clearTerminalAction); ActionBuilder clearSelectionAction(this, Constants::CLEARSELECTION); clearSelectionAction.setContext(m_context); - clearSelectionAction.setOnTriggered(this, &TerminalWidget::clearSelection); + clearSelectionAction.addOnTriggered(this, &TerminalWidget::clearSelection); m_clearSelection = make_registered(clearSelectionAction); ActionBuilder moveCursorWordLeftAction(this, Constants::MOVECURSORWORDLEFT); moveCursorWordLeftAction.setContext(m_context); - moveCursorWordLeftAction.setOnTriggered(this, &TerminalWidget::moveCursorWordLeft); + moveCursorWordLeftAction.addOnTriggered(this, &TerminalWidget::moveCursorWordLeft); m_moveCursorWordLeft = make_registered(moveCursorWordLeftAction); ActionBuilder moveCursorWordRightAction(this, Constants::MOVECURSORWORDRIGHT); moveCursorWordRightAction.setContext(m_context); - moveCursorWordRightAction.setOnTriggered(this, &TerminalWidget::moveCursorWordRight); + moveCursorWordRightAction.addOnTriggered(this, &TerminalWidget::moveCursorWordRight); m_moveCursorWordRight = make_registered(moveCursorWordRightAction); ActionBuilder selectAllAction(this, Constants::SELECTALL); selectAllAction.setContext(m_context); - selectAllAction.setOnTriggered(this, &TerminalWidget::selectAll); + selectAllAction.addOnTriggered(this, &TerminalWidget::selectAll); m_selectAll = make_registered(selectAllAction); // Ctrl+Q, the default "Quit" shortcut, is a useful key combination in a shell. |