add basic autocompletion for tables and fields to the sql text input

this does only work on full table names, NOT on aliases
for a full auto completion to work we need a sqlite parser
This commit is contained in:
Peinthor Rene
2013-02-14 17:32:54 +01:00
parent 158e35ae65
commit ba34c1e986
5 changed files with 330 additions and 3 deletions

View File

@@ -775,7 +775,7 @@
</widget>
</item>
<item>
<widget class="QTextEdit" name="sqlTextEdit">
<widget class="SqlTextEdit" name="sqlTextEdit">
<property name="font">
<font>
<family>Monospace</family>
@@ -1393,6 +1393,13 @@
</property>
</action>
</widget>
<customwidgets>
<customwidget>
<class>SqlTextEdit</class>
<extends>QTextEdit</extends>
<header>sqltextedit.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>dbTreeWidget</tabstop>
<tabstop>comboBrowseTable</tabstop>