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); } }
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); } }