mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
Finish reverting SVN dirs. Change Thread name in new GPSDisplay plugin away from the default Qt example to avoid conflicts.
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1225 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
e346b7f1bb
commit
895271a518
@ -38,7 +38,7 @@
|
||||
|
||||
|
||||
|
||||
class MyThread : public QThread
|
||||
class GpsDisplayThread : public QThread
|
||||
{
|
||||
public:
|
||||
QextSerialPort *port;
|
||||
@ -95,19 +95,19 @@ void GpsDisplayWidget::setPort(QextSerialPort* port)
|
||||
}
|
||||
|
||||
void GpsDisplayWidget::connectButtonClicked() {
|
||||
MyThread* myThread = new MyThread();
|
||||
myThread->setPort(port);
|
||||
myThread->start();
|
||||
GpsDisplayThread* gpsThread = new GpsDisplayThread();
|
||||
gpsThread->setPort(port);
|
||||
gpsThread->start();
|
||||
}
|
||||
|
||||
|
||||
void MyThread::setPort(QextSerialPort* port)
|
||||
void GpsDisplayThread::setPort(QextSerialPort* port)
|
||||
{
|
||||
|
||||
this->port=port;
|
||||
}
|
||||
|
||||
void MyThread::run()
|
||||
void GpsDisplayThread::run()
|
||||
{
|
||||
qDebug() << "Opening.";
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user