getting rid of tons of warnings

This commit is contained in:
confuseh
2017-01-18 13:48:42 +00:00
parent 528f539fca
commit 5eb7349b57
13 changed files with 98 additions and 69 deletions
+23
View File
@@ -0,0 +1,23 @@
#ifndef SIGNALLABEL_H
#define SIGNALLABEL_H
#include <QFlags>
#include <QLabel>
#include <QWidget>
class SignalLabel : public QLabel
{
Q_OBJECT
public:
explicit SignalLabel(QWidget *parent = 0, Qt::WindowFlags f = 0)
: QLabel(parent, f) {}
virtual ~SignalLabel() = default;
signals:
void mouseDoubleClick(QMouseEvent *ev);
protected:
virtual void mouseDoubleClickEvent(QMouseEvent *ev) override {
emit this->mouseDoubleClick(ev);
}
};
#endif // SIGNALLABEL_H