Browse Source

Merge pull request #1959 from Diapolo/eventFilter_askpassphrasedlg

ensure AskPassphraseDialog::eventFilter forwards events
miguelfreitas
Wladimir J. van der Laan 12 years ago
parent
commit
c98a0a432e
  1. 4
      src/qt/askpassphrasedialog.cpp
  2. 2
      src/qt/askpassphrasedialog.h

4
src/qt/askpassphrasedialog.cpp

@ -221,7 +221,7 @@ bool AskPassphraseDialog::event(QEvent *event) @@ -221,7 +221,7 @@ bool AskPassphraseDialog::event(QEvent *event)
return QWidget::event(event);
}
bool AskPassphraseDialog::eventFilter(QObject *, QEvent *event)
bool AskPassphraseDialog::eventFilter(QObject *object, QEvent *event)
{
/* Detect Caps Lock.
* 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) @@ -244,5 +244,5 @@ bool AskPassphraseDialog::eventFilter(QObject *, QEvent *event)
}
}
}
return false;
return QDialog::eventFilter(object, event);
}

2
src/qt/askpassphrasedialog.h

@ -39,7 +39,7 @@ private: @@ -39,7 +39,7 @@ private:
private slots:
void textChanged();
bool event(QEvent *event);
bool eventFilter(QObject *, QEvent *event);
bool eventFilter(QObject *object, QEvent *event);
};
#endif // ASKPASSPHRASEDIALOG_H

Loading…
Cancel
Save