Ensure openUrl() and openDocument() are no-ops in the headless backend

This commit is contained in:
Kovid Goyal 2020-02-05 13:43:16 +05:30
parent 096fb0486f
commit 652841175d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -37,6 +37,8 @@ class GenericUnixServices : public QGenericUnixServices {
* does not make sense anyway. * does not make sense anyway.
*/ */
QByteArray desktopEnvironment() const { return QByteArrayLiteral("UNKNOWN"); } QByteArray desktopEnvironment() const { return QByteArrayLiteral("UNKNOWN"); }
bool openUrl(const QUrl &url) { Q_UNUSED(url); return false; }
bool openDocument(const QUrl &url) { Q_UNUSED(url); return false; }
}; };
#endif #endif