X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fdebugconsole.cpp;h=8f7c75807a4847f9ef33526fa4e0e2a268a8c75c;hb=a8ab790b2218d6131f12b622b1373ba62958f3ef;hp=60a57b5d2c64009e87d860007224b920d48c2d88;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce;p=quassel.git diff --git a/src/qtui/debugconsole.cpp b/src/qtui/debugconsole.cpp index 60a57b5d..8f7c7580 100644 --- a/src/qtui/debugconsole.cpp +++ b/src/qtui/debugconsole.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-2019 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,28 +15,23 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include "debugconsole.h" + #include "client.h" #include "signalproxy.h" -DebugConsole::DebugConsole(QWidget *parent) +DebugConsole::DebugConsole(QWidget* parent) : QDialog(parent) { ui.setupUi(this); - Client::signalProxy()->attachSignal(this, SIGNAL(scriptRequest(QString))); - Client::signalProxy()->attachSlot(SIGNAL(scriptResult(QString)), this, SLOT(scriptResult(QString))); + Client::signalProxy()->attachSignal(this, &DebugConsole::scriptRequest); + Client::signalProxy()->attachSlot(SIGNAL(scriptResult(QString)), this, &DebugConsole::scriptResult); } - -DebugConsole::~DebugConsole() -{ -} - - void DebugConsole::on_evalButton_clicked() { if (ui.selectCore->isChecked()) { @@ -44,7 +39,6 @@ void DebugConsole::on_evalButton_clicked() } } - void DebugConsole::scriptResult(QString result) { ui.resultLabel->setText(result);