Fix bug configure window of enterprise wifi exist when press Enter key on keyboard

This commit is contained in:
chenlelin 2021-03-02 14:29:10 +08:00
parent c18cac4293
commit 226a7320ac
2 changed files with 6 additions and 0 deletions

View File

@ -660,6 +660,11 @@ void WpaWifiDialog::mouseMoveEvent(QMouseEvent *event)
return QDialog::mouseMoveEvent(event); return QDialog::mouseMoveEvent(event);
} }
void WpaWifiDialog::keyPressEvent(QKeyEvent *event)
{
//return QDialog::keyPressEvent(event);
}
void WpaWifiDialog::paintEvent(QPaintEvent *event) void WpaWifiDialog::paintEvent(QPaintEvent *event)
{ {
KylinDBus mkylindbus; KylinDBus mkylindbus;

View File

@ -84,6 +84,7 @@ private:
void mousePressEvent(QMouseEvent *event); void mousePressEvent(QMouseEvent *event);
void mouseReleaseEvent(QMouseEvent *event); void mouseReleaseEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event); void mouseMoveEvent(QMouseEvent *event);
void keyPressEvent(QKeyEvent *event);
bool isPress; bool isPress;
QPoint winPos; QPoint winPos;