Changeset 3833 in ntrip for trunk/BNC/teqcdlg.cpp
- Timestamp:
- Apr 11, 2012, 12:10:26 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/teqcdlg.cpp
r3831 r3833 46 46 using namespace std; 47 47 48 const QString timeFmtString = "yyyy-MM-dd hh:mm:ss";49 48 50 49 // Constructor … … 55 54 56 55 int ww = QFontMetrics(font()).width('w'); 56 57 const QString timeFmtString = "yyyy-MM-dd hh:mm:ss"; 57 58 58 59 _teqcRnxVersion = new QComboBox(this); … … 79 80 _teqcSampling->setMaximumWidth(7*ww); 80 81 82 // Read Options 83 // ------------ 84 // settings.setValue("teqcRnxVersion" , _teqcRnxVersion->currentText()); 85 // settings.setValue("teqcSampling" , _teqcSampling->value()); 86 // settings.setValue("teqcStartDateTime" , _teqcStartDateTime->dateTime().toString(Qt::ISODate)); 87 // settings.setValue("teqcEndDateTime" , _teqcEndDateTime->dateTime().toString(Qt::ISODate)); 88 // settings.setValue("teqcOldMarkerName" , _teqcOldMarkerName->text()); 89 // settings.setValue("teqcNewMarkerName" , _teqcNewMarkerName->text()); 90 // settings.setValue("teqcOldAntennaName" , _teqcOldAntennaName->text()); 91 // settings.setValue("teqcNewAntennaName" , _teqcNewAntennaName->text()); 92 // settings.setValue("teqcOldReceiverName", _teqcOldReceiverName->text()); 93 // settings.setValue("teqcNewReceiverName", _teqcNewReceiverName->text()); 94 95 bncSettings settings; 96 97 if (settings.value("teqcStartDateTime").toString().isEmpty()) { 98 _teqcStartDateTime->setDateTime(QDateTime::fromString("1967-11-02T00:00:00", Qt::ISODate)); 99 } 100 else { 101 _teqcStartDateTime->setDateTime(settings.value("teqcStartDateTime").toDateTime()); 102 } 103 104 // Dialog Layout 105 // ------------- 81 106 QGridLayout* grid = new QGridLayout; 82 107 … … 175 200 settings.setValue("teqcRnxVersion" , _teqcRnxVersion->currentText()); 176 201 settings.setValue("teqcSampling" , _teqcSampling->value()); 177 settings.setValue("teqcStartDateTime" , _teqcStartDateTime->dateTime().toString( timeFmtString));178 settings.setValue("teqcEndDateTime" , _teqcEndDateTime->dateTime().toString( timeFmtString));202 settings.setValue("teqcStartDateTime" , _teqcStartDateTime->dateTime().toString(Qt::ISODate)); 203 settings.setValue("teqcEndDateTime" , _teqcEndDateTime->dateTime().toString(Qt::ISODate)); 179 204 settings.setValue("teqcOldMarkerName" , _teqcOldMarkerName->text()); 180 205 settings.setValue("teqcNewMarkerName" , _teqcNewMarkerName->text());
Note:
See TracChangeset
for help on using the changeset viewer.