Esempio n. 1
0
void LiteDoc::openUrl(const QUrl &_url)
{
    QUrl url = parserUrl(_url);
    if (url.scheme() == "file") {
        openUrlFile(url);
    } else if (url.scheme() == "http" ||
               url.scheme() == "https" ||
               url.scheme() == "mailto") {
        QDesktopServices::openUrl(url);
    }
}
Esempio n. 2
0
void LiteDoc::openUrl(const QUrl &_url)
{
    m_liteApp->mainWindow()->statusBar()->clearMessage();

    QUrl url = parserUrl(_url);
    if (url.scheme() == "file") {
        openUrlFile(url);
    } else if (url.scheme() == "http" ||
               url.scheme() == "https" ||
               url.scheme() == "mailto") {
        QDesktopServices::openUrl(url);
    }
}