![]() |
Qt 6.x
The Qt SDK
|
#include <qcocoatheme.h>
Static Public Attributes | |
static const char * | name = "cocoa" |
Definition at line 15 of file qcocoatheme.h.
QCocoaTheme::QCocoaTheme | ( | ) |
Definition at line 213 of file qcocoatheme.mm.
References QOperatingSystemVersion::current(), handleSystemThemeChange(), and QOperatingSystemVersion::MacOSMojave.
QCocoaTheme::~QCocoaTheme | ( | ) |
Definition at line 229 of file qcocoatheme.mm.
References reset().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 476 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 269 of file qcocoatheme.mm.
References QPlatformTheme::ColorDialog, QPlatformTheme::FileDialog, QPlatformTheme::FontDialog, and QPlatformTheme::MessageDialog.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 499 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 504 of file qcocoatheme.mm.
References QObject::connect(), QGuiApplicationPrivate::platformIntegration(), qGuiApp, SIGNAL, and SLOT.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 494 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 286 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 433 of file qcocoatheme.mm.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 306 of file qcocoatheme.mm.
References QGuiApplicationPrivate::platformIntegration(), and QCoreTextFontDatabase::themeFont().
void QCocoaTheme::handleSystemThemeChange | ( | ) |
Definition at line 242 of file qcocoatheme.mm.
References QFontCache::clear(), QCoreTextFontEngine::fontSmoothing(), QCoreTextFontEngine::Grayscale, QFontCache::instance(), qt_mac_createRolePalettes(), qt_mac_createSystemPalette(), and reset().
Referenced by QCocoaTheme().
|
override |
Definition at line 518 of file qcocoatheme.mm.
References Qt::AA_MacDontSwapCtrlAndMeta, QList< T >::append(), Qt::ControlModifier, Qt::MetaModifier, Q_ASSERT, and qApp.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 292 of file qcocoatheme.mm.
References QHash< Key, T >::isEmpty(), qt_mac_createRolePalettes(), qt_mac_createSystemPalette(), QPlatformTheme::SystemPalette, and QHash< Key, T >::value().
void QCocoaTheme::reset | ( | ) |
Definition at line 234 of file qcocoatheme.mm.
References QHash< Key, T >::clear(), and qDeleteAll().
Referenced by ~QCocoaTheme(), and handleSystemThemeChange().
|
override |
Definition at line 488 of file qcocoatheme.mm.
References button, Qt::CTRL, QPlatformDialogHelper::Discard, and Qt::Key_Delete.
|
overridevirtual |
Returns the text of a standard button.
Reimplemented from QPlatformTheme.
Definition at line 481 of file qcocoatheme.mm.
References button, QPlatformDialogHelper::Discard, QPlatformTheme::standardButtonText(), and QCoreApplication::translate().
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 332 of file qcocoatheme.mm.
References QPlatformTheme::ComputerIcon, QPlatformTheme::DesktopIcon, QPlatformTheme::DirClosedIcon, QPlatformTheme::DirLinkIcon, QPlatformTheme::DirOpenIcon, QPlatformTheme::DriveCDIcon, QPlatformTheme::DriveDVDIcon, QPlatformTheme::DriveFDIcon, QPlatformTheme::DriveHDIcon, QPlatformTheme::DriveNetIcon, QPlatformTheme::FileIcon, QPlatformTheme::FileLinkIcon, icon, QPlatformTheme::MessageBoxCritical, QPlatformTheme::MessageBoxInformation, QPlatformTheme::MessageBoxQuestion, QPlatformTheme::MessageBoxWarning, pixmap, QT_IGNORE_DEPRECATIONS, qt_mac_convert_iconref(), sp, QPlatformTheme::standardPixmap(), and QPlatformTheme::TrashIcon.
Reimplemented from QPlatformTheme.
Definition at line 438 of file qcocoatheme.mm.
References QCocoaFileIconEngine::availableIconSizes(), QPlatformTheme::DialogButtonBoxLayout, QTextCharFormat::DotLine, QVariant::fromValue(), hint(), QPlatformTheme::HoverEffect, QPlatformTheme::IconPixmapSizes, QPlatformTheme::InteractiveResizeAcrossScreens, QPlatformTheme::KeyboardAutoRepeatRate, QPlatformTheme::KeyboardInputInterval, QPlatformTheme::KeyboardScheme, QPlatformTheme::MacKeyboardScheme, QPlatformDialogHelper::MacLayout, QPlatformTheme::MouseDoubleClickInterval, QPlatformTheme::PasswordMaskCharacter, QStringLiteral, QPlatformTheme::ShowDirectoriesFirst, QPlatformTheme::SpellCheckUnderlineStyle, QPlatformTheme::StyleNames, Qt::TabFocusAllControls, QPlatformTheme::TabFocusBehavior, Qt::TabFocusListControls, Qt::TabFocusTextControls, QPlatformTheme::themeHint(), QPlatformTheme::UiEffects, and QPlatformTheme::UseFullScreenForPopupMenu.
|
overridevirtual |
Reimplemented from QPlatformTheme.
Definition at line 256 of file qcocoatheme.mm.
References QPlatformTheme::ColorDialog, QPlatformTheme::FileDialog, QPlatformTheme::FontDialog, and QPlatformTheme::MessageDialog.
|
static |
Definition at line 44 of file qcocoatheme.h.
Referenced by QCocoaIntegration::createPlatformTheme(), and QCocoaIntegration::themeNames().