use unique_ptr for model
This commit is contained in:
parent
fcf5f04539
commit
a130fa33c2
2 changed files with 6 additions and 10 deletions
|
@ -5,6 +5,8 @@
|
|||
|
||||
#include "sellermodel.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
class SellerDialog : public QDialog
|
||||
|
@ -14,7 +16,6 @@ class SellerDialog : public QDialog
|
|||
public:
|
||||
SellerDialog(QWidget* parent = nullptr,
|
||||
Qt::WindowFlags f = Qt::WindowTitleHint | Qt::WindowSystemMenuHint);
|
||||
~SellerDialog();
|
||||
|
||||
private slots:
|
||||
void onSellerViewSelectionChanged(const QItemSelection& selected,
|
||||
|
@ -27,6 +28,7 @@ class SellerDialog : public QDialog
|
|||
virtual void accept() override;
|
||||
Ui::SellerDialog ui_;
|
||||
Marketplace* market_;
|
||||
std::unique_ptr<SellerModel> model_;
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue