Compare commits
2 commits
fe9c69b88a
...
0b369e1c8e
Author | SHA1 | Date | |
---|---|---|---|
0b369e1c8e | |||
52cff89735 |
2 changed files with 7 additions and 3 deletions
|
@ -207,7 +207,7 @@ bool MainWindow::eventFilter(QObject* target, QEvent* event)
|
|||
if (event->type() == QEvent::KeyPress) {
|
||||
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
|
||||
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);
|
||||
} else {
|
||||
checkSellerNo(false);
|
||||
|
@ -220,7 +220,7 @@ bool MainWindow::eventFilter(QObject* target, QEvent* event)
|
|||
if (event->type() == QEvent::KeyPress) {
|
||||
QKeyEvent* keyEvent = static_cast<QKeyEvent*>(event);
|
||||
if (keyEvent->key() == Qt::Key::Key_Enter || keyEvent->key() == Qt::Key::Key_Return) {
|
||||
if (keyEvent->modifiers() == Qt::ControlModifier) {
|
||||
if (keyEvent->modifiers() & Qt::ControlModifier) {
|
||||
onPaidButtonTriggered();
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -112,7 +112,11 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QDoubleSpinBox" name="givenSpinBox"/>
|
||||
<widget class="QDoubleSpinBox" name="givenSpinBox">
|
||||
<property name="maximum">
|
||||
<double>999.990000000000009</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="label_4">
|
||||
|
|
Loading…
Reference in a new issue