mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
fix some HIG and add missing translations in dbmanager
This commit is contained in:
parent
ac9c6f1e18
commit
427cb0b27a
@ -96,7 +96,6 @@ class DlgSqlWindow(QWidget, Ui_Dialog):
|
||||
self.populateQueryHistory()
|
||||
self.btnQueryHistory.toggled.connect(self.showHideQueryHistory)
|
||||
|
||||
self.btnCancel.setText(self.tr("Cancel (ESC)"))
|
||||
self.btnCancel.setEnabled(False)
|
||||
self.btnCancel.clicked.connect(self.executeSqlCanceled)
|
||||
self.btnCancel.setShortcut(QKeySequence.Cancel)
|
||||
@ -586,7 +585,7 @@ class DlgSqlWindow(QWidget, Ui_Dialog):
|
||||
self.editSql.setText(dlg.query)
|
||||
|
||||
def createView(self):
|
||||
name, ok = QInputDialog.getText(None, "View name", "View name")
|
||||
name, ok = QInputDialog.getText(None, self.tr("View Name"), self.tr("View name"))
|
||||
if ok:
|
||||
try:
|
||||
self.db.connector.createSpatialView(name, self._getSqlQuery())
|
||||
|
Loading…
x
Reference in New Issue
Block a user