![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
QKdeTheme is a theme implementation for the KDE desktop (version 4 or higher). More...
#include <qkdetheme_p.h>
Public Member Functions | |
QKdeTheme (const QStringList &kdeDirs, int kdeVersion) | |
~QKdeTheme () override | |
QVariant | themeHint (ThemeHint hint) const override |
QIcon | fileIcon (const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions={ }) const override |
Return an icon for fileInfo, observing iconOptions. | |
const QPalette * | palette (Palette type=SystemPalette) const override |
Return a color palette for type type. | |
Qt::ColorScheme | colorScheme () const override |
void | requestColorScheme (Qt::ColorScheme scheme) override |
QKdeTheme::requestColorScheme Programmatically request a color scheme If scheme is Dark or Light , scheme is applied to the application, independently from the current KDE theme. If scheme is Unknown , the current KDE theme's color scheme will be applied instead. This is the default behavior. | |
const QFont * | font (Font type) const override |
Public Member Functions inherited from QGenericUnixTheme | |
QGenericUnixTheme () | |
Public Member Functions inherited from QPlatformTheme | |
QPlatformTheme () | |
virtual | ~QPlatformTheme () |
virtual QPlatformMenuItem * | createPlatformMenuItem () const |
virtual QPlatformMenu * | createPlatformMenu () const |
virtual QPlatformMenuBar * | createPlatformMenuBar () const |
virtual void | showPlatformMenuBar () |
virtual bool | usePlatformNativeDialog (DialogType type) const |
virtual QPlatformDialogHelper * | createPlatformDialogHelper (DialogType type) const |
virtual QPlatformSystemTrayIcon * | createPlatformSystemTrayIcon () const |
Factory function for QSystemTrayIcon. | |
virtual QPixmap | standardPixmap (StandardPixmap sp, const QSizeF &size) const |
Return a pixmap for standardPixmap, at the given size. | |
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. | |
virtual Qt::ContrastPreference | contrastPreference () const |
QString | name () const |
Static Public Member Functions | |
static QPlatformTheme * | createKdeTheme () |
Static Public Member Functions inherited from QGenericUnixTheme | |
static QStringList | xdgIconThemePaths () |
static QPlatformTheme * | createUnixTheme (const QString &name) |
Creates a UNIX theme according to the given theme name. | |
static QStringList | themeNames () |
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 = "kde" |
Static Public Attributes inherited from QGenericUnixTheme | |
static const char * | name = "generic" |
static constexpr char | defaultSystemFontNameC [] = "Sans Serif" |
static constexpr char | defaultFixedFontNameC [] = "monospace" |
QKdeTheme is a theme implementation for the KDE desktop (version 4 or higher).
Definition at line 29 of file qkdetheme_p.h.
|
explicit |
Definition at line 546 of file qkdetheme.cpp.
|
overridedefault |
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 695 of file qkdetheme.cpp.
|
static |
Definition at line 763 of file qkdetheme.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 647 of file qkdetheme.cpp.
Reimplemented from QGenericUnixTheme.
Definition at line 757 of file qkdetheme.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 744 of file qkdetheme.cpp.
|
overridevirtual |
QKdeTheme::requestColorScheme Programmatically request a color scheme If scheme is Dark
or Light
, scheme is applied to the application, independently from the current KDE theme. If scheme is Unknown
, the current KDE theme's color scheme will be applied instead. This is the default behavior.
\reimp
Dark
or Light
. When the requested color scheme doesn't match the current KDE theme, a default Dark
or Light
fusion palette is used instead. QKdeThemePrivate::hasRequestedColorScheme Check if fusion palette fallback is necessary. This internal helper function returns true, if \list
Reimplemented from QPlatformTheme.
Definition at line 684 of file qkdetheme.cpp.
|
overridevirtual |
Reimplemented from QGenericUnixTheme.
Definition at line 595 of file qkdetheme.cpp.
|
static |
Definition at line 54 of file qkdetheme_p.h.
Referenced by testing.tools.encode_pdf_filter._PdfStream::RegisterByName().