diff options
author | Lukáš Lalinský <lalinsky@gmail.com> | 2008-12-06 13:05:46 +0100 |
---|---|---|
committer | Lukáš Lalinský <lalinsky@gmail.com> | 2008-12-06 13:05:46 +0100 |
commit | d066a498ca602b9c4f38bc141b8ece0310fc7268 (patch) | |
tree | 78b2f6674b0b79b62da58f8eb470c4646296edc5 /databasetable.h | |
parent | 84b8e18f5c5b1c9cfe5291c57ee15fd01ccb40a6 (diff) | |
download | dbmodel-d066a498ca602b9c4f38bc141b8ece0310fc7268.tar.xz |
Add some item base classes, rename stuff
Diffstat (limited to 'databasetable.h')
-rw-r--r-- | databasetable.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/databasetable.h b/databasetable.h index e11b152..b1711bf 100644 --- a/databasetable.h +++ b/databasetable.h @@ -19,19 +19,19 @@ #include <QGraphicsItem> #include <QPainter> -#include "databasemodelitem.h" +#include "diagramobject.h" class Column; class ColumnList; class DatabaseModel; -class DatabaseTable : public QObject, public DatabaseModelItem +class DatabaseTable : public DiagramObject { Q_OBJECT Q_PROPERTY(QString name READ name WRITE setName) public: - DatabaseTable(QGraphicsItem *parent = 0); + DatabaseTable(DiagramItem *parent = 0); DatabaseModel *model() const; @@ -48,7 +48,7 @@ public: // Column *addColumn(const QString &name = QString()); // void swapColumns(int index1, int index2); - enum { Type = DatabaseModelItem::Table }; + enum { Type = DiagramItem::Table }; virtual int type() const { return Type; } signals: |