mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Dive pictures: Don't update all pictures on drag & drop to profile
In the old code, we used to reload the whole picture list on drag & drop to the profile. Instead, only update the drag&dropped picture and repaint the profile-pictures. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
d33e3b22fc
commit
c71a5d7413
3 changed files with 25 additions and 7 deletions
|
|
@ -24,12 +24,14 @@ public:
|
|||
void updateDivePicturesWhenDone(QList<QFuture<void>>);
|
||||
void removePicture(const QString& fileUrl, bool last);
|
||||
int rowDDStart, rowDDEnd;
|
||||
void updateDivePictureOffset(const QString &filename, int offsetSeconds);
|
||||
public slots:
|
||||
void setZoomLevel(int level);
|
||||
void updateThumbnail(QString filename, QImage thumbnail);
|
||||
private:
|
||||
DivePictureModel();
|
||||
QList<PictureEntry> pictures;
|
||||
int findPictureId(const QString &filename); // Return -1 if not found
|
||||
double zoomLevel; // -1.0: minimum, 0.0: standard, 1.0: maximum
|
||||
int size;
|
||||
int defaultSize;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue