mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-19 00:04:52 -04:00
[dbmanager] Fix some pyqtslot
This commit is contained in:
parent
b9d1544c64
commit
c578f3a635
@ -140,8 +140,8 @@ class ConnectionItem(TreeItem):
|
|||||||
|
|
||||||
def __init__(self, connection, parent=None):
|
def __init__(self, connection, parent=None):
|
||||||
TreeItem.__init__(self, connection, parent)
|
TreeItem.__init__(self, connection, parent)
|
||||||
connection.changed.connect(self.itemChanged)
|
connection.changed.connect(self.itemWasChanged)
|
||||||
connection.deleted.connect(self.itemRemoved)
|
connection.deleted.connect(self.itemWasRemoved)
|
||||||
|
|
||||||
# load (shared) icon with first instance of table item
|
# load (shared) icon with first instance of table item
|
||||||
if not hasattr(ConnectionItem, 'connectedIcon'):
|
if not hasattr(ConnectionItem, 'connectedIcon'):
|
||||||
@ -169,8 +169,8 @@ class ConnectionItem(TreeItem):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
database = connection.database()
|
database = connection.database()
|
||||||
database.changed.connect(self.itemChanged)
|
database.changed.connect(self.itemWasChanged)
|
||||||
database.deleted.connect(self.itemRemoved)
|
database.deleted.connect(self.itemWasRemoved)
|
||||||
|
|
||||||
schemas = database.schemas()
|
schemas = database.schemas()
|
||||||
if schemas is not None:
|
if schemas is not None:
|
||||||
@ -195,8 +195,8 @@ class SchemaItem(TreeItem):
|
|||||||
|
|
||||||
def __init__(self, schema, parent):
|
def __init__(self, schema, parent):
|
||||||
TreeItem.__init__(self, schema, parent)
|
TreeItem.__init__(self, schema, parent)
|
||||||
schema.changed.connect(self.itemChanged)
|
schema.changed.connect(self.itemWasChanged)
|
||||||
schema.deleted.connect(self.itemRemoved)
|
schema.deleted.connect(self.itemWasRemoved)
|
||||||
|
|
||||||
# load (shared) icon with first instance of schema item
|
# load (shared) icon with first instance of schema item
|
||||||
if not hasattr(SchemaItem, 'schemaIcon'):
|
if not hasattr(SchemaItem, 'schemaIcon'):
|
||||||
@ -225,8 +225,8 @@ class TableItem(TreeItem):
|
|||||||
|
|
||||||
def __init__(self, table, parent):
|
def __init__(self, table, parent):
|
||||||
TreeItem.__init__(self, table, parent)
|
TreeItem.__init__(self, table, parent)
|
||||||
table.changed.connect(self.itemChanged)
|
table.changed.connect(self.itemWasChanged)
|
||||||
table.deleted.connect(self.itemRemoved)
|
table.deleted.connect(self.itemWasRemoved)
|
||||||
self.populate()
|
self.populate()
|
||||||
|
|
||||||
# load (shared) icon with first instance of table item
|
# load (shared) icon with first instance of table item
|
||||||
|
Loading…
x
Reference in New Issue
Block a user