1 //=============================================================================
2 //  MuseScore
3 //  Linux Music Score Editor
4 //
5 //  Copyright (C) 2020 MuseScore BVBA and others
6 //
7 //  This program is free software; you can redistribute it and/or modify
8 //  it under the terms of the GNU General Public License version 2.
9 //
10 //  This program is distributed in the hope that it will be useful,
11 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
12 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 //  GNU General Public License for more details.
14 //
15 //  You should have received a copy of the GNU General Public License
16 //  along with this program; if not, write to the Free Software
17 //  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 //=============================================================================
19 
20 #include "clickableLabel.h"
21 
22 namespace Ms {
23 
ClickableLabel(QWidget * parent,Qt::WindowFlags f)24 ClickableLabel::ClickableLabel(QWidget* parent, Qt::WindowFlags f)
25    : QLabel(parent)
26       { Q_UNUSED(f); }
27 
~ClickableLabel()28 ClickableLabel::~ClickableLabel()
29       {}
30 
mousePressEvent(QMouseEvent * event)31 void ClickableLabel::mousePressEvent(QMouseEvent* event)
32       {
33       Q_UNUSED(event);
34       emit clicked();
35       }
36 }
37