Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision c8192ee9

Von Christian Ehringfeld vor etwa 8 Jahren hinzugefügt

  • ID c8192ee9727ff1a41f6e5121de6d9801445d0138
  • Vorgänger cb5bb587
  • Nachfolger 9b393ad4

qt 5.3 comp

Unterschiede anzeigen:

samples/validators/person.h
public:
enum class Gender {MALE, FEMALE, UNKNOWNGENDER};
Q_ENUM(Gender)
enum class NameOrder {FIRST_FAMILY_NAME_ORDER, FAMILY_FIRST_NAME_ORDER};
#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
Q_ENUM(Gender)
Q_ENUM(NameOrder)
#else
Q_ENUMS(Gender)
Q_ENUMS(NameOrder)
#endif
Q_INVOKABLE explicit Person(QObject *parent = 0);
Person(QString firstName, QString familyName,
Gender gender = Gender::UNKNOWNGENDER,
......
QString getCustomPictureFileName() const;
void setCustomPictureFileName(const QString &value);
QList<QSharedPointer<Address> > getAddresses() const;
void setAddresses(const QList<QSharedPointer<Address> > &value);
QList<QSharedPointer<Address>> getAddresses() const;
void setAddresses(const QList<QSharedPointer<Address>> &value);
void addAddress(Address *address);
tests/models.h
public:
enum class Gender {MALE, FEMALE, UNKNOWNGENDER};
#if QT_VERSION >= QT_VERSION_CHECK(5, 5, 0)
Q_ENUM(Gender)
#else
Q_ENUMS(Gender)
#endif
enum class NameOrder {FIRST_FAMILY_NAME_ORDER, FAMILY_FIRST_NAME_ORDER};
Q_INVOKABLE explicit Person(QObject *parent = 0);
Person(QString firstName, QString familyName,
......
setWorkers)
public:
WorkerGroup() : Entity() { }
WorkerGroup(QString name, quint32 efficiency, bool active=true) : Entity() {
WorkerGroup(QString name, quint32 efficiency, bool active = true) : Entity() {
this->name = name;
this->efficiency = efficiency;
this->active = active;

Auch abrufbar als: Unified diff