summaryrefslogtreecommitdiff
path: root/column.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'column.cpp')
-rw-r--r--column.cpp36
1 files changed, 0 insertions, 36 deletions
diff --git a/column.cpp b/column.cpp
index 3d40bc4..e8a355b 100644
--- a/column.cpp
+++ b/column.cpp
@@ -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());
- }
-}