summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_sql_models_qsqlquerymodel.cpp
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2009-05-28 12:46:39 (GMT)
committerJason McDonald <jason.mcdonald@nokia.com>2009-05-29 03:46:47 (GMT)
commit375cb7d7e5527c92daef5d53e82e352b04c069b0 (patch)
tree1aba720f304b70d58162198435f54291e5d196a1 /doc/src/snippets/code/src_sql_models_qsqlquerymodel.cpp
parent9e531437c10cbe420eeb7277e70c2252ee0ffc18 (diff)
downloadQt-375cb7d7e5527c92daef5d53e82e352b04c069b0.zip
Qt-375cb7d7e5527c92daef5d53e82e352b04c069b0.tar.gz
Qt-375cb7d7e5527c92daef5d53e82e352b04c069b0.tar.bz2
Fix wrong sorting when using the QFileSystemModel with QTreeView
An optimization was made to the sorting of QFileDialog to sort only the current root (meaning what the user see). This avoided slowness when the model was big with lots of leafs. The problem here is for the treeview, the root is always the same, we expands only nodes. In that case, a recursive sorting is needed to ensure that all expanded nodes are correctly sorted (and filtered). This will be slower that's why i use an hidden flag in the d pointer to deactivate the recursive sort for the QFileDialog. Task-number:254701 Reviewed-by:olivier BT:yes (cherry picked from commit 8e4300e2866fd28881853509df6ff054e13f841b)
Diffstat (limited to 'doc/src/snippets/code/src_sql_models_qsqlquerymodel.cpp')
0 files changed, 0 insertions, 0 deletions