'Update the displayed URL if the url or the hover url changed.'

def _update_url(self):

    if (self._hover_url is not None):
        self.setText(self._hover_url)
        self._urltype = UrlType.hover
    elif (self._normal_url is not None):
        self.setText(self._normal_url)
        self._urltype = self._normal_url_type
    else:
        self.setText('')
        self._urltype = UrlType.normal
    self.setStyleSheet(style.get_stylesheet(self.STYLESHEET))
