mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05: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):
 | 
			
		||||
        TreeItem.__init__(self, connection, parent)
 | 
			
		||||
        connection.changed.connect(self.itemChanged)
 | 
			
		||||
        connection.deleted.connect(self.itemRemoved)
 | 
			
		||||
        connection.changed.connect(self.itemWasChanged)
 | 
			
		||||
        connection.deleted.connect(self.itemWasRemoved)
 | 
			
		||||
 | 
			
		||||
        # load (shared) icon with first instance of table item
 | 
			
		||||
        if not hasattr(ConnectionItem, 'connectedIcon'):
 | 
			
		||||
@ -169,8 +169,8 @@ class ConnectionItem(TreeItem):
 | 
			
		||||
                return False
 | 
			
		||||
 | 
			
		||||
        database = connection.database()
 | 
			
		||||
        database.changed.connect(self.itemChanged)
 | 
			
		||||
        database.deleted.connect(self.itemRemoved)
 | 
			
		||||
        database.changed.connect(self.itemWasChanged)
 | 
			
		||||
        database.deleted.connect(self.itemWasRemoved)
 | 
			
		||||
 | 
			
		||||
        schemas = database.schemas()
 | 
			
		||||
        if schemas is not None:
 | 
			
		||||
@ -195,8 +195,8 @@ class SchemaItem(TreeItem):
 | 
			
		||||
 | 
			
		||||
    def __init__(self, schema, parent):
 | 
			
		||||
        TreeItem.__init__(self, schema, parent)
 | 
			
		||||
        schema.changed.connect(self.itemChanged)
 | 
			
		||||
        schema.deleted.connect(self.itemRemoved)
 | 
			
		||||
        schema.changed.connect(self.itemWasChanged)
 | 
			
		||||
        schema.deleted.connect(self.itemWasRemoved)
 | 
			
		||||
 | 
			
		||||
        # load (shared) icon with first instance of schema item
 | 
			
		||||
        if not hasattr(SchemaItem, 'schemaIcon'):
 | 
			
		||||
@ -225,8 +225,8 @@ class TableItem(TreeItem):
 | 
			
		||||
 | 
			
		||||
    def __init__(self, table, parent):
 | 
			
		||||
        TreeItem.__init__(self, table, parent)
 | 
			
		||||
        table.changed.connect(self.itemChanged)
 | 
			
		||||
        table.deleted.connect(self.itemRemoved)
 | 
			
		||||
        table.changed.connect(self.itemWasChanged)
 | 
			
		||||
        table.deleted.connect(self.itemWasRemoved)
 | 
			
		||||
        self.populate()
 | 
			
		||||
 | 
			
		||||
        # load (shared) icon with first instance of table item
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user