mirror of
https://github.com/qgis/QGIS.git
synced 2025-12-09 00:04:30 -05:00
Use messagebar instead of messagebox for animation export reports
This commit is contained in:
parent
f2b6ca9c3f
commit
efecc6f46c
@ -24,6 +24,7 @@
|
|||||||
#include "qgstemporalutils.h"
|
#include "qgstemporalutils.h"
|
||||||
#include "qgstaskmanager.h"
|
#include "qgstaskmanager.h"
|
||||||
#include "qgsproxyprogresstask.h"
|
#include "qgsproxyprogresstask.h"
|
||||||
|
#include "qgsmessagebar.h"
|
||||||
|
|
||||||
#include <QProgressDialog>
|
#include <QProgressDialog>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
@ -96,7 +97,13 @@ void QgsTemporalControllerDockWidget::exportAnimation()
|
|||||||
progressDialog.hide();
|
progressDialog.hide();
|
||||||
if ( !success )
|
if ( !success )
|
||||||
{
|
{
|
||||||
QMessageBox::warning( this, tr( "Export Animation" ), error );
|
QgisApp::instance()->messageBar()->pushMessage( tr( "Export Animation" ), error, Qgis::Critical );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
QgisApp::instance()->messageBar()->pushMessage( tr( "Export Animation" ),
|
||||||
|
tr( "Successfully exported animation to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( outputDir ).toString(), QDir::toNativeSeparators( outputDir ) ),
|
||||||
|
Qgis::Success, 0 );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
dlg->setAttribute( Qt::WA_DeleteOnClose );
|
dlg->setAttribute( Qt::WA_DeleteOnClose );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user