@@ -21,21 +21,22 @@ DialogAddStation::DialogAddStation(const QList<QString> &activeStationsList, Cri
21
21
QDialogButtonBox buttonBox (QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
22
22
buttonsLayout->addWidget (&buttonBox);
23
23
24
- _listNearStationsWidget = new QListWidget;
25
24
QLabel *stationHeader = new QLabel (" Active stations" );
26
- _listActiveStationsWidget->addItems (_activeStationsList);
27
25
stationLayout->addWidget (stationHeader);
26
+ _listActiveStationsWidget = new QComboBox;
27
+ _listActiveStationsWidget->addItems (_activeStationsList);
28
28
stationLayout->addWidget (_listActiveStationsWidget);
29
29
30
30
QLabel singleValueLabel (" Insert distance [m]:" );
31
31
_singleValueEdit = new QLineEdit;
32
- _singleValueEdit->setValidator (new QDoubleValidator ( 0.0 , 9999.0 , 1 ));
33
- _singleValueEdit->setText (QString::number ( getSingleValue ()) );
32
+ _singleValueEdit->setValidator (new QIntValidator ( 0 , 10000 ));
33
+ _singleValueEdit->setText (" 1000 " );
34
34
singleValueLayout->addWidget (&singleValueLabel);
35
35
singleValueLayout->addWidget (_singleValueEdit);
36
36
37
37
QLabel nearStationsLabel (" Near stations" );
38
38
nearStationsLayout->addWidget (&nearStationsLabel);
39
+ _listNearStationsWidget = new QListWidget;
39
40
_listNearStationsWidget->addItems (_nearStationsList);
40
41
nearStationsLayout->addWidget (_listNearStationsWidget);
41
42
0 commit comments