Skip to content
Permalink
Browse files

Add links to open exported images in message bar

  • Loading branch information
nyalldawson committed Dec 15, 2017
1 parent 2631589 commit 3704c48bc006f6fd5ed621260091f67db775225d
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/app/layout/qgslayoutdesignerdialog.cpp
@@ -1529,7 +1529,9 @@ void QgsLayoutDesignerDialog::exportToRaster()
switch ( exporter.exportToImage( fileNExt.first, settings ) )
{
case QgsLayoutExporter::Success:
mMessageBar->pushInfo( tr( "Export layout" ), tr( "Successfully exported layout to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( fileNExt.first ).toString(), fileNExt.first ) );
mMessageBar->pushMessage( tr( "Export layout" ),
tr( "Successfully exported layout to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( fileNExt.first ).toString(), fileNExt.first ),
QgsMessageBar::INFO, 0 );
break;

case QgsLayoutExporter::PrintError:
@@ -1627,7 +1629,9 @@ void QgsLayoutDesignerDialog::exportToPdf()
{
case QgsLayoutExporter::Success:
{
mMessageBar->pushInfo( tr( "Export layout" ), tr( "Successfully exported layout to %1" ).arg( outputFileName ) );
mMessageBar->pushMessage( tr( "Export layout" ),
tr( "Successfully exported layout to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( outputFileName ).toString(), outputFileName ),
QgsMessageBar::INFO, 0 );
break;
}

0 comments on commit 3704c48

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