def METHOD_NAME(self, connections):
    """
    Clears the connection list and adds an entry for each item in connetions
    :param connections: the new connections
    :type connections: dict
    """
    self.ui.connectionList.clear()
    for c in connections.keys():
        item = QListWidgetItem("%s (%s)" % (c[0], c[1]))
        enabled = connections[c]["enabled"]
        client = connections[c]["address"]
        item.setCheckState(Qt.Checked if enabled else Qt.Unchecked)
        color = self.connectionColors[0 if client is None else 1]
        item.setBackground(QBrush(color, Qt.SolidPattern))
        self.ui.connectionList.addItem(item)