mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Make scaleImages() a static function
It was only used by the DivePictureModel class, no need to export it. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
78bafe8f62
commit
2f5f1e036e
2 changed files with 1 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
|||
extern QHash <QString, QImage> thumbnailCache;
|
||||
static QMutex thumbnailMutex;
|
||||
|
||||
void scaleImages(PictureEntry &entry)
|
||||
static void scaleImages(PictureEntry &entry)
|
||||
{
|
||||
QMutexLocker l(&thumbnailMutex);
|
||||
if (thumbnailCache.contains(entry.filename) && !thumbnailCache.value(entry.filename).isNull()) {
|
||||
|
|
|
@ -13,9 +13,6 @@ struct PictureEntry {
|
|||
int offsetSeconds;
|
||||
};
|
||||
|
||||
// function that will scale the pixmap, used inside the QtConcurrent thread.
|
||||
void scaleImages(PictureEntry &entry);
|
||||
|
||||
class DivePictureModel : public QAbstractTableModel {
|
||||
Q_OBJECT
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue