9#include <QSharedDataPointer>
46 void setId(
int id) { d->id = id; }
48 void setName(
const QString &name) { d->name = name; }
52 int id()
const {
return d->id; }
58 QSharedDataPointer<EmployeeData> d;
EmployeeData(const EmployeeData &other)
Employee & operator=(Employee &&other)=default
Employee(int id, const QString &name)
[1] //! [2]
Employee & operator=(const Employee &other)
Employee(const Employee &other)
void setName(const QString &name)
Employee(Employee &&other)=default