You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
384 B
23 lines
384 B
#ifndef UBDRAGGABLELABEL_H
|
|
#define UBDRAGGABLELABEL_H
|
|
|
|
#include <QLabel>
|
|
|
|
class UBDraggableLabel : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
UBDraggableLabel(QWidget *parent = 0);
|
|
~UBDraggableLabel();
|
|
void loadImage(QString imagePath);
|
|
signals:
|
|
|
|
public slots:
|
|
|
|
protected:
|
|
QString mSourcePath;
|
|
void mousePressEvent(QMouseEvent *event);
|
|
|
|
};
|
|
|
|
#endif // UBDRAGGABLELABEL_H
|
|
|