Skip to content

Commit

Permalink
[dbmanager] set focus to SQL query TextEdit and change to ScrollToPix…
Browse files Browse the repository at this point in the history
…el the result query area
  • Loading branch information
slarosa committed Jul 31, 2013
1 parent 7c312f8 commit efd84bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions python/plugins/db_manager/dlg_sql_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def __init__(self, iface, db, parent=None):
self.restoreGeometry(settings.value("/DB_Manager/sqlWindow/geometry", QByteArray(), type=QByteArray))

self.editSql.setAcceptRichText(False)
self.editSql.setFocus()
SqlCompleter(self.editSql, self.db)
SqlHighlighter(self.editSql, self.db)

Expand Down
3 changes: 3 additions & 0 deletions python/plugins/db_manager/ui/DlgSqlWindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ p, li { white-space: pre-wrap; }
<property name="selectionBehavior">
<enum>QAbstractItemView::SelectRows</enum>
</property>
<property name="horizontalScrollMode">
<enum>QAbstractItemView::ScrollPerPixel</enum>
</property>
</widget>
</item>
</layout>
Expand Down

0 comments on commit efd84bd

Please sign in to comment.