Skip to content
Snippets Groups Projects
Commit 2447b64a authored by burneykb's avatar burneykb
Browse files

couple of fixes in mainwindow.cpp

parent d9d43eae
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,7 @@ MainWindow::MainWindow(QWidget *parent) :
this, SLOT (updateTracker(float, float, float, float, float, float)));
connect(trackerWorker, SIGNAL (finished(float, float, float, float, float, float)),
this, SLOT (quad->updateQuad(float, float, float, float, float, float)));
quad, SLOT (quad->updateQuad(float, float, float, float, float, float)));
/* Create another worker for the control graph */
QThread * cwThread = new QThread(this);
......@@ -144,7 +144,7 @@ void MainWindow::updateTracker(float x, float y, float z, float p, float r, floa
void MainWindow::on_pbStart_clicked()
{
QProcessEnvironment::systemEnvironment().insert("UCART_SOCKET", ui->socketPath->text());
this->backendPid = startBackend(ui->backendPath->text().toStdString().c_str(), &backendPipe);
this->backendPid = startBackend(ui->backendPath_2->text().toStdString().c_str(), &backendPipe);
ui->pbStart->setEnabled(false);
ui->pbStop->setEnabled(true);
backendState = 1;
......@@ -178,7 +178,7 @@ void MainWindow::on_chooseBackend_clicked()
{
QString backendPath = QFileDialog::getOpenFileName(this,
tr("Path to Backend Executable"));
ui->backendPath->setText(backendPath);
ui->backendPath_2->setText(backendPath);
}
......
......@@ -9,8 +9,9 @@
#include <QtGui>
#include <QTransform>
class QuadItem : public QGraphicsItem
class QuadItem : public QObject, public QGraphicsItem
{
Q_OBJECT
public:
QuadItem();
QRectF boundingRect() const;
......
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