Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3fd96253

Von Christian Ehringfeld vor fast 9 Jahren hinzugefügt

  • ID 3fd962538d219c6666732dcd30c396cec9ea404e
  • Vorgänger abb9e8c5
  • Nachfolger d7727319

update, many to many is not fully working, but persisting works

Unterschiede anzeigen:

samples/example/models/contact.cpp
#include "contact.h"
Contact::Contact(QString label, ContactCategory category, QString content) {
m_label=label;
m_category=category;
m_content=content;
Contact::Contact(QString label, Enums::ContactCategory category, QString content) {
this->label = label;
this->category = category;
this->content = content;
}
QString Contact::getContent() const {
return content;
}
void Contact::setContent(const QString &value) {
content = value;
}
Enums::ContactCategory Contact::getCategory() const {
return category;
}
void Contact::setCategory(const Enums::ContactCategory &value) {
category = value;
}
QString Contact::getLabel() const {
return label;
}
void Contact::setLabel(const QString &value) {
label = value;
}

Auch abrufbar als: Unified diff