Rename sqlb::Object::ObjectTypes enum to sqlb::Object::Types

The 'Object' parts seemed a little redundant before.
This commit is contained in:
Martin Kleusberg
2017-01-23 13:44:36 +01:00
parent 649f2b8b93
commit ebc3869627
9 changed files with 38 additions and 38 deletions
+3 -3
View File
@@ -22,20 +22,20 @@ class DBBrowserObject
{
public:
DBBrowserObject() : name( "" ) { }
DBBrowserObject(const QString& wname, const QString& wsql, sqlb::Object::ObjectTypes wtype, const QString& tbl_name)
DBBrowserObject(const QString& wname, const QString& wsql, sqlb::Object::Types wtype, const QString& tbl_name)
: name( wname), sql( wsql ), type(wtype), table_name(tbl_name)
{ }
QString getname() const { return name; }
QString getsql() const { return sql; }
sqlb::Object::ObjectTypes gettype() const { return type; }
sqlb::Object::Types gettype() const { return type; }
QString getTableName() const { return table_name; }
sqlb::ObjectPtr object;
private:
QString name;
QString sql;
sqlb::Object::ObjectTypes type;
sqlb::Object::Types type;
QString table_name; // The name of the table this object references, interesting for views, triggers and indices
};