mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-02 20:05:37 -04:00
Add callback support to ScanningDialog statics.
This commit is contained in:
parent
50ef1f1b70
commit
5df78cc513
2 changed files with 11 additions and 2 deletions
|
@ -22,6 +22,8 @@
|
|||
#include <QDialog>
|
||||
#include <QFuture>
|
||||
|
||||
#include <functional>
|
||||
|
||||
class ScanningDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
@ -33,9 +35,11 @@ public:
|
|||
static void run( const QFuture< void >& future,
|
||||
const QString& text,
|
||||
const QString& windowTitle,
|
||||
const std::function< void() >& callback = []{},
|
||||
QWidget* parent = nullptr );
|
||||
|
||||
static void run( const QFuture< void >& future,
|
||||
const std::function< void() >& callback = []{},
|
||||
QWidget* parent = nullptr );
|
||||
|
||||
public slots:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue