Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QDesktopUnixServices Class Reference

#include <qdesktopunixservices_p.h>

Inheritance diagram for QDesktopUnixServices:
Collaboration diagram for QDesktopUnixServices:

Public Member Functions

 QDesktopUnixServices ()
 ~QDesktopUnixServices ()
QByteArray desktopEnvironment () const override
 QPlatformServices::desktopEnvironment returns the active desktop environment.
bool hasCapability (Capability capability) const override
bool openUrl (const QUrl &url) override
bool openDocument (const QUrl &url) override
QPlatformServiceColorPickercolorPicker (QWindow *parent=nullptr) override
void setApplicationBadge (qint64 number)
virtual QString portalWindowIdentifier (QWindow *window)
virtual void registerDBusMenuForWindow (QWindow *window, const QString &service, const QString &path)
virtual void unregisterDBusMenuForWindow (QWindow *window)
Public Member Functions inherited from QPlatformServices
 QPlatformServices ()
virtual ~QPlatformServices ()

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 31 of file qdesktopunixservices_p.h.

Constructor & Destructor Documentation

◆ QDesktopUnixServices()

QDesktopUnixServices::QDesktopUnixServices ( )
default

◆ ~QDesktopUnixServices()

QDesktopUnixServices::~QDesktopUnixServices ( )
default

Member Function Documentation

◆ colorPicker()

QPlatformServiceColorPicker * QDesktopUnixServices::colorPicker ( QWindow * parent = nullptr)
overridevirtual

Reimplemented from QPlatformServices.

Definition at line 629 of file qdesktopunixservices.cpp.

◆ desktopEnvironment()

QByteArray QDesktopUnixServices::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 610 of file qdesktopunixservices.cpp.

◆ hasCapability()

bool QDesktopUnixServices::hasCapability ( Capability capability) const
overridevirtual

Reimplemented from QPlatformServices.

Definition at line 657 of file qdesktopunixservices.cpp.

◆ openDocument()

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

Reimplemented from QPlatformServices.

Reimplemented in QtWaylandClient::QWaylandPlatformServices.

Definition at line 622 of file qdesktopunixservices.cpp.

◆ openUrl()

bool QDesktopUnixServices::openUrl ( const QUrl & url)
overridevirtual

Reimplemented from QPlatformServices.

Reimplemented in QtWaylandClient::QWaylandPlatformServices.

Definition at line 615 of file qdesktopunixservices.cpp.

◆ portalWindowIdentifier()

QString QDesktopUnixServices::portalWindowIdentifier ( QWindow * window)
virtual

◆ registerDBusMenuForWindow()

void QDesktopUnixServices::registerDBusMenuForWindow ( QWindow * window,
const QString & service,
const QString & path )
virtual

◆ setApplicationBadge()

void QDesktopUnixServices::setApplicationBadge ( qint64 number)

Definition at line 666 of file qdesktopunixservices.cpp.

◆ unregisterDBusMenuForWindow()

void QDesktopUnixServices::unregisterDBusMenuForWindow ( QWindow * window)
virtual

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