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 <qgenericunixthemes_p.h>
Public Member Functions | |
QGenericUnixTheme () | |
const QFont * | font (Font type) const override |
QVariant | themeHint (ThemeHint hint) const override |
QPlatformMenuBar * | createPlatformMenuBar () const override |
QPlatformSystemTrayIcon * | createPlatformSystemTrayIcon () const override |
Factory function for QSystemTrayIcon. | |
Public Member Functions inherited from QPlatformTheme | |
Q_ENUM (DialogType) | |
QPlatformTheme () | |
virtual | ~QPlatformTheme () |
virtual QPlatformMenuItem * | createPlatformMenuItem () const |
virtual QPlatformMenu * | createPlatformMenu () const |
virtual void | showPlatformMenuBar () |
virtual bool | usePlatformNativeDialog (DialogType type) const |
virtual QPlatformDialogHelper * | createPlatformDialogHelper (DialogType type) const |
virtual Qt::ColorScheme | colorScheme () const |
virtual const QPalette * | palette (Palette type=SystemPalette) const |
virtual QPixmap | standardPixmap (StandardPixmap sp, const QSizeF &size) const |
virtual QIcon | fileIcon (const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions={ }) const |
Return an icon for fileInfo, observing iconOptions. | |
virtual QIconEngine * | createIconEngine (const QString &iconName) const |
Factory function for the QIconEngine used by QIcon::fromTheme(). | |
virtual QString | standardButtonText (int button) const |
Returns the text of a standard button. | |
QString | name () const |
Static Public Member Functions | |
static QPlatformTheme * | createUnixTheme (const QString &name) |
Creates a UNIX theme according to the detected desktop environment. | |
static QStringList | themeNames () |
static QStringList | xdgIconThemePaths () |
static QStringList | iconFallbackPaths () |
Static Public Member Functions inherited from QPlatformTheme | |
static QVariant | defaultThemeHint (ThemeHint hint) |
static QString | defaultStandardButtonText (int button) |
static QString | removeMnemonics (const QString &original) |
Static Public Attributes | |
static const char * | name = "generic" |
Definition at line 40 of file qgenericunixthemes_p.h.
QGenericUnixTheme::QGenericUnixTheme | ( | ) |
Definition at line 423 of file qgenericunixthemes.cpp.
Referenced by createUnixTheme().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 468 of file qgenericunixthemes.cpp.
References isDBusGlobalMenuAvailable().
|
overridevirtual |
Factory function for QSystemTrayIcon.
This function will return 0 if the platform integration does not support creating any system tray icon.
Reimplemented from QPlatformTheme.
Definition at line 477 of file qgenericunixthemes.cpp.
References isDBusTrayAvailable().
|
static |
Creates a UNIX theme according to the detected desktop environment.
Definition at line 1298 of file qgenericunixthemes.cpp.
References QGenericUnixTheme(), name, and QGnomeTheme::name.
Referenced by QEglFSIntegration::createPlatformTheme(), QVkKhrDisplayIntegration::createPlatformTheme(), QXcbIntegration::createPlatformTheme(), and QtWaylandClient::QWaylandIntegration::createPlatformTheme().
Reimplemented from QPlatformTheme.
Definition at line 428 of file qgenericunixthemes.cpp.
References d, QPlatformTheme::FixedFont, and QPlatformTheme::SystemFont.
|
static |
Definition at line 457 of file qgenericunixthemes.cpp.
References QStringLiteral.
Referenced by themeHint().
Reimplemented from QPlatformTheme.
Definition at line 485 of file qgenericunixthemes.cpp.
References QPlatformTheme::DialogButtonBoxButtonsHaveIcons, hint(), QPlatformTheme::HoverEffect, iconFallbackPaths(), QPlatformTheme::IconFallbackSearchPaths, QPlatformTheme::IconThemeSearchPaths, QPlatformTheme::KeyboardScheme, QPlatformTheme::MouseCursorSize, mouseCursorSize(), QPlatformTheme::MouseCursorTheme, mouseCursorTheme(), QStringLiteral, QPlatformTheme::StyleNames, styleNames(), QPlatformTheme::SystemIconFallbackThemeName, QPlatformTheme::themeHint(), QPlatformTheme::UiEffects, QPlatformTheme::X11KeyboardScheme, and xdgIconThemePaths().
|
static |
Definition at line 1312 of file qgenericunixthemes.cpp.
References QGuiApplication::desktopSettingsAware(), QString::fromLatin1(), name, QGnomeTheme::name, QGuiApplicationPrivate::platformIntegration(), QList< T >::push_back(), QStringLiteral, and QByteArray::split().
Referenced by QXcbIntegration::themeNames(), and QtWaylandClient::QWaylandIntegration::themeNames().
|
static |
Definition at line 442 of file qgenericunixthemes.cpp.
References QStandardPaths::GenericDataLocation, QDir::homePath(), QStandardPaths::locateAll(), QStandardPaths::LocateDirectory, and QStringLiteral.
Referenced by themeHint(), and QGnomeTheme::themeHint().
|
static |
Definition at line 61 of file qgenericunixthemes_p.h.
Referenced by createUnixTheme(), and themeNames().