more on sellerdialog

This commit is contained in:
Martin Brodbeck 2018-07-16 12:00:17 +02:00
parent 31d46866f2
commit 207edb27ba
13 changed files with 168 additions and 17 deletions

12
src/gui/sellerdialog.cpp Normal file
View file

@ -0,0 +1,12 @@
#include "sellerdialog.h"
#include "mainwindow.h"
SellerDialog::SellerDialog(QWidget* parent, Qt::WindowFlags f) : QDialog(parent, f)
{
ui_.setupUi(this);
SellerModel* model = new SellerModel(
dynamic_cast<MainWindow*>(parent)->getMarketplace()->getSellers(), ui_.tableView);
ui_.tableView->setModel(model);
ui_.tableView->setColumnHidden(0, true); // hide the uuid
}