Skip to content
Permalink
Browse files
Rename QgsComposer::progressDialog
- It's a busy indicator that doesn't track operation progress
  • Loading branch information
dakcarto committed Feb 27, 2013
1 parent aa22c0e commit 84db88baf0183f8966ceeb688ab6fbe070a53258
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
@@ -492,7 +492,7 @@ void QgsComposer::setTitle( const QString& title )
}
}

QDialog* QgsComposer::progressDialog( const QString& message, QWidget* parent )
QDialog* QgsComposer::busyIndicatorDialog( const QString& message, QWidget* parent )
{
QDialog* dlg = new QDialog( parent );
dlg->setLayout( new QVBoxLayout() );
@@ -1375,7 +1375,7 @@ void QgsComposer::on_mActionDuplicateComposer_triggered()
}

// provide feedback, since loading of template into duplicate composer will be hidden
QDialog* dlg = progressDialog( tr( "Duplicating composer..." ), this );
QDialog* dlg = busyIndicatorDialog( tr( "Duplicating composer..." ), this );
dlg->show();

QgsComposer* newComposer = mQgis->duplicateComposer( this, newTitle );
@@ -87,7 +87,7 @@ class QgsComposer: public QMainWindow, private Ui::QgsComposerBase
//! Modal busy indicator dialog with no buttons that deletes on close
//! @param message text to show above busy progress indicator
//! @note added in 1.9
QDialog* progressDialog( const QString& message = QString( "" ), QWidget* parent = 0 );
QDialog* busyIndicatorDialog( const QString& message = QString( "" ), QWidget* parent = 0 );

protected:
//! Move event
@@ -253,7 +253,7 @@ void QgsComposerManager::duplicate_clicked()
}

// provide feedback, since loading of template into duplicate composer will be hidden
QDialog* dlg = currentComposer->progressDialog( tr( "Duplicating composer..." ), this );
QDialog* dlg = currentComposer->busyIndicatorDialog( tr( "Duplicating composer..." ), this );
dlg->show();

QgsComposer* newComposer = QgisApp::instance()->duplicateComposer( currentComposer, newTitle );

0 comments on commit 84db88b

Please sign in to comment.