![]() |
Qt 6.x
The Qt SDK
|
#include <qgtk3theme.h>
Public Member Functions | |
QGtk3Theme () | |
virtual QVariant | themeHint (ThemeHint hint) const override |
virtual QString | gtkFontName () const override |
Qt::ColorScheme | colorScheme () const override |
bool | usePlatformNativeDialog (DialogType type) const override |
QPlatformDialogHelper * | createPlatformDialogHelper (DialogType type) const override |
QPlatformMenu * | createPlatformMenu () const override |
QPlatformMenuItem * | createPlatformMenuItem () const override |
const QPalette * | palette (Palette type=SystemPalette) const override |
const QFont * | font (Font type=SystemFont) const override |
QPixmap | standardPixmap (StandardPixmap sp, const QSizeF &size) const override |
QIcon | fileIcon (const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions={ }) const override |
Return an icon for fileInfo, observing iconOptions. | |
![]() | |
QGnomeTheme () | |
QVariant | themeHint (ThemeHint hint) const override |
QIcon | fileIcon (const QFileInfo &fileInfo, QPlatformTheme::IconOptions={ }) const override |
Return an icon for fileInfo, observing iconOptions. | |
const QFont * | font (Font type) const override |
QString | standardButtonText (int button) const override |
Returns the text of a standard button. | |
virtual QString | gtkFontName () const |
QPlatformMenuBar * | createPlatformMenuBar () const override |
Qt::ColorScheme | colorScheme () const override |
QPlatformSystemTrayIcon * | createPlatformSystemTrayIcon () const override |
Factory function for QSystemTrayIcon. | |
![]() | |
Q_ENUM (DialogType) | |
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 Qt::ColorScheme | colorScheme () const |
virtual const QPalette * | palette (Palette type=SystemPalette) const |
virtual const QFont * | font (Font type=SystemFont) const |
virtual QVariant | themeHint (ThemeHint hint) 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 Attributes | |
static const char * | name = "gtk3" |
![]() | |
static const char * | name = "gnome" |
Definition at line 13 of file qgtk3theme.h.
QGtk3Theme::QGtk3Theme | ( | ) |
Definition at line 55 of file qgtk3theme.cpp.
References gtkMessageHandler(), QWindowSystemInterface::handleThemeChange(), QGuiApplication::platformName, SETTING_CONNECT, and settings.
|
overridevirtual |
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 183 of file qgtk3theme.cpp.
References QPlatformTheme::ColorDialog, QPlatformTheme::FileDialog, and QPlatformTheme::FontDialog.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 199 of file qgtk3theme.cpp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 204 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 240 of file qgtk3theme.cpp.
|
overridevirtual |
|
overridevirtual |
Reimplemented from QGnomeTheme.
Definition at line 155 of file qgtk3theme.cpp.
References QGnomeTheme::gtkFontName(), gtkSetting(), and QString::isEmpty().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 222 of file qgtk3theme.cpp.
References Q_ASSERT.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 228 of file qgtk3theme.cpp.
|
overridevirtual |
Reimplemented from QGnomeTheme.
Definition at line 119 of file qgtk3theme.cpp.
References QPlatformTheme::CursorFlashTime, gtkGetLongPressTime(), gtkSetting(), hint(), QPlatformTheme::MouseCursorSize, QPlatformTheme::MouseCursorTheme, QPlatformTheme::MouseDoubleClickDistance, QPlatformTheme::MouseDoubleClickInterval, QPlatformTheme::MousePressAndHoldInterval, QPlatformTheme::PasswordMaskDelay, QPlatformTheme::StartDragDistance, QPlatformTheme::SystemIconFallbackThemeName, QPlatformTheme::SystemIconThemeName, and QGnomeTheme::themeHint().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 169 of file qgtk3theme.cpp.
References QPlatformTheme::ColorDialog, QPlatformTheme::FileDialog, and QPlatformTheme::FontDialog.
|
static |
Definition at line 35 of file qgtk3theme.h.
Referenced by QGtk3ThemePlugin::create().