5#ifndef QPLATFORMTHEME_COCOA_H
6#define QPLATFORMTHEME_COCOA_H
9#include <qpa/qplatformtheme.h>
11#include <QtCore/private/qcore_mac_p.h>
28#ifndef QT_NO_SYSTEMTRAYICON
38 QIcon fileIcon(
const QFileInfo &fileInfo, QPlatformTheme::IconOptions options = {})
const override;
57 mutable QPalette *m_systemPalette;
58 QMacNotificationObserver m_systemColorObserver;
59 mutable QHash<QPlatformTheme::Palette, QPalette*> m_palettes;
60 QMacKeyValueObserver m_appearanceObserver;
63 void updateColorScheme();
QIcon fileIcon(const QFileInfo &fileInfo, QPlatformTheme::IconOptions options={}) const override
Return an icon for fileInfo, observing iconOptions.
Qt::ColorScheme colorScheme() const override
QString standardButtonText(int button) const override
Returns the text of a standard button.
QPlatformDialogHelper * createPlatformDialogHelper(DialogType dialogType) const override
QPlatformMenu * createPlatformMenu() const override
Qt::ContrastPreference contrastPreference() const override
void handleSystemThemeChange()
QIconEngine * createIconEngine(const QString &iconName) const override
Factory function for the QIconEngine used by QIcon::fromTheme().
QPlatformMenuBar * createPlatformMenuBar() const override
QList< QKeySequence > keyBindings(QKeySequence::StandardKey key) const override
const QPalette * palette(Palette type=SystemPalette) const override
Return a color palette for type type.
bool usePlatformNativeDialog(DialogType dialogType) const override
QKeySequence standardButtonShortcut(int button) const override
QPlatformSystemTrayIcon * createPlatformSystemTrayIcon() const override
Factory function for QSystemTrayIcon.
QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override
Return a pixmap for standardPixmap, at the given size.
void requestColorScheme(Qt::ColorScheme scheme) override
QVariant themeHint(ThemeHint hint) const override
const QFont * font(Font type=SystemFont) const override
QPlatformMenuItem * createPlatformMenuItem() const override
friend class QFontEngineFT
static QCocoaIntegration::Options parseOptions(const QStringList ¶mList)
static void initResources()
static void logVersionInformation()
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")