Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QXdgDesktopPortalTheme Class Reference

#include <qxdgdesktopportaltheme.h>

+ Inheritance diagram for QXdgDesktopPortalTheme:
+ Collaboration diagram for QXdgDesktopPortalTheme:

Public Member Functions

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

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 qxdgdesktopportaltheme.h.

Constructor & Destructor Documentation

◆ QXdgDesktopPortalTheme()

Member Function Documentation

◆ colorScheme()

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

Reimplemented from QPlatformTheme.

Definition at line 208 of file qxdgdesktopportaltheme.cpp.

References d, and Qt::Unknown.

◆ createIconEngine()

QIconEngine * QXdgDesktopPortalTheme::createIconEngine ( const QString iconName) const
overridevirtual

Factory function for the QIconEngine used by QIcon::fromTheme().

By default this function returns a QIconLoaderEngine, but subclasses can reimplement it to provide their own.

It is especially useful to benefit from some platform specific facilities or optimizations like an inter-process cache in systems mostly built with Qt.

Since
5.1

Reimplemented from QPlatformTheme.

Definition at line 229 of file qxdgdesktopportaltheme.cpp.

References d.

◆ createPlatformDialogHelper()

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

Reimplemented from QPlatformTheme.

Definition at line 165 of file qxdgdesktopportaltheme.cpp.

References d, and QPlatformTheme::FileDialog.

◆ createPlatformMenu()

QPlatformMenu * QXdgDesktopPortalTheme::createPlatformMenu ( ) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 137 of file qxdgdesktopportaltheme.cpp.

References d.

◆ createPlatformMenuBar()

QPlatformMenuBar * QXdgDesktopPortalTheme::createPlatformMenuBar ( ) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 143 of file qxdgdesktopportaltheme.cpp.

References d.

◆ createPlatformMenuItem()

QPlatformMenuItem * QXdgDesktopPortalTheme::createPlatformMenuItem ( ) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 131 of file qxdgdesktopportaltheme.cpp.

References d.

◆ createPlatformSystemTrayIcon()

QPlatformSystemTrayIcon * QXdgDesktopPortalTheme::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 183 of file qxdgdesktopportaltheme.cpp.

References d.

◆ fileIcon()

QIcon QXdgDesktopPortalTheme::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.

Definition at line 222 of file qxdgdesktopportaltheme.cpp.

References d.

◆ font()

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

Reimplemented from QPlatformTheme.

Definition at line 196 of file qxdgdesktopportaltheme.cpp.

References d.

◆ palette()

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

Reimplemented from QPlatformTheme.

Definition at line 190 of file qxdgdesktopportaltheme.cpp.

References d.

◆ showPlatformMenuBar()

void QXdgDesktopPortalTheme::showPlatformMenuBar ( )
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 149 of file qxdgdesktopportaltheme.cpp.

References d.

◆ standardButtonText()

QString QXdgDesktopPortalTheme::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 243 of file qxdgdesktopportaltheme.cpp.

References button, and d.

◆ standardPixmap()

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

Reimplemented from QPlatformTheme.

Definition at line 216 of file qxdgdesktopportaltheme.cpp.

References d, and sp.

◆ themeHint()

QVariant QXdgDesktopPortalTheme::themeHint ( ThemeHint  hint) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 202 of file qxdgdesktopportaltheme.cpp.

References d, and hint().

+ Here is the call graph for this function:

◆ usePlatformNativeDialog()

bool QXdgDesktopPortalTheme::usePlatformNativeDialog ( DialogType  type) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 155 of file qxdgdesktopportaltheme.cpp.

References d, and QPlatformTheme::FileDialog.


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