Gu: fix readonly AccelLineEdit

This commit is contained in:
Zheng, Lei
2022-11-10 23:20:18 +01:00
committed by wwmayer
parent 4b377e2c31
commit b48458673c
+5
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();