mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive pictures: turn SHashedImage class into getHashedImage() function
SHashedImage was a subclass of QImage, which fetched the image according to the filename hashes. Turn this into a function, as this is much more idiomatic and flexible. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
630862971f
commit
5d372cfda3
3 changed files with 14 additions and 22 deletions
|
@ -19,10 +19,6 @@ private:
|
|||
struct picture *picture;
|
||||
};
|
||||
|
||||
class SHashedImage : public QImage {
|
||||
bool load(const QString &fileName, const char *format=nullptr);
|
||||
public:
|
||||
SHashedImage(struct picture *picture);
|
||||
};
|
||||
QImage getHashedImage(struct picture *picture);
|
||||
|
||||
#endif // IMAGEDOWNLOADER_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue