qt-rtp-platformtheme/rtptheme.h

54 lines
1.5 KiB
C++

#ifndef RTPTHEME_H
#define RTPTHEME_H
#include <qpa/qplatformtheme.h>
QT_BEGIN_NAMESPACE
class RTPThemePrivate;
class RTPTheme : public QPlatformTheme
{
Q_DECLARE_PRIVATE(RTPTheme)
public:
RTPTheme();
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;
#ifndef QT_NO_SYSTEMTRAYICON
QPlatformSystemTrayIcon *createPlatformSystemTrayIcon() const override;
#endif
const QPalette *palette(Palette type = SystemPalette) const override;
const QFont *font(Font type = SystemFont) const override;
QVariant themeHint(ThemeHint hint) const override;
QPixmap standardPixmap(StandardPixmap sp, const QSizeF &size) const override;
QIcon fileIcon(const QFileInfo &fileInfo,
QPlatformTheme::IconOptions iconOptions = {}) const override;
QIconEngine *createIconEngine(const QString &iconName) const override;
#if QT_CONFIG(shortcut)
QList<QKeySequence> keyBindings(QKeySequence::StandardKey key) const override;
#endif
QString standardButtonText(int button) const override;
private:
QScopedPointer<RTPThemePrivate> d_ptr;
Q_DISABLE_COPY_MOVE(RTPTheme)
};
QT_END_NAMESPACE
#endif // QXDGDESKTOPPORTALTHEME_H