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:
parent
7761935c29
commit
a1be73fbba
@ -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"));
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user