From 706a1b7b3dc90a714e8dfe6d8e92739d3ecb15b7 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Thu, 28 Sep 2017 04:32:36 +0200 Subject: [PATCH] Ref T166, adjusted core to use changed connect lep_CommandLineInput --- src/blackgui/share/qss/swiftcore.qss | 2 +- src/swiftcore/swiftcore.cpp | 7 ++++--- src/swiftcore/swiftcore.ui | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/blackgui/share/qss/swiftcore.qss b/src/blackgui/share/qss/swiftcore.qss index 865786669..8d7ed30d2 100644 --- a/src/blackgui/share/qss/swiftcore.qss +++ b/src/blackgui/share/qss/swiftcore.qss @@ -1,4 +1,4 @@ -#le_CommandLineInput { +#lep_CommandLineInput { background-image: url(:/textures/icons/textures/texture-inner.jpg); margin-bottom: 5px; padding: 3px; diff --git a/src/swiftcore/swiftcore.cpp b/src/swiftcore/swiftcore.cpp index 8a75b070f..97fc2a3de 100644 --- a/src/swiftcore/swiftcore.cpp +++ b/src/swiftcore/swiftcore.cpp @@ -57,6 +57,10 @@ CSwiftCore::CSwiftCore(QWidget *parent) : initDBusMode(); initMenus(); + // command line + ui->lep_CommandLineInput->setIdentifier(this->identifier()); + connect(ui->lep_CommandLineInput, &CCommandInput::commandEntered, sGui->getCoreFacade(), &CCoreFacade::parseCommandLine); + if (sGui->isParserOptionSet("start")) { startCore(sGui->getCmdDBusAddressValue()); } } @@ -173,9 +177,6 @@ void CSwiftCore::startCore(const QString &dBusAdress) ui->pb_StopCore->setEnabled(true); ui->gb_DBusMode->setDisabled(true); sGui->processEventsToRefreshGui(); - - // context - connect(ui->le_CommandLineInput, &CCommandInput::commandEntered, sGui->getCoreFacade(), &CCoreFacade::parseCommandLine); } void CSwiftCore::stopCore() diff --git a/src/swiftcore/swiftcore.ui b/src/swiftcore/swiftcore.ui index a4b850715..82ba3cd86 100644 --- a/src/swiftcore/swiftcore.ui +++ b/src/swiftcore/swiftcore.ui @@ -125,7 +125,7 @@ QTextEdit { - +