Skip to content
Permalink
Browse files

Use wait cursor when loading forms

  • Loading branch information
m-kuhn committed Sep 12, 2014
1 parent b1a2bef commit 3903f3694b2dd8669069bb48578cae2cc0fc57a1
Showing with 4 additions and 0 deletions.
  1. +2 −0 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
  2. +2 −0 src/gui/qgsattributeform.cpp
@@ -362,6 +362,7 @@ void QgsRelationReferenceWidget::init()
{
if ( !mReadOnlySelector && mComboBox->count() == 0 && mReferencedLayer )
{
QApplication::setOverrideCursor( Qt::WaitCursor );
if ( mAllowNull )
{
const QString nullValue = QSettings().value( "qgis/nullValue", "NULL" ).toString();
@@ -393,6 +394,7 @@ void QgsRelationReferenceWidget::init()

// Only connect after iterating, to have only one iterator on the referenced table at once
connect( mComboBox, SIGNAL( activated( int ) ), this, SLOT( comboReferenceChanged( int ) ) );
QApplication::restoreOverrideCursor();
}
}

@@ -308,6 +308,7 @@ void QgsAttributeForm::synchronizeEnabledState()

void QgsAttributeForm::init()
{
QApplication::setOverrideCursor( QCursor( Qt::WaitCursor ) );
QWidget* formWidget = 0;

qDeleteAll( mWidgets );
@@ -458,6 +459,7 @@ void QgsAttributeForm::init()
{
iface->initForm();
}
QApplication::restoreOverrideCursor();
}

void QgsAttributeForm::cleanPython()

0 comments on commit 3903f36

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