Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qhaikuservices.h>
Public Member Functions | |
bool | openUrl (const QUrl &url) override |
bool | openDocument (const QUrl &url) override |
QByteArray | desktopEnvironment () const override |
QPlatformServices::desktopEnvironment returns the active desktop environment. | |
Public Member Functions inherited from QPlatformServices | |
QPlatformServices () | |
virtual | ~QPlatformServices () |
virtual bool | hasCapability (Capability capability) const |
virtual QPlatformServiceColorPicker * | colorPicker (QWindow *parent=nullptr) |
Additional Inherited Members | |
Public Types inherited from QPlatformServices | |
enum | Capability { ColorPicking } |
Capabilities are used to determine a specific platform service's availability. More... | |
Definition at line 11 of file qhaikuservices.h.
|
overridevirtual |
QPlatformServices::desktopEnvironment returns the active desktop environment.
On Unix this function returns the uppercase desktop environment name, such as KDE, GNOME, UNITY, XFCE, LXDE etc. or UNKNOWN if none was detected. The primary way to detect the desktop environment is the environment variable XDG_CURRENT_DESKTOP.
Reimplemented from QPlatformServices.
Definition at line 47 of file qhaikuservices.cpp.
References QByteArray().
|
overridevirtual |
Reimplemented from QPlatformServices.
Definition at line 33 of file qhaikuservices.cpp.
References QByteArray::constData(), QFile::encodeName(), QUrl::toLocalFile(), and url.
|
overridevirtual |
Reimplemented from QPlatformServices.
Definition at line 15 of file qhaikuservices.cpp.
References QByteArray::data(), mimeType, QString::toLocal8Bit(), QUrl::toString(), and url.