'Apply persistent settings'

def apply_state(self, state):

    result = super(Grep, self).apply_state(state)
    try:
        self.splitter.setSizes(state[u'sizes'])
    except:
        result = False
    return result
