diff options
| author | Peter Penz <[email protected]> | 2011-12-23 23:05:08 +0100 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2011-12-23 23:19:19 +0100 |
| commit | 5f02a3e9cec038aa25aa60a7b1041ec8218155ea (patch) | |
| tree | 050af994fc0e1bcaafa9147f9096d92765c0eda3 /src/tests/kfileitemmodeltest.cpp | |
| parent | c2f86821b841add2b94e7074e6991570788913de (diff) | |
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
Diffstat (limited to 'src/tests/kfileitemmodeltest.cpp')
| -rw-r--r-- | src/tests/kfileitemmodeltest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/kfileitemmodeltest.cpp b/src/tests/kfileitemmodeltest.cpp index ac0c59952..86a2c04a4 100644 --- a/src/tests/kfileitemmodeltest.cpp +++ b/src/tests/kfileitemmodeltest.cpp @@ -372,7 +372,7 @@ void KFileItemModelTest::testExpandItems() // yields the correct result for "a/a/1" and "a/a-1/", whis is non-trivial because they share the // first three characters. QSet<QByteArray> modelRoles = m_model->roles(); - modelRoles << "isExpanded" << "expansionLevel"; + modelRoles << "isExpanded" << "isExpandable" << "expansionLevel"; m_model->setRoles(modelRoles); QStringList files; |
