File indexing completed on 2024-05-05 05:53:00

0001 //  SPDX-FileCopyrightText: 2004-2005 Stephan Binner <binner@kde.org>
0002 //  SPDX-License-Identifier: GPL-2.0-or-later
0003 
0004 #ifndef PROGRESSDIALOG_H
0005 #define PROGRESSDIALOG_H
0006 
0007 #include <QProgressDialog>
0008 
0009 class ProgressDialog : public QProgressDialog
0010 {
0011     Q_OBJECT
0012 
0013 public:
0014     explicit ProgressDialog(QWidget *parent = Q_NULLPTR, const QString &caption = QString(), const QString &text = QString(), int totalSteps = 100);
0015 
0016     void showCancelButton(bool show);
0017     bool wasCancelled() const
0018     {
0019         return wasCanceled();
0020     }
0021 };
0022 
0023 #endif // PROGRESSDIALOG_H