Version::Version(int major, int minor, int micro, int nano) : d(new VersionData()) { setMajor(major); setMinor(minor); setMicro(micro); setNano(nano); setNumberCount(4); }
Postgraduate::Postgraduate(const QString classNo /*= QString()*/, const QString name /*= QString()*/, const QString id /*= QString()*/, const QString idNum /*= QString("000000000000000000")*/, const Sex sex /*= QString()*/, const QDate birthDay /*= QDate(1880,1,1)*/, const QString major /*= QString()*/, const QString tutorId /*= QString()*/) : Person(name, id, idNum, sex, birthDay), Student(classNo, name, id, idNum, sex, birthDay) { if(!setMajor(major)){ qDebug() << this->errorString_; setMajor(tr("none")); } if(!setTutorId(tutorId)){ qDebug() << this->errorString_; setTutorId(tr("none")); } }
/** * Create a Version class object * * @param name of the project */ ProjectVersion(std::string iProjectName, int iMajor, int iMinor, int iPatch) { setProjectName(iProjectName); setMajor(iMajor); setMinor(iMinor); setPatch(iPatch); }