valentina_old/tools/vdatatool.cpp

22 lines
380 B
C++
Raw Normal View History

#include "vdatatool.h"
VDataTool::VDataTool(VContainer *data, QObject *parent) :
2013-08-20 12:26:02 +02:00
QObject(parent), data(*data){
}
VDataTool::~VDataTool(){
}
VDataTool &VDataTool::operator =(const VDataTool &tool){
data = tool.getData();
2013-08-20 12:26:02 +02:00
return *this;
}
VContainer VDataTool::getData() const{
return data;
}
void VDataTool::setData(const VContainer *value){
data = *value;
}