Added copy constructors and operator= to folder and comicdb, LibraryItem has to be a QObject, and QObject disables copy.

This commit is contained in:
Luis Ángel San Martín
2016-04-11 19:25:33 +02:00
parent 7ed4c27c01
commit 2149af25b1
6 changed files with 70 additions and 16 deletions

View File

@ -0,0 +1,12 @@
#include "library_item.h"
LibraryItem &LibraryItem::operator=(const LibraryItem &other)
{
this->name = other.name;
this->path = other.path;
this->parentId = other.parentId;
this->id = other.id;
return *this;
}