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
QGnomeTheme Class Reference

QGnomeTheme is a theme implementation for the Gnome desktop. More...

#include <qgenericunixthemes_p.h>

+ Inheritance diagram for QGnomeTheme:
+ Collaboration diagram for QGnomeTheme:

Public Member Functions

 QGnomeTheme ()
 
QVariant themeHint (ThemeHint hint) const override
 
QIcon fileIcon (const QFileInfo &fileInfo, QPlatformTheme::IconOptions={ }) const override
 Return an icon for fileInfo, observing iconOptions.
 
const QFontfont (Font type) const override
 
QString standardButtonText (int button) const override
 Returns the text of a standard button.
 
virtual QString gtkFontName () const
 
QPlatformMenuBarcreatePlatformMenuBar () const override
 
Qt::ColorScheme colorScheme () const override
 
QPlatformSystemTrayIconcreatePlatformSystemTrayIcon () const override
 Factory function for QSystemTrayIcon.
 
- Public Member Functions inherited from QPlatformTheme
 Q_ENUM (DialogType)
 
 QPlatformTheme ()
 
virtual ~QPlatformTheme ()
 
virtual QPlatformMenuItemcreatePlatformMenuItem () const
 
virtual QPlatformMenucreatePlatformMenu () const
 
virtual void showPlatformMenuBar ()
 
virtual bool usePlatformNativeDialog (DialogType type) const
 
virtual QPlatformDialogHelpercreatePlatformDialogHelper (DialogType type) const
 
virtual const QPalettepalette (Palette type=SystemPalette) const
 
virtual QPixmap standardPixmap (StandardPixmap sp, const QSizeF &size) const
 
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 = "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

QGnomeTheme is a theme implementation for the Gnome desktop.

Since
5.0

Definition at line 96 of file qgenericunixthemes_p.h.

Constructor & Destructor Documentation

◆ QGnomeTheme()

QGnomeTheme::QGnomeTheme ( )

Definition at line 1175 of file qgenericunixthemes.cpp.

Member Function Documentation

◆ colorScheme()

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

Reimplemented from QPlatformTheme.

Reimplemented in QGtk3Theme.

Definition at line 1259 of file qgenericunixthemes.cpp.

◆ createPlatformMenuBar()

QPlatformMenuBar * QGnomeTheme::createPlatformMenuBar ( ) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 1252 of file qgenericunixthemes.cpp.

References isDBusGlobalMenuAvailable().

+ Here is the call graph for this function:

◆ createPlatformSystemTrayIcon()

QPlatformSystemTrayIcon * QGnomeTheme::createPlatformSystemTrayIcon ( ) const
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 1267 of file qgenericunixthemes.cpp.

References isDBusTrayAvailable().

+ Here is the call graph for this function:

◆ fileIcon()

QIcon QGnomeTheme::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 QPlatformTheme.

Reimplemented in QGtk3Theme.

Definition at line 1221 of file qgenericunixthemes.cpp.

References Q_UNUSED.

◆ font()

const QFont * QGnomeTheme::font ( Font type) const
overridevirtual

Reimplemented from QPlatformTheme.

Reimplemented in QGtk3Theme.

Definition at line 1231 of file qgenericunixthemes.cpp.

References d, QPlatformTheme::FixedFont, gtkFontName(), and QPlatformTheme::SystemFont.

+ Here is the call graph for this function:

◆ gtkFontName()

QString QGnomeTheme::gtkFontName ( ) const
virtual

Reimplemented in QGtk3Theme.

Definition at line 1246 of file qgenericunixthemes.cpp.

References defaultSystemFontNameC, defaultSystemFontSize, and QStringLiteral.

Referenced by font(), and QGtk3Theme::gtkFontName().

+ Here is the caller graph for this function:

◆ standardButtonText()

QString QGnomeTheme::standardButtonText ( int button) const
overridevirtual

Returns the text of a standard button.

Since
5.3
See also
QPlatformDialogHelper::StandardButton

Reimplemented from QPlatformTheme.

Definition at line 1275 of file qgenericunixthemes.cpp.

References button, QPlatformDialogHelper::Cancel, QPlatformDialogHelper::Close, QPlatformDialogHelper::Discard, QPlatformDialogHelper::Ok, QPlatformDialogHelper::Save, QPlatformTheme::standardButtonText(), and QCoreApplication::translate().

+ Here is the call graph for this function:

◆ themeHint()

Member Data Documentation

◆ name

const char * QGnomeTheme::name = "gnome"
static

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