diff options
author | Lukáš Lalinský <lalinsky@gmail.com> | 2008-11-29 23:26:18 +0100 |
---|---|---|
committer | Lukáš Lalinský <lalinsky@gmail.com> | 2008-11-29 23:26:18 +0100 |
commit | 3458318f785ba66b65e7a3c831368d58321e10e5 (patch) | |
tree | 89ce2f16b379c5891fc583d88c8a44912e926fb4 /column.h | |
parent | 38c64d01f173989e3bc2172f6989e587480bd83e (diff) | |
download | dbmodel-3458318f785ba66b65e7a3c831368d58321e10e5.tar.xz |
Convert column edits to undo-able commands
Diffstat (limited to 'column.h')
-rw-r--r-- | column.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -24,8 +24,19 @@ class DatabaseTable; class Column { public: + + enum Property { + NameProperty, + DataTypeProperty, + NotesProperty, + PrimaryKeyProperty, + RequiredProperty + }; + Column(DatabaseTable *table); + DatabaseTable *table() const { return m_table; } + QString name() const { return m_name; } void setName(const QString &name); @@ -41,6 +52,9 @@ public: bool isRequired() const { return m_required; } void setRequired(bool required); + QVariant property(Property property) const; + void setProperty(Property property, const QVariant &value); + private: DatabaseTable *m_table; QString m_name; |