mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
22 lines
368 B
C++
22 lines
368 B
C++
#include "widgets/BasePopup.hpp"
|
|
|
|
namespace chatterino {
|
|
|
|
BasePopup::BasePopup(FlagsEnum<Flags> _flags, QWidget *parent)
|
|
: BaseWindow(std::move(_flags), parent)
|
|
{
|
|
}
|
|
|
|
void BasePopup::keyPressEvent(QKeyEvent *e)
|
|
{
|
|
if (e->key() == Qt::Key_Escape)
|
|
{
|
|
this->close();
|
|
return;
|
|
}
|
|
|
|
BaseWindow::keyPressEvent(e);
|
|
}
|
|
|
|
} // namespace chatterino
|