diff options
Diffstat (limited to 'column.cpp')
-rw-r--r-- | column.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
@@ -66,39 +66,3 @@ Column::setRequired(bool required) emit propertyChanged("required", required); } } - -QVariant -Column::property(Property property) const -{ - switch (property) { - case NameProperty: - return name(); - case DataTypeProperty: - return dataType(); - case NotesProperty: - return notes(); - case PrimaryKeyProperty: - return isPrimaryKey(); - case RequiredProperty: - return isRequired(); - } - Q_ASSERT(false); - return QVariant(); -} - -void -Column::setProperty(Property property, const QVariant &value) -{ - switch (property) { - case NameProperty: - return setName(value.toString()); - case DataTypeProperty: - return setDataType(value.toString()); - case NotesProperty: - return setNotes(value.toString()); - case PrimaryKeyProperty: - return setPrimaryKey(value.toBool()); - case RequiredProperty: - return setRequired(value.toBool()); - } -} |