mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Ref T166, adjusted core to use changed connect lep_CommandLineInput
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#le_CommandLineInput {
|
||||
#lep_CommandLineInput {
|
||||
background-image: url(:/textures/icons/textures/texture-inner.jpg);
|
||||
margin-bottom: 5px;
|
||||
padding: 3px;
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -125,7 +125,7 @@ QTextEdit {
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0" colspan="3">
|
||||
<widget class="BlackGui::Components::CCommandInput" name="le_CommandLineInput"/>
|
||||
<widget class="BlackGui::Components::CCommandInput" name="lep_CommandLineInput"/>
|
||||
</item>
|
||||
<item row="3" column="0" colspan="3">
|
||||
<widget class="BlackGui::Components::CCoreInfoAreaComponent" name="comp_InfoArea" native="true"/>
|
||||
|
||||
Reference in New Issue
Block a user