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>.
Loading...
Searching...
No Matches
QHaikuServices Class Reference

#include <qhaikuservices.h>

+ Inheritance diagram for QHaikuServices:
+ Collaboration diagram for QHaikuServices:

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 QPlatformServiceColorPickercolorPicker (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...
 

Detailed Description

Definition at line 11 of file qhaikuservices.h.

Member Function Documentation

◆ desktopEnvironment()

QByteArray QHaikuServices::desktopEnvironment ( ) const
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().

+ Here is the call graph for this function:

◆ openDocument()

bool QHaikuServices::openDocument ( const QUrl & url)
overridevirtual

Reimplemented from QPlatformServices.

Definition at line 33 of file qhaikuservices.cpp.

References QByteArray::constData(), QFile::encodeName(), QUrl::toLocalFile(), and url.

+ Here is the call graph for this function:

◆ openUrl()

QT_BEGIN_NAMESPACE bool QHaikuServices::openUrl ( const QUrl & url)
overridevirtual

Reimplemented from QPlatformServices.

Definition at line 15 of file qhaikuservices.cpp.

References QByteArray::data(), mimeType, QString::toLocal8Bit(), QUrl::toString(), and url.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: