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
qgtk3theme.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QGTK3THEME_H
6#define QGTK3THEME_H
7
8#include <private/qtguiglobal_p.h>
9#include <private/qgnometheme_p.h>
10#include "qgtk3storage_p.h"
11
13
14class QGtk3Theme : public QGnomeTheme
15{
16public:
17 QGtk3Theme();
18
19 virtual QVariant themeHint(ThemeHint hint) const override;
20 virtual QString gtkFontName() const override;
21
22 Qt::ColorScheme colorScheme() const override;
23 void requestColorScheme(Qt::ColorScheme scheme) override;
24
25 bool usePlatformNativeDialog(DialogType type) const override;
26 QPlatformDialogHelper *createPlatformDialogHelper(DialogType type) const override;
27
28 const QPalette *palette(Palette type = SystemPalette) const override;
29 const QFont *font(Font type = SystemFont) const override;
30 QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override;
31 QIcon fileIcon(const QFileInfo &fileInfo,
32 QPlatformTheme::IconOptions iconOptions = { }) const override;
33
34 static const char *name;
35
36private:
37#if QT_CONFIG(dbus)
39#endif // QT_CONFIG(dbus)
40 static bool useNativeFileDialog();
41 std::unique_ptr<QGtk3Storage> m_storage;
42};
43
44QT_END_NAMESPACE
45
46#endif // QGTK3THEME_H
QIcon fileIcon(const QFileInfo &fileInfo, QPlatformTheme::IconOptions iconOptions={ }) const override
Return an icon for fileInfo, observing iconOptions.
Qt::ColorScheme colorScheme() const override
bool usePlatformNativeDialog(DialogType type) const override
virtual QVariant themeHint(ThemeHint hint) const override
void requestColorScheme(Qt::ColorScheme scheme) override
QPlatformDialogHelper * createPlatformDialogHelper(DialogType type) const override
static const char * name
Definition qgtk3theme.h:34
const QPalette * palette(Palette type=SystemPalette) const override
Return a color palette for type type.
virtual QString gtkFontName() const override
QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override
Return a pixmap for standardPixmap, at the given size.
const QFont * font(Font type=SystemFont) const override