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