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
QGenericUnixServices Class Reference

#include <qgenericunixservices_p.h>

+ Inheritance diagram for QGenericUnixServices:
+ Collaboration diagram for QGenericUnixServices:

Public Member Functions

 QGenericUnixServices ()
 
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)
 
- 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 26 of file qgenericunixservices_p.h.

Constructor & Destructor Documentation

◆ QGenericUnixServices()

QGenericUnixServices::QGenericUnixServices ( )
default

Member Function Documentation

◆ colorPicker()

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

Reimplemented from QPlatformServices.

Definition at line 557 of file qgenericunixservices.cpp.

References Q_UNUSED.

◆ desktopEnvironment()

QByteArray QGenericUnixServices::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 538 of file qgenericunixservices.cpp.

References QByteArrayLiteral.

◆ hasCapability()

bool QGenericUnixServices::hasCapability ( Capability capability) const
overridevirtual

Reimplemented from QPlatformServices.

Definition at line 571 of file qgenericunixservices.cpp.

References QPlatformServices::ColorPicking.

◆ openDocument()

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

Reimplemented from QPlatformServices.

Reimplemented in QtWaylandClient::QWaylandWindowManagerIntegration.

Definition at line 550 of file qgenericunixservices.cpp.

References Q_UNUSED, qWarning, and url.

Referenced by QtWaylandClient::QWaylandWindowManagerIntegration::openDocument().

+ Here is the caller graph for this function:

◆ openUrl()

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

Reimplemented from QPlatformServices.

Reimplemented in QtWaylandClient::QWaylandWindowManagerIntegration.

Definition at line 543 of file qgenericunixservices.cpp.

References Q_UNUSED, qWarning, and url.

Referenced by QtWaylandClient::QWaylandWindowManagerIntegration::openUrl().

+ Here is the caller graph for this function:

◆ portalWindowIdentifier()

QString QGenericUnixServices::portalWindowIdentifier ( QWindow * window)
virtual

Reimplemented in QXcbUnixServices, and QtWaylandClient::QWaylandWindowManagerIntegration.

Definition at line 565 of file qgenericunixservices.cpp.

References Q_UNUSED, and window().

Referenced by QGtk3Dialog::show().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setApplicationBadge()

void QGenericUnixServices::setApplicationBadge ( qint64 number)

Definition at line 580 of file qgenericunixservices.cpp.

References QDBusMessage::createSignal(), number, Q_UNUSED, qBound(), qGuiApp, QStringLiteral, qWarning, QDBusConnection::sessionBus(), and signal.

Referenced by QXcbIntegration::setApplicationBadge().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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