'Setter to be used as a Qt slot.
Args:
url: The URL to set as QUrl, or None.'

@pyqtSlot(QUrl)
def set_url(self, url):

    if (url is None):
        self._normal_url = None
    elif (not url.isValid()):
        self._normal_url = 'Invalid    URL!'
    else:
        self._normal_url = urlutils.safe_display_string(url)
    self._normal_url_type = UrlType.normal
    self._update_url()
