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>.
Loading...
Searching...
No Matches
QGtk3Theme Class Reference

#include <qgtk3theme.h>

+ Inheritance diagram for QGtk3Theme:
+ Collaboration diagram for QGtk3Theme:

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
 
QPlatformDialogHelpercreatePlatformDialogHelper (DialogType type) const override
 
QPlatformMenucreatePlatformMenu () const override
 
QPlatformMenuItemcreatePlatformMenuItem () const override
 
const QPalettepalette (Palette type=SystemPalette) const override
 
const QFontfont (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.
 
- Public Member Functions inherited from QGnomeTheme
 QGnomeTheme ()
 
QString standardButtonText (int button) const override
 Returns the text of a standard button.
 
QPlatformMenuBarcreatePlatformMenuBar () const override
 
QPlatformSystemTrayIconcreatePlatformSystemTrayIcon () const override
 Factory function for QSystemTrayIcon.
 
- Public Member Functions inherited from QPlatformTheme
 Q_ENUM (DialogType)
 
 QPlatformTheme ()
 
virtual ~QPlatformTheme ()
 
virtual void showPlatformMenuBar ()
 
virtual QIconEnginecreateIconEngine (const QString &iconName) const
 Factory function for the QIconEngine used by QIcon::fromTheme().
 
QString name () const
 

Static Public Attributes

static const char * name = "gtk3"
 
- Static Public Attributes inherited from QGnomeTheme
static const char * name = "gnome"
 

Additional Inherited Members

- Public Types inherited from QPlatformTheme
enum  ThemeHint {
  CursorFlashTime , KeyboardInputInterval , MouseDoubleClickInterval , StartDragDistance ,
  StartDragTime , KeyboardAutoRepeatRate , PasswordMaskDelay , StartDragVelocity ,
  TextCursorWidth , DropShadow , MaximumScrollBarDragDistance , ToolButtonStyle ,
  ToolBarIconSize , ItemViewActivateItemOnSingleClick , SystemIconThemeName , SystemIconFallbackThemeName ,
  IconThemeSearchPaths , StyleNames , WindowAutoPlacement , DialogButtonBoxLayout ,
  DialogButtonBoxButtonsHaveIcons , UseFullScreenForPopupMenu , KeyboardScheme , UiEffects ,
  SpellCheckUnderlineStyle , TabFocusBehavior , IconPixmapSizes , PasswordMaskCharacter ,
  DialogSnapToDefaultButton , ContextMenuOnMouseRelease , MousePressAndHoldInterval , MouseDoubleClickDistance ,
  WheelScrollLines , TouchDoubleTapDistance , ShowShortcutsInContextMenus , IconFallbackSearchPaths ,
  MouseQuickSelectionThreshold , InteractiveResizeAcrossScreens , ShowDirectoriesFirst , PreselectFirstFileInDirectory ,
  ButtonPressKeys , SetFocusOnTouchRelease , FlickStartDistance , FlickMaximumVelocity ,
  FlickDeceleration , MenuBarFocusOnAltPressRelease , MouseCursorTheme , MouseCursorSize ,
  UnderlineShortcut
}
 This enum describes the available theme hints. More...
 
enum  DialogType { FileDialog , ColorDialog , FontDialog , MessageDialog }
 
enum  Palette {
  SystemPalette , ToolTipPalette , ToolButtonPalette , ButtonPalette ,
  CheckBoxPalette , RadioButtonPalette , HeaderPalette , ComboBoxPalette ,
  ItemViewPalette , MessageBoxLabelPelette , MessageBoxLabelPalette = MessageBoxLabelPelette , TabBarPalette ,
  LabelPalette , GroupBoxPalette , MenuPalette , MenuBarPalette ,
  TextEditPalette , TextLineEditPalette , NPalettes
}
 
enum  Font {
  SystemFont , MenuFont , MenuBarFont , MenuItemFont ,
  MessageBoxFont , LabelFont , TipLabelFont , StatusBarFont ,
  TitleBarFont , MdiSubWindowTitleFont , DockWidgetTitleFont , PushButtonFont ,
  CheckBoxFont , RadioButtonFont , ToolButtonFont , ItemViewFont ,
  ListViewFont , HeaderViewFont , ListBoxFont , ComboMenuItemFont ,
  ComboLineEditFont , SmallFont , MiniFont , FixedFont ,
  GroupBoxTitleFont , TabButtonFont , EditorFont , NFonts
}
 
enum  StandardPixmap {
  TitleBarMenuButton , TitleBarMinButton , TitleBarMaxButton , TitleBarCloseButton ,
  TitleBarNormalButton , TitleBarShadeButton , TitleBarUnshadeButton , TitleBarContextHelpButton ,
  DockWidgetCloseButton , MessageBoxInformation , MessageBoxWarning , MessageBoxCritical ,
  MessageBoxQuestion , DesktopIcon , TrashIcon , ComputerIcon ,
  DriveFDIcon , DriveHDIcon , DriveCDIcon , DriveDVDIcon ,
  DriveNetIcon , DirOpenIcon , DirClosedIcon , DirLinkIcon ,
  DirLinkOpenIcon , FileIcon , FileLinkIcon , ToolBarHorizontalExtensionButton ,
  ToolBarVerticalExtensionButton , FileDialogStart , FileDialogEnd , FileDialogToParent ,
  FileDialogNewFolder , FileDialogDetailedView , FileDialogInfoView , FileDialogContentsView ,
  FileDialogListView , FileDialogBack , DirIcon , DialogOkButton ,
  DialogCancelButton , DialogHelpButton , DialogOpenButton , DialogSaveButton ,
  DialogCloseButton , DialogApplyButton , DialogResetButton , DialogDiscardButton ,
  DialogYesButton , DialogNoButton , ArrowUp , ArrowDown ,
  ArrowLeft , ArrowRight , ArrowBack , ArrowForward ,
  DirHomeIcon , CommandLink , VistaShield , BrowserReload ,
  BrowserStop , MediaPlay , MediaStop , MediaPause ,
  MediaSkipForward , MediaSkipBackward , MediaSeekForward , MediaSeekBackward ,
  MediaVolume , MediaVolumeMuted , LineEditClearButton , DialogYesToAllButton ,
  DialogNoToAllButton , DialogSaveAllButton , DialogAbortButton , DialogRetryButton ,
  DialogIgnoreButton , RestoreDefaultsButton , TabCloseButton , NStandardPixmap ,
  CustomBase = 0xf0000000
}
 
enum  KeyboardSchemes {
  WindowsKeyboardScheme , MacKeyboardScheme , X11KeyboardScheme , KdeKeyboardScheme ,
  GnomeKeyboardScheme , CdeKeyboardScheme
}
 
enum  UiEffect {
  GeneralUiEffect = 0x1 , AnimateMenuUiEffect = 0x2 , FadeMenuUiEffect = 0x4 , AnimateComboUiEffect = 0x8 ,
  AnimateTooltipUiEffect = 0x10 , FadeTooltipUiEffect = 0x20 , AnimateToolBoxUiEffect = 0x40 , HoverEffect = 0x80
}
 
enum  IconOption { DontUseCustomDirectoryIcons = 0x01 }
 
- Static Public Member Functions inherited from QPlatformTheme
static QVariant defaultThemeHint (ThemeHint hint)
 
static QString defaultStandardButtonText (int button)
 
static QString removeMnemonics (const QString &original)
 
- Protected Member Functions inherited from QPlatformTheme
 QPlatformTheme (QPlatformThemePrivate *priv)
 
- Protected Attributes inherited from QPlatformTheme
QScopedPointer< QPlatformThemePrivated_ptr
 

Detailed Description

Definition at line 13 of file qgtk3theme.h.

Constructor & Destructor Documentation

◆ QGtk3Theme()

QGtk3Theme::QGtk3Theme ( )

Definition at line 55 of file qgtk3theme.cpp.

References gtkMessageHandler(), QWindowSystemInterface::handleThemeChange(), QGuiApplication::platformName, SETTING_CONNECT, and settings.

+ Here is the call graph for this function:

Member Function Documentation

◆ colorScheme()

Qt::ColorScheme QGtk3Theme::colorScheme ( ) const
overridevirtual

Reimplemented from QGnomeTheme.

Definition at line 163 of file qgtk3theme.cpp.

References Q_ASSERT.

◆ createPlatformDialogHelper()

QPlatformDialogHelper * QGtk3Theme::createPlatformDialogHelper ( DialogType type) const
overridevirtual

◆ createPlatformMenu()

QPlatformMenu * QGtk3Theme::createPlatformMenu ( ) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 199 of file qgtk3theme.cpp.

◆ createPlatformMenuItem()

QPlatformMenuItem * QGtk3Theme::createPlatformMenuItem ( ) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 204 of file qgtk3theme.cpp.

◆ fileIcon()

QIcon QGtk3Theme::fileIcon ( const QFileInfo & fileInfo,
QPlatformTheme::IconOptions iconOptions = { } ) const
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.

Since
5.8

Reimplemented from QGnomeTheme.

Definition at line 240 of file qgtk3theme.cpp.

References Q_ASSERT, and Q_UNUSED.

◆ font()

const QFont * QGtk3Theme::font ( Font type = SystemFont) const
overridevirtual

Reimplemented from QGnomeTheme.

Definition at line 234 of file qgtk3theme.cpp.

References Q_ASSERT.

◆ gtkFontName()

QString QGtk3Theme::gtkFontName ( ) const
overridevirtual

Reimplemented from QGnomeTheme.

Definition at line 155 of file qgtk3theme.cpp.

References QGnomeTheme::gtkFontName(), and gtkSetting().

+ Here is the call graph for this function:

◆ palette()

const QPalette * QGtk3Theme::palette ( Palette type = SystemPalette) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 222 of file qgtk3theme.cpp.

References Q_ASSERT.

◆ standardPixmap()

QPixmap QGtk3Theme::standardPixmap ( StandardPixmap sp,
const QSizeF & size ) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 228 of file qgtk3theme.cpp.

References Q_ASSERT, and sp.

◆ themeHint()

◆ usePlatformNativeDialog()

bool QGtk3Theme::usePlatformNativeDialog ( DialogType type) const
overridevirtual

Member Data Documentation

◆ name

const char * QGtk3Theme::name = "gtk3"
static

Definition at line 35 of file qgtk3theme.h.

Referenced by QGtk3ThemePlugin::create().


The documentation for this class was generated from the following files: