1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34: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 <QSpinBox>
#include <QMessageBox> #include <QMessageBox>
#include <QTabWidget> #include <QTabWidget>
#include <QDoubleSpinBox>
#include <QCheckBox> #include <QCheckBox>
#include "units.h" #include "units.h"
#include "fileselectwidget.h" #include "fileselectwidget.h"
@ -34,10 +33,10 @@ PNGExportDialog::PNGExportDialog(PNGExport &exp, QWidget *parent)
_height->setValue(_export.size.height()); _height->setValue(_export.size.height());
_height->setSuffix(UNIT_SPACE + tr("px")); _height->setSuffix(UNIT_SPACE + tr("px"));
_topMargin = new QDoubleSpinBox(); _topMargin = new QSpinBox();
_bottomMargin = new QDoubleSpinBox(); _bottomMargin = new QSpinBox();
_leftMargin = new QDoubleSpinBox(); _leftMargin = new QSpinBox();
_rightMargin = new QDoubleSpinBox(); _rightMargin = new QSpinBox();
_topMargin->setSuffix(UNIT_SPACE + tr("px")); _topMargin->setSuffix(UNIT_SPACE + tr("px"));
_bottomMargin->setSuffix(UNIT_SPACE + tr("px")); _bottomMargin->setSuffix(UNIT_SPACE + tr("px"));
_leftMargin->setSuffix(UNIT_SPACE + tr("px")); _leftMargin->setSuffix(UNIT_SPACE + tr("px"));

View File

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