summaryrefslogtreecommitdiffstats
path: root/src/library/basesqltablemodel.cpp
diff options
context:
space:
mode:
authorJoergAtGithub <JoergAtGithub@worldwartweb.com>2020-10-20 19:48:51 +0200
committerJoergAtGithub <JoergAtGithub@worldwartweb.com>2020-10-20 19:48:51 +0200
commita4fea9510b5b0e1b87a5cbaec87a136f80eece4d (patch)
tree52c88c3b6d1fcd51852989a12eee605cc89d6ab4 /src/library/basesqltablemodel.cpp
parent0d3f319c74769289cffa42f4625c79f7bd798d6c (diff)
Fixed code style issues
Diffstat (limited to 'src/library/basesqltablemodel.cpp')
-rw-r--r--src/library/basesqltablemodel.cpp31
1 files changed, 26 insertions, 5 deletions
diff --git a/src/library/basesqltablemodel.cpp b/src/library/basesqltablemodel.cpp
index 32798f1708..f5aff4e463 100644
--- a/src/library/basesqltablemodel.cpp
+++ b/src/library/basesqltablemodel.cpp
@@ -716,15 +716,36 @@ QString BaseSqlTableModel::getTrackLocation(const QModelIndex& index) const {
CoverInfo BaseSqlTableModel::getCoverInfo(const QModelIndex& index) const {
CoverInfo coverInfo;
- coverInfo.hash = index.sibling(index.row(), fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART_HASH)).data().toUInt();
+ coverInfo.hash =
+ index.sibling(index.row(),
+ fieldIndex(ColumnCache::
+ COLUMN_LIBRARYTABLE_COVERART_HASH))
+ .data()
+ .toUInt();
coverInfo.type = static_cast<CoverInfo::Type>(
- index.sibling(index.row(), fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART_TYPE)).data().toInt());
+ index.sibling(index.row(),
+ fieldIndex(ColumnCache::
+ COLUMN_LIBRARYTABLE_COVERART_TYPE))
+ .data()
+ .toInt());
coverInfo.source = static_cast<CoverInfo::Source>(
- index.sibling(index.row(), fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART_SOURCE)).data().toInt());
+ index.sibling(index.row(),
+ fieldIndex(ColumnCache::
+ COLUMN_LIBRARYTABLE_COVERART_SOURCE))
+ .data()
+ .toInt());
coverInfo.coverLocation =
- index.sibling(index.row(), fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_COVERART_SOURCE)).data().toString();
+ index.sibling(index.row(),
+ fieldIndex(ColumnCache::
+ COLUMN_LIBRARYTABLE_COVERART_SOURCE))
+ .data()
+ .toString();
coverInfo.trackLocation =
- index.sibling(index.row(), fieldIndex(ColumnCache::COLUMN_LIBRARYTABLE_NATIVELOCATION)).data().toString();
+ index.sibling(index.row(),
+ fieldIndex(ColumnCache::
+ COLUMN_LIBRARYTABLE_NATIVELOCATION))
+ .data()
+ .toString();
return coverInfo;
}