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

@ -3,14 +3,16 @@
#include <QObject>
class LibraryItem
class LibraryItem : public QObject
{
Q_OBJECT
public:
virtual bool isDir() = 0;
LibraryItem & operator=(const LibraryItem & other);
QString name;
QString path;
qulonglong parentId;
qulonglong id;
};
#endif
#endif