[Qgis-developer] Lineedit with clear button

Etienne Tourigny etourigny.dev at gmail.com
Sat Nov 3 14:19:54 PDT 2012


Hi all

I have just pushed a few changes to the browser dock, some unrelated
to filtering

- changed buttons and use designer ui file
- populate items by using use canFetchMore() and fetchMore() instead
of rowCount(), this is more "standard" and less confusing code
- add directory properties right-click menu action (uses same widget
as in the browser app)

and this is related to new filter line edit

- implement wildcard + regex filter using this new widget
- add cleared() signal to QgsFilterLineEdit

A control is available to filter by unix-style wildcard (multiple
elements separated by |) or regex pattern.
The filter is hidden unless the "Filter Files" button is pressed, and
you must click enter or the filter button to activate the filter.
The new clear button can be used to clear the filter.

Please send any comments/complaints/bugs

cheers
Etienne

On Sat, Nov 3, 2012 at 2:22 PM, Alexander Bruy <alexander.bruy at gmail.com> wrote:
> Hi,
>
> I pushed widget into master and modify some dialogs to use it.
>
> 2012/11/2 Tim Sutton <lists at linfiniti.com>:
>> Hi
>>
>> On Fri, Nov 2, 2012 at 2:18 PM, Etienne Tourigny
>> <etourigny.dev at gmail.com> wrote:
>>> Somewhat related - I have some code to add simple filtering to the
>>> browser dock.
>>>
>>> This allows to select certain file names and/or extensions using a
>>> simple wildcard pattern.
>>> The filter box can be shown/hidden with a control so it doesn't
>>> interfere with the browser dock size.
>>>
>>> Is it worth including in master, using this new widget?
>>>
>>
>> +1 for both the widget and the dock enhancements from me!
>>
>> Regards
>>
>> Tim
>
> --
> Alexander Bruy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: browser-filter.jpg
Type: image/jpeg
Size: 37618 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20121103/a0cfb131/attachment-0001.jpg>


More information about the Qgis-developer mailing list