'Copy the onionshare URL to the clipboard.'

def copy_url(self):

    url = 'http://{0:s}/{1:s}'.format(self.app.onion_host, self.web.slug)
    clipboard = self.qtapp.clipboard()
    clipboard.setText(url)
    self.url_copied.emit()
