Commit Graph

9 Commits

Author SHA1 Message Date
Martin Kleusberg
a7110ea0fc Clear the tree widget in the Structure tab when after closing a DB
Clear the tree widget in the 'Database Structure' tab of the main window
after closing a database.
See issue #44.
2014-04-22 22:08:27 +02:00
Martin Kleusberg
393a58be73 Sort db objects in Database Structure tab by their name 2014-02-14 16:12:09 +01:00
Peinthor Rene
58ec477344 use begin/end resetmodel 2014-02-13 23:59:13 +01:00
Peinthor Rene
94819f22e2 for loop pre-increment optimization's and a slight syntax style change 2013-09-20 14:49:07 +02:00
Peinthor Rene
1bac11348f include cleanup 2013-09-19 22:55:35 +02:00
Martin Kleusberg
16b5be4a8b DbStructureModel: Also send table data when dragging one
When using drag & drop on a table also send the entire content of that
table.
2013-07-19 22:06:34 +02:00
Martin Kleusberg
6e0c68a1a0 DbStructureModel: Allow dropping of database objects
Make it possible to drop database objects (i.e. SQL code) on the tree
view in the Database Structure tab. This is far from being perfect as of
now but enables you to drag and drop entire objects between databases.
2013-07-19 21:47:19 +02:00
Martin Kleusberg
0e880cc4e6 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.
2013-07-19 20:55:48 +02:00
Martin Kleusberg
64a938716f Add custom model for tree view in Database Structure tab
Use a custom model for the tree view in the "Database Structure" tab in
the main window, i.e. change from a QTreeWidget to a QTreeView and do
all the item management stuff manually. This might add some code and
complexity but also offers some more flexibility for us.
2013-07-19 20:36:48 +02:00