1. iorodeo
  2. bias

Commits

iorodeo  committed 5c71b89

Worked on format7 settings dialog.

  • Participants
  • Parent commits 71f20ef
  • Branches default

Comments (0)

Files changed (1)

File src/gui/format7_settings_dialog.cpp

View file
  • Ignore whitespace
     {
         QString valueString = roiXOffsetLineEditPtr_ -> text();
         int value = valueString.toInt();
+        settings_.offsetX = value;
         roiXOffsetSliderPtr_ -> blockSignals(true);
-        roiXOffsetSliderPtr_ -> setValue(value);
+        roiXOffsetSliderPtr_ -> setValue(value/info_.offsetHStepSize);
         roiXOffsetSliderPtr_ -> blockSignals(false);
         adjustOnXOffsetChange();
     }
     {
         QString valueString = roiYOffsetLineEditPtr_ -> text();
         int value = valueString.toInt();
+        settings_.offsetY = value;
         roiYOffsetSliderPtr_ -> blockSignals(true);
-        roiYOffsetSliderPtr_ -> setValue(value);
+        roiYOffsetSliderPtr_ -> setValue(value/info_.offsetHStepSize);
         roiYOffsetSliderPtr_ -> blockSignals(false);
         adjustOnYOffsetChange();
     }
     {
         QString valueString = roiXWidthLineEditPtr_ -> text();
         int value = valueString.toInt();
+        settings_.width = value;
         roiXWidthSliderPtr_ -> blockSignals(true);
-        roiXWidthSliderPtr_ -> setValue(value);
+        roiXWidthSliderPtr_ -> setValue(value/info_.imageHStepSize);
         roiXWidthSliderPtr_ -> blockSignals(false);
         adjustOnXWidthChange();
     }
     {
         QString valueString = roiYHeightLineEditPtr_ -> text();
         int value = valueString.toInt();
+        settings_.height = value;
         roiYHeightSliderPtr_ -> blockSignals(true);
-        roiYHeightSliderPtr_ -> setValue(value);
+        roiYHeightSliderPtr_ -> setValue(value/info_.imageVStepSize);
         roiYHeightSliderPtr_ -> blockSignals(false);
         adjustOnYHeightChange();
     }