'get all key and value and save'

def saveConfigObject(self):

    data = []
    model = self.TabSettings.model()
    for row in range(model.rowCount()):
        data.append([])
        for column in range(model.columnCount()):
            index = model.index(row, column)
            data[row].append(str(model.data(index).toString()))
    for (key, item) in data:
        self.config.set_setting(self.plugin_key, key, item)
    self.close()
