Files
DbGuiLib/vector2dwidget.h
T

28 lines
544 B
C++
Raw Normal View History

2018-09-15 20:22:39 +02:00
#pragma once
#include <QWidget>
#include "dbguilib_global.h"
#include <QVector2D>
class QDoubleSpinBox;
class DBGUILIB_EXPORT Vector2DWidget : public QWidget
{
Q_OBJECT
Q_PROPERTY(QVector2D value READ value WRITE setValue NOTIFY valueChanged USER true)
public:
Vector2DWidget(QWidget *parent = Q_NULLPTR);
QVector2D value() const;
void setValue(const QVector2D &value);
Q_SIGNALS:
void valueChanged(const QVector2D &value);
private:
QDoubleSpinBox *m_doubleSpinBoxX;
QDoubleSpinBox *m_doubleSpinBoxY;
};