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

#include <qiostheme.h>

+ Inheritance diagram for QIOSTheme:
+ Collaboration diagram for QIOSTheme:

Public Member Functions

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

Static Public Member Functions

static void initializeSystemPalette ()
 
- Static Public Member Functions inherited from QPlatformTheme
static QVariant defaultThemeHint (ThemeHint hint)
 
static QString defaultStandardButtonText (int button)
 
static QString removeMnemonics (const QString &original)
 

Static Public Attributes

static const char * name = "ios"
 

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 }
 
- Protected Member Functions inherited from QPlatformTheme
 QPlatformTheme (QPlatformThemePrivate *priv)
 
- Protected Attributes inherited from QPlatformTheme
QScopedPointer< QPlatformThemePrivated_ptr
 

Detailed Description

Definition at line 15 of file qiostheme.h.

Constructor & Destructor Documentation

◆ QIOSTheme()

QIOSTheme::QIOSTheme ( )

Definition at line 38 of file qiostheme.mm.

References initializeSystemPalette(), qCDebug, and QPlatformFontDatabase::repopulateFontDatabase().

+ Here is the call graph for this function:

◆ ~QIOSTheme()

QIOSTheme::~QIOSTheme ( )

Definition at line 49 of file qiostheme.mm.

Member Function Documentation

◆ colorScheme()

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

Reimplemented from QPlatformTheme.

Definition at line 148 of file qiostheme.mm.

References Qt::Dark, Qt::Light, qt_apple_sharedApplication(), and window().

+ Here is the call graph for this function:

◆ createIconEngine()

QIconEngine * QIOSTheme::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 181 of file qiostheme.mm.

◆ createPlatformDialogHelper()

QPlatformDialogHelper * QIOSTheme::createPlatformDialogHelper ( QPlatformTheme::DialogType type) const
overridevirtual

◆ createPlatformMenu()

QPlatformMenu * QIOSTheme::createPlatformMenu ( ) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 95 of file qiostheme.mm.

◆ createPlatformMenuItem()

QPlatformMenuItem * QIOSTheme::createPlatformMenuItem ( ) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 90 of file qiostheme.mm.

◆ font()

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

Reimplemented from QPlatformTheme.

Definition at line 174 of file qiostheme.mm.

References QGuiApplicationPrivate::platformIntegration(), and QCoreTextFontDatabase::themeFont().

+ Here is the call graph for this function:

◆ initializeSystemPalette()

void QIOSTheme::initializeSystemPalette ( )
static

Definition at line 55 of file qiostheme.mm.

References QPalette::Accent, QPalette::Active, QPalette::Base, QPalette::BrightText, QPalette::Button, QPalette::ButtonText, QPalette::Highlight, QPalette::HighlightedText, QPalette::Link, QPalette::LinkVisited, QPalette::PlaceholderText, Q_DECL_IMPORT, qt_fusionPalette(), qt_mac_toQBrush(), QPalette::Text, QPalette::Window, and QPalette::WindowText.

Referenced by QIOSTheme().

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

◆ palette()

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

Reimplemented from QPlatformTheme.

Definition at line 82 of file qiostheme.mm.

References QPlatformTheme::SystemPalette.

◆ themeHint()

QVariant QIOSTheme::themeHint ( ThemeHint hint) const
overridevirtual

Reimplemented from QPlatformTheme.

Definition at line 136 of file qiostheme.mm.

References hint(), QPlatformTheme::KeyboardScheme, QPlatformTheme::MacKeyboardScheme, QStringLiteral, QPlatformTheme::StyleNames, and QPlatformTheme::themeHint().

+ Here is the call graph for this function:

◆ usePlatformNativeDialog()

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

Reimplemented from QPlatformTheme.

Definition at line 101 of file qiostheme.mm.

References QPlatformTheme::ColorDialog, QPlatformTheme::FileDialog, QPlatformTheme::FontDialog, QPlatformTheme::MessageDialog, and qt_apple_isApplicationExtension().

+ Here is the call graph for this function:

Member Data Documentation

◆ name

QT_BEGIN_NAMESPACE const char * QIOSTheme::name = "ios"
static

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