summaryrefslogtreecommitdiff
path: root/src/genericicondelegate.cpp
diff options
context:
space:
mode:
authorTannin <sherb@gmx.net>2016-06-19 15:58:37 +0200
committerTannin <sherb@gmx.net>2016-06-19 15:58:37 +0200
commit0100c86887764547a705db5c311bcb5d6939423d (patch)
treea1f8eeb95751743445166f6c8e247c1acd9b5357 /src/genericicondelegate.cpp
parent8d04c77c29392ae2dce8efe517c50b40b5fd1895 (diff)
download list and data tree now also maintain their layout between sessions
Diffstat (limited to 'src/genericicondelegate.cpp')
-rw-r--r--src/genericicondelegate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/genericicondelegate.cpp b/src/genericicondelegate.cpp
index 3711b428..1e00f0e9 100644
--- a/src/genericicondelegate.cpp
+++ b/src/genericicondelegate.cpp
@@ -24,7 +24,7 @@ QList<QString> GenericIconDelegate::getIcons(const QModelIndex &index) const
{
QList<QString> result;
if (index.isValid()) {
- foreach (const QVariant &var, index.data(m_Role).toList()) {
+ for (const QVariant &var : index.data(m_Role).toList()) {
if (!m_Compact || !var.toString().isEmpty()) {
result.append(var.toString());
}