mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-07-12 21:35:51 +00:00
Added graphwindow
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
#include <QKeyEvent>
|
||||
|
||||
#include "aboutwindow.h"
|
||||
#include "ui_aboutwindow.h"
|
||||
|
||||
@ -12,3 +14,10 @@ AboutWindow::~AboutWindow()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
// ESC press event
|
||||
void AboutWindow::keyPressEvent(QKeyEvent *pressedKey)
|
||||
{
|
||||
if (pressedKey->key() == Qt::Key_Escape)
|
||||
close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user