1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Use the propper spin box widget

This commit is contained in:
Martin Tůma 2020-10-04 22:37:24 +02:00
parent 7761935c29
commit a1be73fbba
2 changed files with 8 additions and 10 deletions

View File

@ -9,7 +9,6 @@
#include <QSpinBox>
#include <QMessageBox>
#include <QTabWidget>
#include <QDoubleSpinBox>
#include <QCheckBox>
#include "units.h"
#include "fileselectwidget.h"
@ -34,10 +33,10 @@ PNGExportDialog::PNGExportDialog(PNGExport &exp, QWidget *parent)
_height->setValue(_export.size.height());
_height->setSuffix(UNIT_SPACE + tr("px"));
_topMargin = new QDoubleSpinBox();
_bottomMargin = new QDoubleSpinBox();
_leftMargin = new QDoubleSpinBox();
_rightMargin = new QDoubleSpinBox();
_topMargin = new QSpinBox();
_bottomMargin = new QSpinBox();
_leftMargin = new QSpinBox();
_rightMargin = new QSpinBox();
_topMargin->setSuffix(UNIT_SPACE + tr("px"));
_bottomMargin->setSuffix(UNIT_SPACE + tr("px"));
_leftMargin->setSuffix(UNIT_SPACE + tr("px"));

View File

@ -6,7 +6,6 @@
class FileSelectWidget;
class QSpinBox;
class QDoubleSpinBox;
class QCheckBox;
struct PNGExport
@ -33,10 +32,10 @@ private:
FileSelectWidget *_fileSelect;
QSpinBox *_width;
QSpinBox *_height;
QDoubleSpinBox *_topMargin;
QDoubleSpinBox *_bottomMargin;
QDoubleSpinBox *_leftMargin;
QDoubleSpinBox *_rightMargin;
QSpinBox *_topMargin;
QSpinBox *_bottomMargin;
QSpinBox *_leftMargin;
QSpinBox *_rightMargin;
QCheckBox *_antialiasing;
};