Commit graph

6 commits

Author SHA1 Message Date
Yann Lanthony
6ae591e981 [ui] module Singleton crashes at exit; expose "Filepath" as context property
TODO: find a better way to do this (wait for 'qmlRegisterSingletonType' to be available in PySide ? )
2018-03-23 11:17:11 +01:00
Yann Lanthony
f1b42acc14 [ui] add FilepathHelper Python class to manipulate paths and QUrls
* avoid non-cross platform hacks to convert string path to urls
* use standard python API
2018-03-06 15:32:33 +01:00
Yann Lanthony
2cdc83f06f [ui] add string <--> file representation convertors
* convenient methods to conform strings to Qt file reprensentation using the "file:/" protocol prefix
* use those methodes when manipulating files
2018-02-26 16:59:25 +01:00
Yann Lanthony
d2da971169 [ui] improve SortFilterDelegateModel
* use variant for filterValue and implement different logics to test filter matching based on value type
* allow redefinition of modelData and respectFilter functions to customize logic from outisde if need be
* add convenient 'reverseSortOrder' method
2018-02-16 13:02:18 +01:00
Yann Lanthony
d91601ca8e [ui] move filepath.js to Utils module 2018-02-15 15:12:07 +01:00
Yann Lanthony
61427ba41c [ui] introduce SortFilterDelegateModel
* delegate model to add sorting/filtering capabilities to a source models
* create Utils module to store generic purpose Components
2018-02-15 15:06:29 +01:00