Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qxdgdesktopportaltheme.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QXDGDESKTOPPORTALTHEME_H
6#define QXDGDESKTOPPORTALTHEME_H
7
8#include <qpa/qplatformtheme.h>
9
10QT_BEGIN_NAMESPACE
11
12class QXdgDesktopPortalThemePrivate;
13
15{
17public:
19
21 QPlatformMenu *createPlatformMenu() const override;
24
25 bool usePlatformNativeDialog(DialogType type) const override;
26 QPlatformDialogHelper *createPlatformDialogHelper(DialogType type) const override;
27
28#ifndef QT_NO_SYSTEMTRAYICON
30#endif
31
32 const QPalette *palette(Palette type = SystemPalette) const override;
33
34 const QFont *font(Font type = SystemFont) const override;
35
36 QVariant themeHint(ThemeHint hint) const override;
37
38 Qt::ColorScheme colorScheme() const override;
40
41 QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override;
42 QIcon fileIcon(const QFileInfo &fileInfo,
43 QPlatformTheme::IconOptions iconOptions = { }) const override;
44
45 QIconEngine *createIconEngine(const QString &iconName) const override;
46
47#if QT_CONFIG(shortcut)
49#endif
50
51 QString standardButtonText(int button) const override;
52
53 static bool isXdgPlugin(const QString &key);
54
55private:
56 QScopedPointer<QXdgDesktopPortalThemePrivate> d_ptr;
58};
59
60QT_END_NAMESPACE
61
62#endif // QXDGDESKTOPPORTALTHEME_H
Qt::ColorScheme colorScheme() const override
Qt::ContrastPreference contrastPreference() const override
QPlatformMenuItem * createPlatformMenuItem() 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 iconOptions={ }) const override
Return an icon for fileInfo, observing iconOptions.
QString standardButtonText(int button) const override
Returns the text of a standard button.
bool usePlatformNativeDialog(DialogType type) const override
QPlatformSystemTrayIcon * createPlatformSystemTrayIcon() const override
Factory function for QSystemTrayIcon.
QIconEngine * createIconEngine(const QString &iconName) const override
Factory function for the QIconEngine used by QIcon::fromTheme().
QPlatformDialogHelper * createPlatformDialogHelper(DialogType type) const override
const QPalette * palette(Palette type=SystemPalette) const override
Return a color palette for type type.
static bool isXdgPlugin(const QString &key)
const QFont * font(Font type=SystemFont) const override
QPlatformMenuBar * createPlatformMenuBar() const override
QPlatformMenu * createPlatformMenu() const override
QVariant themeHint(ThemeHint hint) const override