- Relation list is sorted

- Selects last item of history (so it scrolls)
- Fixes saving relations
- Simplified code, removing useless iterations



git-svn-id: http://galileo.dmi.unict.it/svn/relational/trunk@281 014f5005-505e-4b48-8d0a-63407b615a7c
This commit is contained in:
LtWorf
2011-03-20 21:49:02 +00:00
parent 6a93efd198
commit 4d78540440
4 changed files with 46 additions and 33 deletions

View File

@@ -182,6 +182,9 @@
<height>0</height>
</size>
</property>
<property name="rootIsDecorated">
<bool>false</bool>
</property>
<column>
<property name="text">
<string notr="true">Empty relation</string>
@@ -234,6 +237,11 @@
<height>0</height>
</size>
</property>
<property name="font">
<font>
<strikeout>false</strikeout>
</font>
</property>
</widget>
</item>
<item>
@@ -299,6 +307,9 @@
<height>16777215</height>
</size>
</property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
</widget>
</item>
<item>
@@ -892,7 +903,7 @@
<sender>lstRelations</sender>
<signal>itemDoubleClicked(QListWidgetItem*)</signal>
<receiver>MainWindow</receiver>
<slot>printRelation()</slot>
<slot>printRelation(QListWidgetItem*)</slot>
<hints>
<hint type="sourcelabel">
<x>708</x>
@@ -908,7 +919,7 @@
<sender>lstRelations</sender>
<signal>itemClicked(QListWidgetItem*)</signal>
<receiver>MainWindow</receiver>
<slot>showAttributes()</slot>
<slot>showAttributes(QListWidgetItem*)</slot>
<hints>
<hint type="sourcelabel">
<x>615</x>
@@ -977,8 +988,8 @@
<slot>saveRelation()</slot>
<slot>insertTuple()</slot>
<slot>deleteTuple()</slot>
<slot>printRelation()</slot>
<slot>showAttributes()</slot>
<slot>printRelation(QListWidgetItem*)</slot>
<slot>showAttributes(QListWidgetItem*)</slot>
<slot>loadQuery()</slot>
<slot>resumeHistory(QListWidgetItem*)</slot>
</slots>