-
Notifications
You must be signed in to change notification settings - Fork 0
/
proxytheme.h
50 lines (36 loc) · 1.66 KB
/
proxytheme.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#ifndef PROXYTHEME_H
#define PROXYTHEME_H
#include <memory>
#include <qpa/qplatformtheme.h>
class ProxyTheme : public QPlatformTheme
{
public:
explicit ProxyTheme(std::unique_ptr<QPlatformTheme> baseTheme);
~ProxyTheme() override;
ProxyTheme(const ProxyTheme &) = delete;
ProxyTheme &operator=(const ProxyTheme &) = delete;
QPlatformMenuItem *createPlatformMenuItem() const override;
QPlatformMenu *createPlatformMenu() const override;
QPlatformMenuBar *createPlatformMenuBar() const override;
void showPlatformMenuBar() override;
bool usePlatformNativeDialog(DialogType type) const override;
QPlatformDialogHelper *createPlatformDialogHelper(DialogType type) const override;
QPlatformSystemTrayIcon *createPlatformSystemTrayIcon() const override;
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
virtual Qt::ColorScheme colorScheme() const override;
#elif QT_VERSION >= QT_VERSION_CHECK(6, 2, 1)
Appearance appearance() const override;
#endif
const QPalette *palette(Palette type) const override;
const QFont *font(Font type) const override;
QVariant themeHint(ThemeHint hint) const override;
QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override;
QIcon fileIcon(const QFileInfo &fileInfo, IconOptions iconOptions) const override;
QIconEngine *createIconEngine(const QString &iconName) const override;
QList<QKeySequence> keyBindings(QKeySequence::StandardKey key) const override;
QString standardButtonText(int button) const override;
QKeySequence standardButtonShortcut(int button) const override;
private:
std::unique_ptr<QPlatformTheme> baseTheme_;
};
#endif // PROXYTHEME_H