culturered_client/TouchScreen/ImageLabel.h
2024-09-07 11:34:44 +08:00

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 };
};