mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-06-28 14:51:41 +00:00
24 lines
375 B
C++
24 lines
375 B
C++
#include <QKeyEvent>
|
|
|
|
#include "aboutwindow.h"
|
|
#include "ui_aboutwindow.h"
|
|
|
|
AboutWindow::AboutWindow(QWidget *parent) :
|
|
QMainWindow(parent),
|
|
ui(new Ui::AboutWindow)
|
|
{
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
AboutWindow::~AboutWindow()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
// ESC press event
|
|
void AboutWindow::keyPressEvent(QKeyEvent *pressedKey)
|
|
{
|
|
if (pressedKey->key() == Qt::Key_Escape)
|
|
close();
|
|
}
|