DbStructureModel: Enable dragging of DB objects

Allow dragging (as in Drag & Drop) of database objects like tables and
views into other applications by sending the SQL code used to create
them.
This commit is contained in:
Martin Kleusberg
2013-07-19 20:55:48 +02:00
parent 64a938716f
commit 0e880cc4e6
3 changed files with 44 additions and 2 deletions

View File

@@ -23,6 +23,9 @@ public:
int rowCount(const QModelIndex& parent = QModelIndex()) const;
int columnCount(const QModelIndex& = QModelIndex()) const;
QStringList mimeTypes() const;
QMimeData* mimeData(const QModelIndexList& indices) const;
private:
QTreeWidgetItem* rootItem;
};