File indexing completed on 2024-05-12 16:02:30
0001 /* This file is part of the KDE project 0002 * SPDX-FileCopyrightText: 2009 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KOPROGRESSBAR_H 0008 #define KOPROGRESSBAR_H 0009 0010 #include <QProgressBar> 0011 #include <KoProgressProxy.h> 0012 #include "kritawidgetutils_export.h" 0013 0014 /** 0015 * KoProgressBar is a thin wrapper around QProgressBar that also implements 0016 * the abstract base class KoProgressProxy. Use this class, not QProgressBar 0017 * to pass to KoProgressUpdater. 0018 */ 0019 class KRITAWIDGETUTILS_EXPORT KoProgressBar : public QProgressBar, public KoProgressProxy 0020 { 0021 Q_OBJECT 0022 public: 0023 0024 explicit KoProgressBar(QWidget *parent = 0); 0025 0026 ~KoProgressBar() override; 0027 0028 int maximum() const override; 0029 void setValue(int value) override; 0030 void setRange(int minimum, int maximum) override; 0031 void setFormat(const QString &format) override; 0032 0033 Q_SIGNALS: 0034 0035 void done(); 0036 }; 0037 0038 #endif