mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 05:49:11 +01:00
Merge pull request #1959 from Diapolo/eventFilter_askpassphrasedlg
ensure AskPassphraseDialog::eventFilter forwards events
This commit is contained in:
commit
c98a0a432e
@ -221,7 +221,7 @@ bool AskPassphraseDialog::event(QEvent *event)
|
|||||||
return QWidget::event(event);
|
return QWidget::event(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AskPassphraseDialog::eventFilter(QObject *, QEvent *event)
|
bool AskPassphraseDialog::eventFilter(QObject *object, QEvent *event)
|
||||||
{
|
{
|
||||||
/* Detect Caps Lock.
|
/* Detect Caps Lock.
|
||||||
* There is no good OS-independent way to check a key state in Qt, but we
|
* There is no good OS-independent way to check a key state in Qt, but we
|
||||||
@ -244,5 +244,5 @@ bool AskPassphraseDialog::eventFilter(QObject *, QEvent *event)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return QDialog::eventFilter(object, event);
|
||||||
}
|
}
|
||||||
|
@ -39,7 +39,7 @@ private:
|
|||||||
private slots:
|
private slots:
|
||||||
void textChanged();
|
void textChanged();
|
||||||
bool event(QEvent *event);
|
bool event(QEvent *event);
|
||||||
bool eventFilter(QObject *, QEvent *event);
|
bool eventFilter(QObject *object, QEvent *event);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // ASKPASSPHRASEDIALOG_H
|
#endif // ASKPASSPHRASEDIALOG_H
|
||||||
|
Loading…
Reference in New Issue
Block a user