1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-23 02:32:10 +02:00
falkonOfficial/src/tools/progressbar.h

30 lines
495 B
C
Raw Normal View History

#ifndef PROGRESSBAR_H
#define PROGRESSBAR_H
#include <QStylePainter>
#include <QStyleOptionProgressBarV2>
#include <QStyleOptionProgressBar>
class ProgressBar : public QWidget
{
Q_OBJECT
public:
explicit ProgressBar(QWidget* parent = 0);
signals:
public slots:
void setValue(int value);
protected:
void paintEvent(QPaintEvent* e);
void initStyleOption(QStyleOptionProgressBar* option);
private:
int m_value;
int m_lastPaintedValue;
};
#endif // PROGRESSBAR_H