Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
4#ifndef QXDGDESKTOPPORTALTHEME_H
5#define QXDGDESKTOPPORTALTHEME_H
6
7#include <qpa/qplatformtheme.h>
8
10
12
14{
15 Q_DECLARE_PRIVATE(QXdgDesktopPortalTheme)
16public:
18
20 QPlatformMenu *createPlatformMenu() const override;
22 void showPlatformMenuBar() override;
23
24 bool usePlatformNativeDialog(DialogType type) const override;
26
27#ifndef QT_NO_SYSTEMTRAYICON
29#endif
30
31 const QPalette *palette(Palette type = SystemPalette) const override;
32
33 const QFont *font(Font type = SystemFont) const override;
34
35 QVariant themeHint(ThemeHint hint) const override;
36
37 Qt::ColorScheme colorScheme() const override;
38
39 QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override;
40 QIcon fileIcon(const QFileInfo &fileInfo,
41 QPlatformTheme::IconOptions iconOptions = { }) const override;
42
43 QIconEngine *createIconEngine(const QString &iconName) const override;
44
45#if QT_CONFIG(shortcut)
46 QList<QKeySequence> keyBindings(QKeySequence::StandardKey key) const override;
47#endif
48
49 QString standardButtonText(int button) const override;
50
51private:
52 QScopedPointer<QXdgDesktopPortalThemePrivate> d_ptr;
53 Q_DISABLE_COPY_MOVE(QXdgDesktopPortalTheme)
54};
55
57
58#endif // QXDGDESKTOPPORTALTHEME_H
\reentrant
Definition qfont.h:22
The QIconEngine class provides an abstract base class for QIcon renderers.
Definition qiconengine.h:15
The QIcon class provides scalable icons in different modes and states.
Definition qicon.h:20
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
The QPlatformDialogHelper class allows for platform-specific customization of dialogs.
The QPlatformTheme class allows customizing the UI based on themes.
ThemeHint
This enum describes the available theme hints.
\inmodule QtCore
Definition qsize.h:208
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtCore
Definition qvariant.h:65
Qt::ColorScheme colorScheme() const override
QPlatformMenuItem * createPlatformMenuItem() const override
QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override
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
QPlatformMenuBar * createPlatformMenuBar() const override
QPlatformMenu * createPlatformMenu() const override
QVariant themeHint(ThemeHint hint) const override
QPushButton * button
[2]
Combined button and popup list for selecting options.
ColorScheme
Definition qnamespace.h:50
GLuint64 key
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum type
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define sp