17 lines
331 B
C
17 lines
331 B
C
|
#pragma once
|
||
|
|
||
|
#include <QLabel>
|
||
|
|
||
|
class ImageLabel : public QLabel {
|
||
|
public:
|
||
|
ImageLabel(qint32 index, class QMainServer* server, const QPixmap& pixmap, QWidget* parent = nullptr);
|
||
|
|
||
|
protected:
|
||
|
void mousePressEvent(QMouseEvent* event) override;
|
||
|
|
||
|
private:
|
||
|
qint32 m_index{0};
|
||
|
class QMainServer* m_server{ nullptr };
|
||
|
};
|
||
|
|