optimize debug console

This commit is contained in:
xueyan hu
2022-01-19 14:24:16 +08:00
parent 437423dd00
commit 54e1539783
9 changed files with 96 additions and 81 deletions

View File

@@ -89,7 +89,7 @@ bool InputObject::eventFilter(QObject* obj, QEvent* event)
{
emit touchScreen();
qDebug() << "touchScreen()";
//qDebug() << "touchScreen()";
}
//mouse button release means setfocus is useless
if (event->type() == QEvent::MouseButtonRelease)
@@ -141,7 +141,7 @@ bool InputObject::eventFilter(QObject* obj, QEvent* event)
}
void InputObject::ShowPanel() {
if (!qApp->focusWidget()) return;
if (!qApp->focusWidget()) return;
if (qApp->focusWidget()->inherits("QLineEdit"))
{
curLine = qobject_cast<QLineEdit*>(qApp->focusWidget());