kopia lustrzana https://gitlab.com/eliggett/wfview
Fix for Windows compile
rodzic
6915d0d575
commit
69b643cf18
|
@ -1527,12 +1527,12 @@ void wfmain::setSerialDevicesUI()
|
|||
int vspCount=0;
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
ui->vspCombo->addItem(QString("None"), i++); // i=0 when this is run
|
||||
vspList.append(QString("None")); // i=0 when this is run
|
||||
vspData.append(vspCount);
|
||||
|
||||
foreach(const QSerialPortInfo & serialPortInfo, QSerialPortInfo::availablePorts())
|
||||
{
|
||||
ui->vspCombo->addItem(serialPortInfo.portName());
|
||||
vspList.append(serialPortInfo.portName(), vspCount);
|
||||
vspList.append(serialPortInfo.portName());
|
||||
vspData.append(vspCount);
|
||||
vspCount++;
|
||||
}
|
||||
|
|
21
wfmain.ui
21
wfmain.ui
|
@ -18,7 +18,7 @@
|
|||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="mainTab">
|
||||
<attribute name="title">
|
||||
|
@ -2189,8 +2189,8 @@
|
|||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>818</width>
|
||||
<height>324</height>
|
||||
<width>453</width>
|
||||
<height>235</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QGridLayout" name="gridLayout_2">
|
||||
|
@ -4171,7 +4171,6 @@
|
|||
<widget class="QPushButton" name="exitBtn">
|
||||
<property name="font">
|
||||
<font>
|
||||
<weight>50</weight>
|
||||
<bold>false</bold>
|
||||
</font>
|
||||
</property>
|
||||
|
@ -4191,13 +4190,19 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1042</width>
|
||||
<height>21</height>
|
||||
<height>20</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>QLedLabel</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global">qledlabel.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>QCustomPlot</class>
|
||||
<container>1</container>
|
||||
|
@ -4208,12 +4213,6 @@
|
|||
<header>meter.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
<customwidget>
|
||||
<class>QLedLabel</class>
|
||||
<extends>QWidget</extends>
|
||||
<header location="global">qledlabel.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
|
Ładowanie…
Reference in New Issue