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
6d965f9f
Commit
6d965f9f
authored
Apr 08, 2018
by
Hugo Hörnquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add money diff reset button
parent
dbdc3ab2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
0 deletions
+15
-0
admin/mainwindow.cpp
admin/mainwindow.cpp
+6
-0
admin/mainwindow.h
admin/mainwindow.h
+2
-0
admin/mainwindow.ui
admin/mainwindow.ui
+7
-0
No files found.
admin/mainwindow.cpp
View file @
6d965f9f
...
...
@@ -893,3 +893,9 @@ void MainWindow::on_quickInventoryCheckBox_toggled(bool checked)
?
"sale_status = 0 or expected != 0"
:
"sale_status in (0, 1)"
);
}
void
MainWindow
::
on_moneyDiffReload_clicked
()
{
ui
->
diffDrawer
->
setText
(
""
);
setMoneyDiffLabels
();
}
admin/mainwindow.h
View file @
6d965f9f
...
...
@@ -77,6 +77,8 @@ private slots:
void
on_quickInventoryCheckBox_toggled
(
bool
checked
);
void
on_moneyDiffReload_clicked
();
private:
Ui
::
MainWindow
*
ui
;
QSqlTableModel
*
model
;
...
...
admin/mainwindow.ui
View file @
6d965f9f
...
...
@@ -420,6 +420,13 @@
</property>
</spacer>
</item>
<item>
<widget
class=
"QPushButton"
name=
"moneyDiffReload"
>
<property
name=
"text"
>
<string>
Ladda om
</string>
</property>
</widget>
</item>
<item>
<widget
class=
"QPushButton"
name=
"diffSubmit"
>
<property
name=
"text"
>
...
...
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