Add a "BasePopup" class, which helps add default functionality to any popups (like the search popup)

This commit is contained in:
Rasmus Karlsson
2019-12-14 12:57:16 +01:00
parent dd77a0088a
commit 55080bd354
5 changed files with 45 additions and 15 deletions
-11
View File
@@ -73,17 +73,6 @@ void SearchPopup::search()
this->channelName_, this->snapshot_));
}
void SearchPopup::keyPressEvent(QKeyEvent *e)
{
if (e->key() == Qt::Key_Escape)
{
this->close();
return;
}
BaseWidget::keyPressEvent(e);
}
void SearchPopup::initLayout()
{
// VBOX