diff --git a/groundStation/gui/MicroCART/mainwindow.cpp b/groundStation/gui/MicroCART/mainwindow.cpp index d75a5a0d1bbb9cbf570a01abb9340931876441e9..8eed5261fc0bee1fec1a916e4bbfac41eef739a1 100644 --- a/groundStation/gui/MicroCART/mainwindow.cpp +++ b/groundStation/gui/MicroCART/mainwindow.cpp @@ -25,6 +25,9 @@ MainWindow::MainWindow(QWidget *parent) : /* Set up environment variables */ findChild<QLineEdit *>("socketPath")->setText(QProcessEnvironment::systemEnvironment().value("UCART_SOCKET")); + /* Idiot lights */ + findChild<QLabel *>("noGraphWarning1")->setStyleSheet("QLabel {color : red; }"); + /* Create a thread for workers */ QThread* workerThread = new QThread(this); @@ -155,10 +158,12 @@ void MainWindow::on_chooseBackend_clicked() void MainWindow::newNodes(QStringList blocks) { QComboBox * select = findChild<QComboBox *>("nodeSelect"); - select->clear(); /* Hopefully this clears the list */ + select->clear(); select->addItems(blocks); - this->findChild<QLabel *>("noGraphWarning1")->setEnabled(true); - this->findChild<QLabel *>("noGraphWarning2")->setEnabled(true); + + this->findChild<QLabel *>("noGraphWarning1")->setVisible(false); + this->findChild<QLabel *>("noGraphWarning2")->setVisible(false); + this->findChild<QWidget *>("noGraphWarningLine")->setVisible(false); } diff --git a/groundStation/gui/MicroCART/mainwindow.ui b/groundStation/gui/MicroCART/mainwindow.ui index 6d54681188a42502d3fe28a736d2432a384605d3..2931a125f4b689f91261e140f168b56c8d20355a 100644 --- a/groundStation/gui/MicroCART/mainwindow.ui +++ b/groundStation/gui/MicroCART/mainwindow.ui @@ -329,6 +329,13 @@ </property> </widget> </item> + <item> + <widget class="Line" name="noGraphWarningLine"> + <property name="orientation"> + <enum>Qt::Horizontal</enum> + </property> + </widget> + </item> <item> <layout class="QHBoxLayout" name="horizontalLayout_3"> <item>