![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qcocoatheme.h>
Public Member Functions | |
| QCocoaTheme () | |
| ~QCocoaTheme () | |
| void | reset () |
| QPlatformMenuItem * | createPlatformMenuItem () const override |
| QPlatformMenu * | createPlatformMenu () const override |
| QPlatformMenuBar * | createPlatformMenuBar () const override |
| QPlatformSystemTrayIcon * | createPlatformSystemTrayIcon () const override |
| Factory function for QSystemTrayIcon. | |
| bool | usePlatformNativeDialog (DialogType dialogType) const override |
| QPlatformDialogHelper * | createPlatformDialogHelper (DialogType dialogType) const override |
| const QPalette * | palette (Palette type=SystemPalette) const override |
| Return a color palette for type type. | |
| const QFont * | font (Font type=SystemFont) const override |
| QPixmap | standardPixmap (StandardPixmap sp, const QSizeF &size) const override |
| Return a pixmap for standardPixmap, at the given size. | |
| QIcon | fileIcon (const QFileInfo &fileInfo, QPlatformTheme::IconOptions options={}) const override |
| Return an icon for fileInfo, observing iconOptions. | |
| QIconEngine * | createIconEngine (const QString &iconName) const override |
| Factory function for the QIconEngine used by QIcon::fromTheme(). | |
| QVariant | themeHint (ThemeHint hint) const override |
| Qt::ColorScheme | colorScheme () const override |
| Qt::ContrastPreference | contrastPreference () const override |
| Qt::MotionPreference | motionPreference () const override |
| QString | standardButtonText (int button) const override |
| Returns the text of a standard button. | |
| QKeySequence | standardButtonShortcut (int button) const override |
| void | requestColorScheme (Qt::ColorScheme scheme) override |
| void | handleSystemThemeChange () |
| QList< QKeySequence > | keyBindings (QKeySequence::StandardKey key) const override |
| Public Member Functions inherited from QPlatformTheme | |
| QPlatformTheme () | |
| virtual | ~QPlatformTheme () |
| virtual void | showPlatformMenuBar () |
| QString | name () const |
Static Public Attributes | |
| static const char * | name = "cocoa" |
Definition at line 16 of file qcocoatheme.h.
| QCocoaTheme::QCocoaTheme | ( | ) |
Definition at line 218 of file qcocoatheme.mm.
| QCocoaTheme::~QCocoaTheme | ( | ) |
Definition at line 233 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 483 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 525 of file qcocoatheme.mm.
|
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.
Reimplemented from QPlatformTheme.
Definition at line 432 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 275 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 557 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 564 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 550 of file qcocoatheme.mm.
|
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 292 of file qcocoatheme.mm.
|
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.
Reimplemented from QPlatformTheme.
Definition at line 426 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 324 of file qcocoatheme.mm.
| void QCocoaTheme::handleSystemThemeChange | ( | ) |
Definition at line 246 of file qcocoatheme.mm.
|
override |
Definition at line 581 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 531 of file qcocoatheme.mm.
|
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 298 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 488 of file qcocoatheme.mm.
| void QCocoaTheme::reset | ( | ) |
Definition at line 238 of file qcocoatheme.mm.
|
override |
Definition at line 544 of file qcocoatheme.mm.
|
overridevirtual |
Returns the text of a standard button.
Reimplemented from QPlatformTheme.
Definition at line 537 of file qcocoatheme.mm.
|
overridevirtual |
Return a pixmap for standardPixmap, at the given size.
The implementation should not take system DPR into account, and always return a pixmap with a DPR of 1. It's up to the consumer to account for DPR and request a pixmap of the right size.
Reimplemented from QPlatformTheme.
Definition at line 350 of file qcocoatheme.mm.
Reimplemented from QPlatformTheme.
Definition at line 437 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 262 of file qcocoatheme.mm.
|
static |
Definition at line 48 of file qcocoatheme.h.
Referenced by QCocoaIntegration::createPlatformTheme(), testing.tools.encode_pdf_filter._PdfStream::RegisterByName(), and QCocoaIntegration::themeNames().