]> cloud.milkyroute.net Git - dolphin.git/commit
Introduce "isExpandable" role
authorPeter Penz <peter.penz19@gmail.com>
Fri, 23 Dec 2011 22:05:08 +0000 (23:05 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Fri, 23 Dec 2011 22:19:19 +0000 (23:19 +0100)
commit5f02a3e9cec038aa25aa60a7b1041ec8218155ea
tree050af994fc0e1bcaafa9147f9096d92765c0eda3
parentc2f86821b841add2b94e7074e6991570788913de
Introduce "isExpandable" role

The role is used to determine whether a directory can be expanded at all. This
is e.g. not the case if a directory has 0 items or the target-URL is different
from the item-URL.

The expansion toggle will get hidden if a directory is not expandable.

CCBUG: 288521
src/kitemviews/kfileitemlistview.cpp
src/kitemviews/kfileitemlistwidget.cpp
src/kitemviews/kfileitemlistwidget.h
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/kitemviews/kfileitemmodelrolesupdater.cpp
src/kitemviews/kfileitemmodelrolesupdater.h
src/tests/kfileitemmodeltest.cpp