blob: 3c492e7729153a8f6ed4e8206240f80aa5be77d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#ifndef MODINFODIALOGIMAGES_H
#define MODINFODIALOGIMAGES_H
#include "modinfodialog.h"
class ThumbnailButton : public QPushButton
{
Q_OBJECT;
public:
ThumbnailButton(const QString& fullPath, QImage image);
const QImage& image() const;
signals:
void open(const QImage& image);
private:
const QImage m_original;
};
class ImagesTab : public ModInfoDialogTab
{
public:
ImagesTab(Ui::ModInfoDialog* ui);
void clear() override;
bool feedFile(const QString& rootPath, const QString& fullPath) override;
private:
Ui::ModInfoDialog* ui;
void add(const QString& fullPath);
void onOpen(const QImage& image);
};
#endif // MODINFODIALOGIMAGES_H
|