mancatux/src/gui/ClickLabel.h
2007-10-15 19:32:30 +00:00

25 lines
406 B
C++

#ifndef _CLICKLABEL_H_
#define _CLICKLABEL_H_
#include <QWidget>
#include <QLabel>
class ClickLabel : public QLabel
{
Q_OBJECT
public:
ClickLabel( QWidget * parent = 0, Qt::WindowFlags f = 0 );
ClickLabel ( const QString & text, QWidget * parent = 0, Qt::WindowFlags f = 0 );
signals:
void clicked();
protected:
virtual void mousePressEvent (QMouseEvent * event);
};
#endif