Gu: fix readonly AccelLineEdit

This commit is contained in:
Zheng, Lei
2022-03-14 16:03:49 +08:00
committed by wwmayer
parent 4b377e2c31
commit b48458673c

View File

@@ -382,6 +382,11 @@ bool AccelLineEdit::isNone() const
*/
void AccelLineEdit::keyPressEvent (QKeyEvent * e)
{
if (isReadOnly()) {
QLineEdit::keyPressEvent(e);
return;
}
QString txtLine = text();
int key = e->key();