blame: thumbnailworker.h
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 1 | #pragma once |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 2 | |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 3 | #include <QRunnable> |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 4 | #include <QObject> |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 5 | #include <QPixmap> |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 6 | |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 7 | class ThumbnailWorker : public QObject, public QRunnable |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 8 | { |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 9 | Q_OBJECT |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 10 | |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 11 | public: |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 12 | ThumbnailWorker(const QString &path, int row); |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 13 | |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 14 | void run() override; |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 15 | |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 16 | signals: |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 17 | void finished(int row, const QPixmap &pixmap); |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 18 | |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 19 | private: |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 20 | QString m_path; |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 21 | int m_row; |
| cec3b5da | Poul Sander | 2026-02-19 19:17 | 22 | }; |
| 1970-01-01 00:00 | 23 |