Compare commits

..

No commits in common. "0b369e1c8e959baeb7146dc323643a77a7c9b112" and "fe9c69b88a02b4524296b0208ca39bf5d15cd5dd" have entirely different histories.

2 changed files with 3 additions and 7 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,11 +112,7 @@
</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">