Skip to content
Permalink
Browse files

Show spinner in locator widget

  • Loading branch information
m-kuhn committed Oct 24, 2017
1 parent e9d6e38 commit 2940be1997678f455f8e29be5c98a6a562ab4817
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/gui/locator/qgslocatorwidget.cpp
@@ -172,6 +172,11 @@ void QgsLocatorWidget::searchFinished()
mHasQueuedRequest = false;
updateResults( nextSearch );
}
else
{
if ( !mLocator->isRunning() )
mLineEdit->setShowSpinner( false );
}
}

bool QgsLocatorWidget::eventFilter( QObject *obj, QEvent *event )
@@ -292,6 +297,7 @@ void QgsLocatorWidget::configMenuAboutToShow()

void QgsLocatorWidget::updateResults( const QString &text )
{
mLineEdit->setShowSpinner( true );
if ( mLocator->isRunning() )
{
// can't do anything while a query is running, and can't block

0 comments on commit 2940be1

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