partitionmanager/src/gui/scanprogressdialog.h

33 lines
676 B
C
Raw Normal View History

2020-09-16 00:35:12 +01:00
/*
SPDX-FileCopyrightText: 2010 Volker Lanz <vl@fidra.de>
SPDX-FileCopyrightText: 2014-2018 Andrius Štikonas <andrius@stikonas.eu>
SPDX-FileCopyrightText: 2019 Yuri Chornoivan <yurchor@ukr.net>
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef SCANPROGRESSDIALOG_H
#define SCANPROGRESSDIALOG_H
2014-05-17 03:06:58 +01:00
#include <QProgressDialog>
2014-05-17 03:06:58 +01:00
class ScanProgressDialog : public QProgressDialog
{
public:
2019-12-09 16:33:04 +00:00
explicit ScanProgressDialog(QWidget* parent);
2017-09-11 18:46:48 +01:00
void setProgress(int p) {
setValue(p);
}
void setDeviceName(const QString& device);
protected:
void closeEvent(QCloseEvent* e) override;
void showEvent(QShowEvent* e) override;
};
#endif