Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QOhosPlatformTheme Class Reference

#include <qohosplatformtheme.h>

Inheritance diagram for QOhosPlatformTheme:
Collaboration diagram for QOhosPlatformTheme:

Public Member Functions

 QOhosPlatformTheme ()
void requestColorScheme (Qt::ColorScheme scheme) override
Qt::ColorScheme colorScheme () const override
QPlatformDialogHelpercreatePlatformDialogHelper (DialogType type) const override
bool usePlatformNativeDialog (DialogType type) const override
QVariant themeHint (ThemeHint hint) const override
const QPalettepalette (Palette type) const override
 Return a color palette for type type.
const QFontfont (Font type) const override
void setWheelScrollLines (int wheelScrollLines)
QPlatformSystemTrayIconcreatePlatformSystemTrayIcon () const override
 Factory function for QSystemTrayIcon.
Public Member Functions inherited from QPlatformTheme
 QPlatformTheme ()
virtual ~QPlatformTheme ()
virtual QPlatformMenuItemcreatePlatformMenuItem () const
virtual QPlatformMenucreatePlatformMenu () const
virtual QPlatformMenuBarcreatePlatformMenuBar () const
virtual void showPlatformMenuBar ()
virtual QPixmap standardPixmap (StandardPixmap sp, const QSizeF &size) const
 Return a pixmap for standardPixmap, at the given size.
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.
virtual Qt::ContrastPreference contrastPreference () const
virtual Qt::MotionPreference motionPreference () const
QString name () const

Static Public Attributes

static constexpr int defaultWheelScrollLines = 3

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 , ShowIconsInMenus , PreferFileIconFromTheme , MenuSelectionWraps ,
  ScrollSingleStepDistance
}
 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 , TabScrollLeftButton ,
  TabScrollRightButton , TabScrollUpButton , TabScrollDownButton , 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 23 of file qohosplatformtheme.h.

Constructor & Destructor Documentation

◆ QOhosPlatformTheme()

QOhosPlatformTheme::QOhosPlatformTheme ( )

Definition at line 806 of file qohosplatformtheme.cpp.

References QOhosPlatformTheme().

Referenced by QOhosPlatformTheme(), and QOhosPlatformIntegration::createPlatformTheme().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ colorScheme()

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

Reimplemented from QPlatformTheme.

Definition at line 837 of file qohosplatformtheme.cpp.

◆ createPlatformDialogHelper()

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

Reimplemented from QPlatformTheme.

Definition at line 842 of file qohosplatformtheme.cpp.

◆ createPlatformSystemTrayIcon()

QPlatformSystemTrayIcon * QOhosPlatformTheme::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 905 of file qohosplatformtheme.cpp.

◆ font()

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

Reimplemented from QPlatformTheme.

Definition at line 892 of file qohosplatformtheme.cpp.

◆ palette()

const QPalette * QOhosPlatformTheme::palette ( Palette type) const
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 882 of file qohosplatformtheme.cpp.

◆ requestColorScheme()

void QOhosPlatformTheme::requestColorScheme ( Qt::ColorScheme scheme)
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 831 of file qohosplatformtheme.cpp.

References QOhosOptional< T >::andThen(), QtOhos::getQOhosQpaFunctions(), and QtOhos::QOhosQpaFunctions::setOhosConfigDarkModeFlag().

Here is the call graph for this function:

◆ setWheelScrollLines()

void QOhosPlatformTheme::setWheelScrollLines ( int wheelScrollLines)

Definition at line 900 of file qohosplatformtheme.cpp.

◆ themeHint()

QVariant QOhosPlatformTheme::themeHint ( ThemeHint hint) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 854 of file qohosplatformtheme.cpp.

References QT_BEGIN_NAMESPACE::mouseDoubleClickInterval.

◆ usePlatformNativeDialog()

bool QOhosPlatformTheme::usePlatformNativeDialog ( QPlatformTheme::DialogType type) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 848 of file qohosplatformtheme.cpp.

Member Data Documentation

◆ defaultWheelScrollLines

int QOhosPlatformTheme::defaultWheelScrollLines = 3
staticconstexpr

Definition at line 27 of file qohosplatformtheme.h.


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