2023-02-11 20:49:42 +00:00
|
|
|
// This file Copyright © 2017-2023 Mnemosyne LLC.
|
2022-08-08 18:05:39 +00:00
|
|
|
// It may be used under GPLv2 (SPDX: GPL-2.0-only), GPLv3 (SPDX: GPL-3.0-only),
|
2022-01-20 18:27:56 +00:00
|
|
|
// or any future license endorsed by Mnemosyne LLC.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2017-02-07 22:06:28 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QIcon>
|
|
|
|
#include <QStyle>
|
|
|
|
|
2022-12-28 14:46:23 +00:00
|
|
|
class QPainter;
|
|
|
|
class QStyleOptionProgressBar;
|
|
|
|
|
2017-02-07 22:06:28 +00:00
|
|
|
class StyleHelper
|
|
|
|
{
|
2017-04-19 12:04:45 +00:00
|
|
|
public:
|
2022-11-19 15:46:03 +00:00
|
|
|
static QIcon::Mode getIconMode(QStyle::State const& state);
|
2022-12-28 14:46:23 +00:00
|
|
|
|
|
|
|
static void drawProgressBar(QStyle const& style, QPainter& painter, QStyleOptionProgressBar const& option);
|
2017-02-07 22:06:28 +00:00
|
|
|
};
|