mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-12-01 07:01:16 +01:00
48 lines
787 B
C++
48 lines
787 B
C++
#ifndef MARGINSWIDGET_H
|
|
#define MARGINSWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QMargins>
|
|
|
|
class QSpinBox;
|
|
class QDoubleSpinBox;
|
|
|
|
class MarginsWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MarginsWidget(QWidget *parent = 0);
|
|
|
|
QMargins value() const;
|
|
void setValue(const QMargins &value);
|
|
void setUnits(const QString &units);
|
|
|
|
private:
|
|
QSpinBox *_top;
|
|
QSpinBox *_bottom;
|
|
QSpinBox *_left;
|
|
QSpinBox *_right;
|
|
};
|
|
|
|
class MarginsFWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
MarginsFWidget(QWidget *parent = 0);
|
|
|
|
QMarginsF value() const;
|
|
void setValue(const QMarginsF &value);
|
|
void setUnits(const QString &units);
|
|
void setSingleStep(qreal step);
|
|
|
|
private:
|
|
QDoubleSpinBox *_top;
|
|
QDoubleSpinBox *_bottom;
|
|
QDoubleSpinBox *_left;
|
|
QDoubleSpinBox *_right;
|
|
};
|
|
|
|
#endif // MARGINSWIDGET_H
|