Skip to content
This repository
Browse code

Changed range of RxIQmu spinbox & tidied code

  • Loading branch information...
commit 9501286b46074edc8d6256a9f807f063a774e1f7 1 parent fb8b4a6
radi8 authored January 27, 2012
2  trunk/src/QtRadio/Configure.cpp
@@ -703,5 +703,5 @@ void Configure::on_RxIQcheckBox_toggled(bool checked)
703 703
 
704 704
 void Configure::on_RxIQspinBox_valueChanged(int spinValue)
705 705
 {
706  
-    emit RxIQspinChanged((double)spinValue*0.01);
  706
+    emit RxIQspinChanged((double)spinValue);
707 707
 }
12  trunk/src/QtRadio/Configure.ui
@@ -39,7 +39,7 @@
39 39
     </rect>
40 40
    </property>
41 41
    <property name="currentIndex">
42  
-    <number>4</number>
  42
+    <number>0</number>
43 43
    </property>
44 44
    <widget class="QWidget" name="Server">
45 45
     <attribute name="title">
@@ -1167,11 +1167,17 @@
1167 1167
         <height>29</height>
1168 1168
        </rect>
1169 1169
       </property>
  1170
+      <property name="minimum">
  1171
+       <number>-10</number>
  1172
+      </property>
1170 1173
       <property name="maximum">
1171  
-       <number>100</number>
  1174
+       <number>30</number>
  1175
+      </property>
  1176
+      <property name="singleStep">
  1177
+       <number>2</number>
1172 1178
       </property>
1173 1179
       <property name="value">
1174  
-       <number>25</number>
  1180
+       <number>10</number>
1175 1181
       </property>
1176 1182
      </widget>
1177 1183
      <widget class="QLabel" name="label_33">
4  trunk/src/QtRadio/UI.cpp
@@ -2196,11 +2196,9 @@ void UI::setdspversion(long ver, QString vertxt){
2196 2196
 
2197 2197
 void UI::RxIQcheckChanged(bool state)
2198 2198
 {
2199  
-    QString setit;
2200 2199
     QString command;
2201 2200
 
2202  
-    if(state) setit = "true"; else setit = "false";
2203  
-    command.clear(); QTextStream(&command) << "SetIQEnable " << setit;
  2201
+    command.clear(); QTextStream(&command) << "SetIQEnable " << (state ? "true":"false");
2204 2202
     connection.sendCommand(command);
2205 2203
 }
2206 2204
 

0 notes on commit 9501286

Please sign in to comment.
Something went wrong with that request. Please try again.