Commit 767464e5 authored by Hugo Hörnquist's avatar Hugo Hörnquist

better initial filter of product list

parent 7eedad2f
......@@ -120,8 +120,6 @@ MainWindow::MainWindow(QWidget *parent) :
model = new QSqlTableModel;
model->setTable("products");
model->setFilter("sale_status IN (0, 1)");
model->setEditStrategy(QSqlTableModel::OnManualSubmit);
// TODO fix column order in database
......@@ -160,6 +158,8 @@ MainWindow::MainWindow(QWidget *parent) :
view->horizontalHeader()->setSectionResizeMode(QHeaderView::ResizeToContents);
view->horizontalHeader()->setSectionResizeMode(4, QHeaderView::Stretch);
setProductFilter();
// ==================================================
QSqlRelationalTableModel* stockModel = new QSqlRelationalTableModel();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment