Add convenience overload for ScanningDialog::run
This commit is contained in:
parent
2b862bf431
commit
427b930531
@ -20,6 +20,8 @@
|
|||||||
|
|
||||||
#include "widgets/QtWaitingSpinner.h"
|
#include "widgets/QtWaitingSpinner.h"
|
||||||
|
|
||||||
|
#include "Branding.h"
|
||||||
|
|
||||||
#include <QBoxLayout>
|
#include <QBoxLayout>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
#include <QFutureWatcher>
|
#include <QFutureWatcher>
|
||||||
@ -71,6 +73,18 @@ ScanningDialog::run( const QFuture< void >& future,
|
|||||||
watcher->setFuture( future );
|
watcher->setFuture( future );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
ScanningDialog::run( const QFuture< void >& future, QWidget* parent )
|
||||||
|
{
|
||||||
|
ScanningDialog::run( future,
|
||||||
|
tr( "Scanning storage devices..." ),
|
||||||
|
tr( "%1 Partitioning" )
|
||||||
|
.arg( Calamares::Branding::instance()->
|
||||||
|
string( Calamares::Branding::ShortProductName ) ),
|
||||||
|
parent );
|
||||||
|
}
|
||||||
|
|
||||||
void ScanningDialog::setVisible(bool visible)
|
void ScanningDialog::setVisible(bool visible)
|
||||||
{
|
{
|
||||||
QDialog::setVisible( visible );
|
QDialog::setVisible( visible );
|
||||||
|
@ -35,6 +35,9 @@ public:
|
|||||||
const QString& windowTitle,
|
const QString& windowTitle,
|
||||||
QWidget* parent = nullptr );
|
QWidget* parent = nullptr );
|
||||||
|
|
||||||
|
static void run( const QFuture< void >& future,
|
||||||
|
QWidget* parent = nullptr );
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void setVisible( bool visible ) override;
|
void setVisible( bool visible ) override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user