diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2017-12-09 22:59:21 +0100 |
---|---|---|
committer | Robert C. Helling <helling@atdotde.de> | 2017-12-10 15:00:53 +0100 |
commit | a07d3b7bfe30f92df8d7e12d364db5aec0a18e46 (patch) | |
tree | 3416d350883b6fc104b5edc00e73326a6d4ab9bc /qt-models/divepicturemodel.cpp | |
parent | 2e340d3a61243c0bd42a6ba1639b66bbb340cee6 (diff) | |
download | subsurface-a07d3b7bfe30f92df8d7e12d364db5aec0a18e46.tar.gz |
Whitespace fixes in qt-models/divepicturemodel.cpp
Note that constructs like QList<QFuture<void>> is incompatible with
pre-C++11 compilers. But the code base is so full of C++11isms that
we may just as well remove asymmetric eye-sores of the kind
"QList<QFuture<void> >".
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divepicturemodel.cpp')
-rw-r--r-- | qt-models/divepicturemodel.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/qt-models/divepicturemodel.cpp b/qt-models/divepicturemodel.cpp index 9286dc54c..e5b40b748 100644 --- a/qt-models/divepicturemodel.cpp +++ b/qt-models/divepicturemodel.cpp @@ -7,8 +7,7 @@ #include <QtConcurrent> -extern QHash <QString, QImage > thumbnailCache; - +extern QHash <QString, QImage> thumbnailCache; SPixmap scaleImages(picturepointer picture) { @@ -28,7 +27,6 @@ SPixmap scaleImages(picturepointer picture) return ret; } - DivePictureModel *DivePictureModel::instance() { static DivePictureModel *self = new DivePictureModel(); @@ -39,8 +37,7 @@ DivePictureModel::DivePictureModel() : numberOfPictures(0) { } - -void DivePictureModel::updateDivePicturesWhenDone(QList<QFuture<void> > futures) +void DivePictureModel::updateDivePicturesWhenDone(QList<QFuture<void>> futures) { Q_FOREACH (QFuture<void> f, futures) { f.waitForFinished(); @@ -108,7 +105,7 @@ QVariant DivePictureModel::data(const QModelIndex &index, int role) const switch (role) { case Qt::UserRole: ret = QVariant::fromValue((int)stringPixmapCache[key].offsetSeconds); - break; + break; case Qt::DisplayRole: ret = key; } |