"compress" the keyPressEvent a bit :-)

This commit is contained in:
Volker Fischer 2019-04-12 18:42:05 +02:00
parent 3348056253
commit 53fb06b137
6 changed files with 9 additions and 29 deletions

View File

@ -102,11 +102,3 @@ void CChatDlg::AddChatText ( QString strChatText )
#endif #endif
); );
} }
void CChatDlg::keyPressEvent(QKeyEvent *e)
{
if (e->key() != Qt::Key_Escape)
{
QDialog::keyPressEvent(e);
}
}

View File

@ -48,7 +48,8 @@ public slots:
void OnLocalInputTextTextChanged ( const QString& strNewText ); void OnLocalInputTextTextChanged ( const QString& strNewText );
void OnClearPressed(); void OnClearPressed();
void keyPressEvent(QKeyEvent *e); void keyPressEvent ( QKeyEvent *e ) // block escape key
{ if ( e->key() != Qt::Key_Escape ) QDialog::keyPressEvent ( e ); }
signals: signals:
void NewLocalInputText ( QString strNewText ); void NewLocalInputText ( QString strNewText );

View File

@ -1205,11 +1205,3 @@ void CClientDlg::accept()
{ {
close(); close();
} }
void CClientDlg::keyPressEvent(QKeyEvent *e)
{
if (e->key() != Qt::Key_Escape)
{
QDialog::keyPressEvent(e);
}
}

View File

@ -79,8 +79,8 @@ public:
const QString& strConnOnStartupAddress, const QString& strConnOnStartupAddress,
const bool bNewShowComplRegConnList, const bool bNewShowComplRegConnList,
const bool bShowAnalyzerConsole, const bool bShowAnalyzerConsole,
QWidget* parent = 0, QWidget* parent = nullptr,
Qt::WindowFlags f = 0 ); Qt::WindowFlags f = nullptr );
protected: protected:
void SetGUIDesign ( const EGUIDesign eNewDesign ); void SetGUIDesign ( const EGUIDesign eNewDesign );
@ -207,5 +207,7 @@ public slots:
void OnNewClientLevelChanged() { MainMixerBoard->iNewClientFaderLevel = pClient->iNewClientFaderLevel; } void OnNewClientLevelChanged() { MainMixerBoard->iNewClientFaderLevel = pClient->iNewClientFaderLevel; }
void accept(); void accept();
void keyPressEvent(QKeyEvent *e);
void keyPressEvent ( QKeyEvent *e ) // block escape key
{ if ( e->key() != Qt::Key_Escape ) QDialog::keyPressEvent ( e ); }
}; };

View File

@ -588,11 +588,3 @@ void CServerDlg::changeEvent ( QEvent* pEvent )
} }
} }
} }
void CServerDlg::keyPressEvent(QKeyEvent *e)
{
if (e->key() != Qt::Key_Escape)
{
QDialog::keyPressEvent(e);
}
}

View File

@ -98,5 +98,6 @@ public slots:
void OnSysTrayMenuExit() { close(); } void OnSysTrayMenuExit() { close(); }
void OnSysTrayActivated ( QSystemTrayIcon::ActivationReason ActReason ); void OnSysTrayActivated ( QSystemTrayIcon::ActivationReason ActReason );
void keyPressEvent(QKeyEvent *e); void keyPressEvent ( QKeyEvent *e ) // block escape key
{ if ( e->key() != Qt::Key_Escape ) QDialog::keyPressEvent ( e ); }
}; };