Ejemplo n.º 1
0
 def populateConnectionList(self):
     self.cmbConnections.blockSignals(True)
     self.cmbConnections.clear()
     keys = QgsOWSConnection.connectionList("SOS")
     self.cmbConnections.addItems (keys)
     self.cmbConnections.blockSignals(False)
     index = self.cmbConnections.findText(QgsOWSConnection.selectedConnection("SOS"))
     self.cmbConnections.setCurrentIndex(index)
     self.on_cmbConnections_currentIndexChanged (QgsOWSConnection.selectedConnection("SOS"))
     QgsDebug ("populateConnectionList: selectedConnection = {}".format(QgsOWSConnection.selectedConnection("SOS")))
Ejemplo n.º 2
0
 def populateConnectionList(self):
     self.cmbConnections.blockSignals(True)
     self.cmbConnections.clear()
     keys = QgsOWSConnection.connectionList("SOS")
     self.cmbConnections.addItems(keys)
     self.cmbConnections.blockSignals(False)
     index = self.cmbConnections.findText(
         QgsOWSConnection.selectedConnection("SOS"))
     self.cmbConnections.setCurrentIndex(index)
     self.on_cmbConnections_currentIndexChanged(
         QgsOWSConnection.selectedConnection("SOS"))
     QgsDebug("populateConnectionList: selectedConnection = {}".format(
         QgsOWSConnection.selectedConnection("SOS")))