Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Hugo Hörnquist
Stupan
Commits
58e3f544
Commit
58e3f544
authored
Apr 09, 2018
by
Hugo Hörnquist
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'front'
parents
8a817bb1
f944547f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
admin/comboboxitemdelegate.cpp
admin/comboboxitemdelegate.cpp
+4
-4
kassa/widget.cpp
kassa/widget.cpp
+1
-0
No files found.
admin/comboboxitemdelegate.cpp
View file @
58e3f544
...
...
@@ -48,12 +48,12 @@ QString ComboBoxItemDelegate::displayText(const QVariant &value, const QLocale&
static
QString
get_index_string
(
int
index
)
{
switch
(
index
)
{
case
0
:
return
"
For S
al
e
"
;
return
"
Till s
al
u
"
;
case
1
:
return
"
Not For S
al
e
"
;
return
"
Ej till s
al
u
"
;
case
2
:
return
"
Hidden
"
;
return
"
Dold
"
;
default:
return
"E
rror
"
;
return
"E
RROR
"
;
}
}
kassa/widget.cpp
View file @
58e3f544
...
...
@@ -97,6 +97,7 @@ Widget::Widget(QWidget *parent) :
ui
->
productList
->
header
()
->
setSectionResizeMode
(
QHeaderView
::
ResizeToContents
);
ui
->
productList
->
hideColumn
(
0
);
ui
->
productList
->
hideColumn
(
1
);
ui
->
productList
->
hideColumn
(
2
);
QSqlTableModel
*
totalLogModel
=
new
QSqlTableModel
;
totalLogModel
->
setTable
(
"total_log"
);
...
...
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