diff --git a/src/qt/forms/debugwindow.ui b/src/qt/forms/debugwindow.ui
index 7a25ba907e2..15e0d3fad99 100644
--- a/src/qt/forms/debugwindow.ui
+++ b/src/qt/forms/debugwindow.ui
@@ -470,13 +470,7 @@
-
-
-
-
- 24
- 24
-
-
+
Decrease font size
@@ -489,26 +483,14 @@
- 24
- 16
+ 22
+ 22
-
- false
-
-
- true
-
-
-
-
-
- 24
- 24
-
-
+
Increase font size
@@ -521,26 +503,14 @@
- 24
- 16
+ 22
+ 22
-
- false
-
-
- true
-
-
-
-
-
- 24
- 24
-
-
+
Clear console
@@ -554,15 +524,15 @@
:/icons/remove:/icons/remove
+
+
+ 22
+ 22
+
+
Ctrl+L
-
- false
-
-
- true
-
diff --git a/src/qt/rpcconsole.cpp b/src/qt/rpcconsole.cpp
index 731d6a4eef1..7a542806c2d 100644
--- a/src/qt/rpcconsole.cpp
+++ b/src/qt/rpcconsole.cpp
@@ -34,6 +34,7 @@
#include
#endif
+#include
#include
#include
#include
@@ -503,9 +504,9 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
ui->lineEdit->setMaxLength(16 * 1024 * 1024);
ui->messagesWidget->installEventFilter(this);
- connect(ui->clearButton, &QPushButton::clicked, [this] { clear(); });
- connect(ui->fontBiggerButton, &QPushButton::clicked, this, &RPCConsole::fontBigger);
- connect(ui->fontSmallerButton, &QPushButton::clicked, this, &RPCConsole::fontSmaller);
+ connect(ui->clearButton, &QAbstractButton::clicked, [this] { clear(); });
+ connect(ui->fontBiggerButton, &QAbstractButton::clicked, this, &RPCConsole::fontBigger);
+ connect(ui->fontSmallerButton, &QAbstractButton::clicked, this, &RPCConsole::fontSmaller);
connect(ui->btnClearTrafficGraph, &QPushButton::clicked, ui->trafficGraph, &TrafficGraphWidget::clear);
// disable the wallet selector by default