fill basket
parent
f315cc81a6
commit
8b534e1229
@ -0,0 +1,12 @@
|
||||
#include "pricedialog.h"
|
||||
|
||||
PriceDialog::PriceDialog(QWidget* parent, Qt::WindowFlags f) : QDialog(parent, f)
|
||||
{
|
||||
ui_.setupUi(this);
|
||||
ui_.priceSpinBox->setFocus();
|
||||
}
|
||||
|
||||
int PriceDialog::getPrice() const
|
||||
{
|
||||
return static_cast<int>(ui_.priceSpinBox->value() * 100);
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
#ifndef PRICE_DIALOG_H
|
||||
#define PRICE_DIALOG_H
|
||||
|
||||
#include "ui_pricedialog.h"
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
class PriceDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
PriceDialog(QWidget* parent = nullptr,
|
||||
Qt::WindowFlags f = Qt::WindowTitleHint | Qt::WindowSystemMenuHint);
|
||||
int getPrice() const;
|
||||
|
||||
private:
|
||||
void on_model_duplicateSellerNo(const QString& message);
|
||||
//virtual void accept() override;
|
||||
Ui::PriceDialog ui_;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue