Krita Source Code Documentation
Loading...
Searching...
No Matches
KoProgressBar.h
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2009 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef KOPROGRESSBAR_H
8#define KOPROGRESSBAR_H
9
10#include <QProgressBar>
11#include <KoProgressProxy.h>
12#include "kritawidgetutils_export.h"
13
19class KRITAWIDGETUTILS_EXPORT KoProgressBar : public QProgressBar, public KoProgressProxy
20{
21 Q_OBJECT
22public:
23
24 explicit KoProgressBar(QWidget *parent = 0);
25
26 ~KoProgressBar() override;
27
28 int maximum() const override;
29 void setValue(int value) override;
30 void setRange(int minimum, int maximum) override;
31 void setFormat(const QString &format) override;
32
33Q_SIGNALS:
34
35 void done();
36};
37
38#endif
float value(const T *src, size_t ch)
virtual void setValue(int value)=0
virtual void setFormat(const QString &format)=0
virtual void setRange(int minimum, int maximum)=0
virtual int maximum() const =0