mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
[db manager] Fix #12844 - python error opening SQL Window
This commit is contained in:
parent
1bd3776392
commit
6524080f14
@ -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):
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user