Add UI for DIDKIT.
This commit is contained in:
17
DIDKit/App/MenuAction/ExitAction.cpp
Normal file
17
DIDKit/App/MenuAction/ExitAction.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "ExitAction.h"
|
||||
|
||||
ExitAction::ExitAction(const QString& aName,QWidget* aParent)
|
||||
: QAction(aName, aParent)
|
||||
{
|
||||
connect(this,&QAction::triggered,this,&ExitAction::executeAction);
|
||||
}
|
||||
|
||||
ExitAction::~ExitAction()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void ExitAction::executeAction()
|
||||
{
|
||||
exit(0);
|
||||
}
|
||||
Reference in New Issue
Block a user