![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qxdgdesktopportaltheme.h>
Public Member Functions | |
QXdgDesktopPortalTheme () | |
QPlatformMenuItem * | createPlatformMenuItem () const override |
QPlatformMenu * | createPlatformMenu () const override |
QPlatformMenuBar * | createPlatformMenuBar () const override |
void | showPlatformMenuBar () override |
bool | usePlatformNativeDialog (DialogType type) const override |
QPlatformDialogHelper * | createPlatformDialogHelper (DialogType type) const override |
QPlatformSystemTrayIcon * | createPlatformSystemTrayIcon () const override |
Factory function for QSystemTrayIcon. | |
const QPalette * | palette (Palette type=SystemPalette) const override |
Return a color palette for type type. | |
const QFont * | font (Font type=SystemFont) const override |
QVariant | themeHint (ThemeHint hint) const override |
Qt::ColorScheme | colorScheme () const override |
Qt::ContrastPreference | contrastPreference () const override |
QPixmap | standardPixmap (StandardPixmap sp, const QSizeF &size) const override |
Return a pixmap for standardPixmap, at the given size. | |
QIcon | fileIcon (const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions={ }) const override |
Return an icon for fileInfo, observing iconOptions. | |
QIconEngine * | createIconEngine (const QString &iconName) const override |
Factory function for the QIconEngine used by QIcon::fromTheme(). | |
QString | standardButtonText (int button) const override |
Returns the text of a standard button. | |
Public Member Functions inherited from QPlatformTheme | |
QPlatformTheme () | |
virtual | ~QPlatformTheme () |
virtual void | requestColorScheme (Qt::ColorScheme scheme) |
QString | name () const |
Static Public Member Functions | |
static bool | isXdgPlugin (const QString &key) |
Static Public Member Functions inherited from QPlatformTheme | |
static QVariant | defaultThemeHint (ThemeHint hint) |
static QString | defaultStandardButtonText (int button) |
static QString | removeMnemonics (const QString &original) |
Definition at line 14 of file qxdgdesktopportaltheme.h.
QXdgDesktopPortalTheme::QXdgDesktopPortalTheme | ( | ) |
Definition at line 93 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 241 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 249 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Factory function for the QIconEngine used by QIcon::fromTheme().
By default this function returns a QIconLoaderEngine, but subclasses can reimplement it to provide their own.
It is especially useful to benefit from some platform specific facilities or optimizations like an inter-process cache in systems mostly built with Qt.
Reimplemented from QPlatformTheme.
Definition at line 268 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 198 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 170 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 176 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 164 of file qxdgdesktopportaltheme.cpp.
|
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 216 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Return an icon for fileInfo, observing iconOptions.
This function is queried by QFileIconProvider and similar classes to obtain an icon for a file. If it does not return a non-null icon, fileIconPixmap() is queried for a specific size.
Reimplemented from QPlatformTheme.
Definition at line 261 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 229 of file qxdgdesktopportaltheme.cpp.
|
static |
Definition at line 288 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Return a color palette for type type.
When relying on system color palette keep in mind that it is lazily initialized and cached. If it needs to be updated (i.e. due to ColorScheme changes), it's up to the caller to take care of it. See requestColorScheme
.
Reimplemented from QPlatformTheme.
Definition at line 223 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 182 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Returns the text of a standard button.
Reimplemented from QPlatformTheme.
Definition at line 282 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Return a pixmap for standardPixmap, at the given size.
The implementation should not take system DPR into account, and always return a pixmap with a DPR of 1. It's up to the consumer to account for DPR and request a pixmap of the right size.
Reimplemented from QPlatformTheme.
Definition at line 255 of file qxdgdesktopportaltheme.cpp.
Reimplemented from QPlatformTheme.
Definition at line 235 of file qxdgdesktopportaltheme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 188 of file qxdgdesktopportaltheme.cpp.