Opening the console- or the debug-window (info tab) seems to be a action that many users do often. This PR adds a shortcut for opening the debug window (shift-ctrl-D) and one for showing directly the console (shift-ctrl-C). Considered to be a undocumented expert feature.
[Qt] add shortcurts for debug-/console-window #7000
pull jonasschnelli wants to merge 1 commits into bitcoin:master from jonasschnelli:2015/11/qt_shortcuts changing 4 files +26 −0-
jonasschnelli commented at 12:15 PM on November 12, 2015: contributor
-
laanwj commented at 12:21 PM on November 12, 2015: member
utACK
-
in src/qt/bitcoingui.cpp:None in 08ed38b8cb outdated
364 | @@ -364,6 +365,9 @@ void BitcoinGUI::createActions() 365 | connect(openAction, SIGNAL(triggered()), this, SLOT(openClicked())); 366 | } 367 | #endif // ENABLE_WALLET 368 | + 369 | + new QShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_C), this, SLOT(showDebugWindowActivateConsole()));
laanwj commented at 12:22 PM on November 12, 2015:This looks weird, allocating a freely-floating object, but I do think it is correct. The object will become a child of
*this, and automatically freed with it.
jonasschnelli commented at 12:29 PM on November 12, 2015:Right. It looks a bit strange. But i think it should compile fine and leaves no men-leak (and requires less code).
paveljanik commented at 12:32 PM on November 12, 2015: contributorBut anyway - 7000 is yours!
paveljanik commented at 12:32 PM on November 12, 2015: contributorBTW - will test on OS X later today - Ctrl key...
jonasschnelli commented at 12:39 PM on November 12, 2015: contributor@paveljanik the problem with a parameter for
showDebugWindow()is, that binding a parameter to a signal is non-trivial (requires aQSignalMapper) and result in a uncommon code. I have considered that but was going for the more clear way which not really involves more code line (maybe +2).I have testes it on OSX. QT automaps the
OSX-cmdkey toctrl. Needs testing on Linux/Windows.jonasschnelli force-pushed on Nov 12, 2015jonasschnelli commented at 12:42 PM on November 12, 2015: contributorforce push fixed @paveljanik's nits.
[Qt] add shortcurts for debug-/console-window 773ae4654ejonasschnelli force-pushed on Nov 12, 2015paveljanik commented at 1:19 PM on November 12, 2015: contributortested ACK
jonasschnelli referenced this in commit ddc90efaa8 on Nov 12, 2015jonasschnelli commented at 4:33 PM on November 12, 2015: contributorBinaries if someone likes to test this on Windows or Linux: https://bitcoin.jonasschnelli.ch/pulls/7000/
MarcoFalke commented at 5:15 PM on November 12, 2015: memberI need this!
tested ACK 773ae46
laanwj added the label RPC on Nov 13, 2015jonasschnelli added the label GUI on Nov 13, 2015jonasschnelli removed the label RPC on Nov 13, 2015jonasschnelli commented at 2:43 PM on November 13, 2015: contributorJust tested this also on Windows and Linux/Ubuntu. Works.
jonasschnelli merged this on Nov 16, 2015jonasschnelli closed this on Nov 16, 2015jonasschnelli referenced this in commit 814697c556 on Nov 16, 2015luke-jr referenced this in commit e611ab1906 on Nov 27, 2015rebroad commented at 4:02 PM on March 1, 2016: contributorWhy not document this?
laanwj commented at 4:58 PM on March 1, 2016: memberHah, would be awesome if someone wrote a manual/help function for the GUI in the first place...
DrahtBot locked this on Sep 8, 2021ContributorsLabels
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:15 UTC
More mirrored repositories can be found on mirror.b10c.me