![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qgtk3theme.h>
Public Member Functions | |
QGtk3Theme () | |
virtual QVariant | themeHint (ThemeHint hint) const override |
virtual QString | gtkFontName () const override |
Qt::ColorScheme | colorScheme () const override |
void | requestColorScheme (Qt::ColorScheme scheme) override |
bool | usePlatformNativeDialog (DialogType type) const override |
QPlatformDialogHelper * | createPlatformDialogHelper (DialogType type) const override |
const QPalette * | palette (Palette type=SystemPalette) const override |
Return a color palette for type type. | |
const QFont * | font (Font type=SystemFont) 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. | |
Public Member Functions inherited from QGnomeTheme | |
QGnomeTheme () | |
QString | standardButtonText (int button) const override |
Returns the text of a standard button. | |
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 QPlatformSystemTrayIcon * | createPlatformSystemTrayIcon () const |
Factory function for QSystemTrayIcon. | |
virtual QIconEngine * | createIconEngine (const QString &iconName) const |
Factory function for the QIconEngine used by QIcon::fromTheme(). | |
virtual Qt::ContrastPreference | contrastPreference () const |
QString | name () const |
Static Public Attributes | |
static const char * | name = "gtk3" |
Static Public Attributes inherited from QGnomeTheme | |
static const char * | name = "gnome" |
Static Public Attributes inherited from QGenericUnixTheme | |
static const char * | name = "generic" |
static constexpr char | defaultSystemFontNameC [] = "Sans Serif" |
static constexpr char | defaultFixedFontNameC [] = "monospace" |
Definition at line 14 of file qgtk3theme.h.
QGtk3Theme::QGtk3Theme | ( | ) |
Definition at line 55 of file qgtk3theme.cpp.
|
overridevirtual |
Reimplemented from QGnomeTheme.
Definition at line 167 of file qgtk3theme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 211 of file qgtk3theme.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 QGnomeTheme.
Definition at line 273 of file qgtk3theme.cpp.
|
overridevirtual |
Reimplemented from QGnomeTheme.
Definition at line 267 of file qgtk3theme.cpp.
|
overridevirtual |
Reimplemented from QGnomeTheme.
Definition at line 159 of file qgtk3theme.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 240 of file qgtk3theme.cpp.
|
overridevirtual |
Reimplemented from QGnomeTheme.
Definition at line 185 of file qgtk3theme.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 261 of file qgtk3theme.cpp.
|
overridevirtual |
Reimplemented from QGnomeTheme.
Definition at line 120 of file qgtk3theme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 197 of file qgtk3theme.cpp.
|
static |
Definition at line 34 of file qgtk3theme.h.
Referenced by testing.tools.encode_pdf_filter._PdfStream::RegisterByName().