21 lines
461 B
C++
21 lines
461 B
C++
#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());;
|
|
}
|