[db manager] Fix #12844 - python error opening SQL Window

This commit is contained in:
Salvatore Larosa 2015-06-02 18:48:28 +02:00
parent 1bd3776392
commit 6524080f14
2 changed files with 2 additions and 8 deletions

View File

@ -23,7 +23,7 @@ The content of this file is based on
"""
from PyQt4.QtCore import Qt, QObject, QSettings, QByteArray, SIGNAL
from PyQt4.QtGui import QDialog, QAction, QKeySequence, QDialogButtonBox, QApplication, QCursor, QMessageBox, QClipboard, QInputDialog
from PyQt4.QtGui import QDialog, QAction, QKeySequence, QDialogButtonBox, QApplication, QCursor, QMessageBox, QClipboard, QInputDialog, QIcon
from PyQt4.Qsci import QsciAPIs
from qgis.core import QgsProject
@ -95,6 +95,7 @@ class DlgSqlWindow(QDialog, Ui_Dialog):
self.connect( self.btnCreateView, SIGNAL("clicked()"), self.createView )
self.queryBuilderFirst = True
self.queryBuilderBtn.setIcon(QIcon(":/db_manager/icons/sql.gif"))
self.connect( self.queryBuilderBtn, SIGNAL("clicked()"), self.displayQueryBuilder )
def updatePresetsCombobox(self):

View File

@ -48,10 +48,6 @@
<property name="text">
<string/>
</property>
<property name="icon">
<iconset resource="../resources.qrc">
<normaloff>:/db_manager/icons/sql.gif</normaloff>:/db_manager/icons/sql.gif</iconset>
</property>
</widget>
</item>
<item>
@ -390,9 +386,6 @@ columns</string>
<tabstop>btnClear</tabstop>
<tabstop>viewResult</tabstop>
</tabstops>
<resources>
<include location="../resources.qrc"/>
</resources>
<connections>
<connection>
<sender>loadAsLayerGroup</sender>