Skip to content
Snippets Groups Projects
Unverified Commit 1af4645e authored by Jake's avatar Jake
Browse files

Made idiot lights work

parent 35f031cc
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment