Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void addBuddy(const Buddy &buddy);
- void BuddyModel::addBuddy(const Buddy &buddy)
- {
- beginInsertRows(QModelIndex(), rowCount(), rowCount());
- m_buddies << buddy;
- endInsertRows();
- }
- /usr/include/qt5/QtCore/qlist.h:458: error: use of deleted function ‘Buddy::Buddy(const Buddy&)’
- current->v = new T(*reinterpret_cast<T*>(src->v));
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /home/foidbgen/Qt Workspace/FishbookMesseenger/buddy.h:8: error: use of deleted function ‘QObject& QObject::operator=(const QObject&)’
- class Buddy : public QObject
- ^~~~~
- /home/foidbgen/Qt Workspace/FishbookMesseenger/buddy.h:8: error: ‘QObject& QObject::operator=(const QObject&)’ is private within this context
- /home/foidbgen/Qt Workspace/FishbookMesseenger/buddy.h:8: error: use of deleted function ‘QObject::QObject(const QObject&)’
- class Buddy : public QObject
- ^~~~~
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement