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
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
4#ifndef QGTK3THEME_H
5#define QGTK3THEME_H
6
7#include <private/qtguiglobal_p.h>
8#include <private/qgenericunixthemes_p.h>
9#include "qgtk3storage_p.h"
10
12
13class QGtk3Theme : public QGnomeTheme
14{
15public:
16 QGtk3Theme();
17
18 virtual QVariant themeHint(ThemeHint hint) const override;
19 virtual QString gtkFontName() const override;
20
21 Qt::ColorScheme colorScheme() const override;
22
23 bool usePlatformNativeDialog(DialogType type) const override;
25
26 QPlatformMenu* createPlatformMenu() const override;
28
29 const QPalette *palette(Palette type = SystemPalette) const override;
30 const QFont *font(Font type = SystemFont) const override;
31 QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override;
32 QIcon fileIcon(const QFileInfo &fileInfo,
33 QPlatformTheme::IconOptions iconOptions = { }) const override;
34
35 static const char *name;
36private:
37 static bool useNativeFileDialog();
38 std::unique_ptr<QGtk3Storage> m_storage;
39};
40
42
43#endif // QGTK3THEME_H
\reentrant
Definition qfont.h:22
QGnomeTheme is a theme implementation for the Gnome desktop.
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
QPlatformDialogHelper * createPlatformDialogHelper(DialogType type) const override
static const char * name
Definition qgtk3theme.h:35
QPlatformMenuItem * createPlatformMenuItem() const override
QPlatformMenu * createPlatformMenu() const override
virtual QString gtkFontName() const override
QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override
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.
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
Combined button and popup list for selecting options.
ColorScheme
Definition qnamespace.h:50
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum type
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define sp