Get rid of the resetBrowser() method

This hopefully helps to simplify and restructure the code. If it turns
out to make things only worse we can undo it. This *should* make no
changes for the user.
This commit is contained in:
Martin Kleusberg
2016-08-15 23:08:32 +02:00
parent 5fd3a80c0d
commit 014174bc26
4 changed files with 71 additions and 66 deletions

View File

@@ -4,6 +4,7 @@
#include <QAbstractItemModel>
class DBBrowserDB;
class DBBrowserObject;
class QTreeWidgetItem;
class DbStructureModel : public QAbstractItemModel
@@ -31,6 +32,8 @@ public:
private:
QTreeWidgetItem* rootItem;
DBBrowserDB* m_db;
QTreeWidgetItem* addNode(QTreeWidgetItem* parent, const DBBrowserObject& object);
};
#endif