You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2a45134 qt: Add shortcuts for console font resize buttons (Hennadii Stepanov)
a2e122f qt: Add GUIUtil::AddButtonShortcut (Hennadii Stepanov)
4ee9ee7 qt: Use native presentation of shortcut (Hennadii Stepanov)
Pull request description:
On `master` the only way to resize the console font is to manually move your mouse and click the resize buttons. This PR introduces convenient keyboard shortcuts to resize the console font.
The common resize shortcuts for applications are `Ctrl+=`/`Ctrl++` and `Ctrl+-`/`Ctrl+_`. This means that the resize QPushButtons need two shortcuts each, but you cannot assign multiple shortcuts to a QPushButton. See: https://doc.qt.io/qt-5/qabstractbutton.html#shortcut-prop
To get around this, we introduce a new function in `guiutil`, which connects a supplied `QKeySequence` shortcut to a `QAbstractButton`. This function can be reused in other situations where more than one shortcut is needed for a button.
| PR on macOS | PR on Linux |
| ---------------- | ------------ |
|  |  |
ACKs for top commit:
hebasto:
re-ACK 2a45134
Talkless:
tACK 2a45134, tested on Debian Sid with Qt 5.15.2, shortcuts still work.
Tree-SHA512: e894ccb7e5c695ba83998c21a474d6c587c9c849f12ced665c5e0034feb6b143e41b32ba135cab6cfab22cbf153d5a52b1083b2a278e6dfca3f5ad14c0f6c573
message(CMD_REPLY, (tr("Welcome to the %1 RPC console.").arg(PACKAGE_NAME) + "<br>" +
946
-
tr("Use up and down arrows to navigate history, and %1 to clear screen.").arg("<b>"+clsKey+"</b>") + "<br>" +
947
-
tr("Type %1 for an overview of available commands.").arg("<b>help</b>") + "<br>" +
948
-
tr("For more information on using this console type %1.").arg("<b>help-console</b>") +
949
-
"<br><span class=\"secwarning\"><br>" +
950
-
tr("WARNING: Scammers have been active, telling users to type commands here, stealing their wallet contents. Do not use this console without fully understanding the ramifications of a command.") +
951
-
"</span>"),
952
-
true);
939
+
message(CMD_REPLY,
940
+
tr("Welcome to the %1 RPC console.").arg(PACKAGE_NAME) +
941
+
"<br>" +
942
+
tr("Use up and down arrows to navigate history, and %1 to clear screen.")
tr("Type %1 for an overview of available commands.").arg("<b>help</b>") +
950
+
"<br>" +
951
+
tr("For more information on using this console type %1.").arg("<b>help-console</b>") +
952
+
"<br><span class=\"secwarning\"><br>" +
953
+
tr("WARNING: Scammers have been active, telling users to type commands here, stealing their wallet contents. Do not use this console without fully understanding the ramifications of a command.") +
0 commit comments