Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Hugo Hörnquist
Stupan
Commits
767464e5
Commit
767464e5
authored
Feb 16, 2018
by
Hugo Hörnquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better initial filter of product list
parent
7eedad2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
admin/mainwindow.cpp
admin/mainwindow.cpp
+2
-2
No files found.
admin/mainwindow.cpp
View file @
767464e5
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment