23 #include <QProgressBar> 26 : QDialog( parent, fl ), mMessage( QString( message ) ), mMsgLabel( 0 )
28 setWindowTitle(
tr(
"QGIS" ) );
29 setLayout(
new QVBoxLayout() );
30 setWindowModality( Qt::WindowModal );
31 setMinimumWidth( 250 );
32 mMsgLabel =
new QLabel( mMessage );
33 layout()->addWidget( mMsgLabel );
35 QProgressBar* pb =
new QProgressBar();
37 layout()->addWidget( pb );
39 if ( mMessage.isEmpty() )
51 if ( !message.isEmpty() )
53 mMessage = QString( message );
54 mMsgLabel->setText( mMessage );
QgsBusyIndicatorDialog(const QString &message="", QWidget *parent=0, Qt::WindowFlags fl=QgisGui::ModalDialogFlags)
Constructor Modal busy indicator dialog with no buttons.
~QgsBusyIndicatorDialog()
void setMessage(const QString &message)