#ifndef DIRECTSALEFORM_H #define DIRECTSALEFORM_H #include #include #include #include #include "ishopitem.h" #include "directsaleitem.h" namespace Ui { class DirectSaleForm; } class DirectSaleForm : public QDialog { Q_OBJECT public: explicit DirectSaleForm(QWidget *parent = nullptr, Enums::VatType defaultVat = Enums::NONE); ~DirectSaleForm(); QSharedPointer shopItem() const; private slots: void on_buttonBox_rejected(); void on_buttonBox_accepted(); private: Ui::DirectSaleForm *ui; ObjectBinder m_binder; QSharedPointer m_shopItem; }; #endif // DIRECTSALEFORM_H