Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ui] improve search widget ordering
  • Loading branch information
nirvn committed Dec 28, 2016
1 parent 94dd1f4 commit d205794
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gui/editorwidgets/core/qgssearchwidgetwrapper.cpp
Expand Up @@ -30,10 +30,10 @@ QList<QgsSearchWidgetWrapper::FilterFlag> QgsSearchWidgetWrapper::exclusiveFilte
<< GreaterThanOrEqualTo
<< LessThanOrEqualTo
<< Between
<< IsNotBetween
<< Contains
<< DoesNotContain
<< IsNull
<< IsNotBetween
<< IsNotNull;
}

Expand Down Expand Up @@ -61,6 +61,8 @@ QString QgsSearchWidgetWrapper::toString( QgsSearchWidgetWrapper::FilterFlag fla
return QObject::tr( "Less than or equal to (<=)" );
case Between:
return QObject::tr( "Between (inclusive)" );
case IsNotBetween:
return QObject::tr( "Not between (inclusive)" );
case CaseInsensitive:
return QObject::tr( "Case insensitive" );
case Contains:
Expand All @@ -71,8 +73,6 @@ QString QgsSearchWidgetWrapper::toString( QgsSearchWidgetWrapper::FilterFlag fla
return QObject::tr( "Is missing (null)" );
case IsNotNull:
return QObject::tr( "Is not missing (not null)" );
case IsNotBetween:
return QObject::tr( "Is not between (inclusive)" );

}
return QString();
Expand Down

1 comment on commit d205794

@nirvn
Copy link
Contributor Author

@nirvn nirvn commented on d205794 Dec 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This insures that between / not between follow one another.

Now (left) vs. before (right):
untitled
Oups, wrong ordering

Please sign in to comment.