Commit b19391ed authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Improve GUI. Fix resume/suspend action

parent f40ddf72
......@@ -962,7 +962,10 @@ bool Guide::suspend()
if (state == GUIDE_SUSPENDED)
return true;
return guider->suspend();
if (state == GUIDE_GUIDING)
return guider->suspend();
else
return false;
}
bool Guide::resume()
......@@ -970,7 +973,10 @@ bool Guide::resume()
if (state == GUIDE_GUIDING)
return true;
return guider->resume();
if (state == GUIDE_SUSPENDED)
return guider->resume();
else
return false;
}
void Guide::setExposure(double value)
......
......@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>681</width>
<height>486</height>
<width>686</width>
<height>505</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_5">
......@@ -629,6 +629,12 @@
<layout class="QVBoxLayout" name="rightLayout">
<item>
<widget class="QWidget" name="guideWidget" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>320</width>
......@@ -1039,6 +1045,9 @@
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Preferred</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment