Permalink
Browse files

Changed range of RxIQmu spinbox & tidied code

  • Loading branch information...
1 parent fb8b4a6 commit 9501286b46074edc8d6256a9f807f063a774e1f7 @radi8 radi8 committed Jan 27, 2012
Showing with 11 additions and 7 deletions.
  1. +1 −1 trunk/src/QtRadio/Configure.cpp
  2. +9 −3 trunk/src/QtRadio/Configure.ui
  3. +1 −3 trunk/src/QtRadio/UI.cpp
View
2 trunk/src/QtRadio/Configure.cpp
@@ -703,5 +703,5 @@ void Configure::on_RxIQcheckBox_toggled(bool checked)
void Configure::on_RxIQspinBox_valueChanged(int spinValue)
{
- emit RxIQspinChanged((double)spinValue*0.01);
+ emit RxIQspinChanged((double)spinValue);
}
View
12 trunk/src/QtRadio/Configure.ui
@@ -39,7 +39,7 @@
</rect>
</property>
<property name="currentIndex">
- <number>4</number>
+ <number>0</number>
</property>
<widget class="QWidget" name="Server">
<attribute name="title">
@@ -1167,11 +1167,17 @@
<height>29</height>
</rect>
</property>
+ <property name="minimum">
+ <number>-10</number>
+ </property>
<property name="maximum">
- <number>100</number>
+ <number>30</number>
+ </property>
+ <property name="singleStep">
+ <number>2</number>
</property>
<property name="value">
- <number>25</number>
+ <number>10</number>
</property>
</widget>
<widget class="QLabel" name="label_33">
View
4 trunk/src/QtRadio/UI.cpp
@@ -2196,11 +2196,9 @@ void UI::setdspversion(long ver, QString vertxt){
void UI::RxIQcheckChanged(bool state)
{
- QString setit;
QString command;
- if(state) setit = "true"; else setit = "false";
- command.clear(); QTextStream(&command) << "SetIQEnable " << setit;
+ command.clear(); QTextStream(&command) << "SetIQEnable " << (state ? "true":"false");
connection.sendCommand(command);
}

0 comments on commit 9501286

Please sign in to comment.