Compare commits

..

2 commits

Author SHA1 Message Date
0b369e1c8e fixes issue #17 2019-09-28 15:02:55 +02:00
52cff89735 Fixes issue #16 2019-09-28 14:24:07 +02:00
2 changed files with 7 additions and 3 deletions

View file

@ -207,7 +207,7 @@ bool MainWindow::eventFilter(QObject* target, QEvent* event)
if (event->type() == QEvent::KeyPress) { if (event->type() == QEvent::KeyPress) {
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event); QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) { if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) {
if (keyEvent->modifiers() == Qt::ControlModifier) { if (keyEvent->modifiers() & Qt::ControlModifier) {
checkSellerNo(true); checkSellerNo(true);
} else { } else {
checkSellerNo(false); checkSellerNo(false);
@ -220,7 +220,7 @@ bool MainWindow::eventFilter(QObject* target, QEvent* event)
if (event->type() == QEvent::KeyPress) { if (event->type() == QEvent::KeyPress) {
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event); QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) { if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) {
if (keyEvent->modifiers() == Qt::ControlModifier) { if (keyEvent->modifiers() & Qt::ControlModifier) {
onPaidButtonTriggered(); onPaidButtonTriggered();
return true; return true;
} }

View file

@ -112,7 +112,11 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QDoubleSpinBox" name="givenSpinBox"/> <widget class="QDoubleSpinBox" name="givenSpinBox">
<property name="maximum">
<double>999.990000000000009</double>
</property>
</widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_4">