+ use quantity box in image orientation dialog
This commit is contained in:
parent
202a1be3f5
commit
18a61c0ef8
|
@ -30,6 +30,7 @@
|
||||||
#include <Gui/BitmapFactory.h>
|
#include <Gui/BitmapFactory.h>
|
||||||
#include <Gui/MainWindow.h>
|
#include <Gui/MainWindow.h>
|
||||||
#include <Base/Tools.h>
|
#include <Base/Tools.h>
|
||||||
|
#include <Base/UnitsApi.h>
|
||||||
|
|
||||||
#include "ui_ImageOrientationDialog.h"
|
#include "ui_ImageOrientationDialog.h"
|
||||||
#include "ImageOrientationDialog.h"
|
#include "ImageOrientationDialog.h"
|
||||||
|
@ -55,7 +56,7 @@ ImageOrientationDialog::~ImageOrientationDialog()
|
||||||
|
|
||||||
void ImageOrientationDialog::accept()
|
void ImageOrientationDialog::accept()
|
||||||
{
|
{
|
||||||
double offset = ui->Offset_doubleSpinBox->value();
|
double offset = ui->Offset_doubleSpinBox->value().getValue();
|
||||||
bool reverse = ui->Reverse_checkBox->isChecked();
|
bool reverse = ui->Reverse_checkBox->isChecked();
|
||||||
if (ui->XY_radioButton->isChecked()) {
|
if (ui->XY_radioButton->isChecked()) {
|
||||||
if (reverse) {
|
if (reverse) {
|
||||||
|
|
|
@ -83,9 +83,9 @@
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QDoubleSpinBox" name="Offset_doubleSpinBox">
|
<widget class="Gui::QuantitySpinBox" name="Offset_doubleSpinBox">
|
||||||
<property name="decimals">
|
<property name="unit" stdset="0">
|
||||||
<number>1</number>
|
<string notr="true">mm</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="minimum">
|
<property name="minimum">
|
||||||
<double>-999999999.000000000000000</double>
|
<double>-999999999.000000000000000</double>
|
||||||
|
@ -112,6 +112,13 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
<customwidgets>
|
||||||
|
<customwidget>
|
||||||
|
<class>Gui::QuantitySpinBox</class>
|
||||||
|
<extends>QWidget</extends>
|
||||||
|
<header>Gui/QuantitySpinBox.h</header>
|
||||||
|
</customwidget>
|
||||||
|
</customwidgets>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections>
|
<connections>
|
||||||
<connection>
|
<connection>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user