Skip to content
Permalink
Browse files

[processing] Make annoying modal progress dialog for algorithms match

size/position to the algorithm dialog itself

We can't get rid off this dialog, but let's at least position/size
it nicely...
  • Loading branch information
nyalldawson committed Oct 2, 2018
1 parent 68dee5b commit df40eabb341010aa252e8a2678d65783c29e2cb4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/processing/qgsprocessingalgorithmdialogbase.cpp
@@ -389,6 +389,7 @@ QDialog *QgsProcessingAlgorithmDialogBase::createProgressDialog()
QgsProcessingAlgorithmProgressDialog *dialog = new QgsProcessingAlgorithmProgressDialog( this );
dialog->setWindowModality( Qt::ApplicationModal );
dialog->setWindowTitle( windowTitle() );
dialog->setGeometry( geometry() ); // match size/position to this dialog
connect( progressBar, &QProgressBar::valueChanged, dialog->progressBar(), &QProgressBar::setValue );
connect( dialog->cancelButton(), &QPushButton::clicked, buttonCancel, &QPushButton::click );
dialog->logTextEdit()->setHtml( txtLog->toHtml() );
@@ -580,7 +581,6 @@ QgsProcessingAlgorithmProgressDialog::QgsProcessingAlgorithmProgressDialog( QWid
: QDialog( parent )
{
setupUi( this );
QgsGui::enableAutoGeometryRestore( this );
}

QProgressBar *QgsProcessingAlgorithmProgressDialog::progressBar()

0 comments on commit df40eab

Please sign in to comment.
You can’t perform that action at this time.