summaryrefslogtreecommitdiffstats
path: root/src/server/clicklabel/clicklabel.cpp
blob: d771e63f2d68e862bd7e8f08fc1f9dee7e2b12ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "clicklabel.h"

/**
 * Initialize ClickLabel.
 * @param parent
 */
ClickLabel::ClickLabel(QWidget *parent) : QLabel(parent)
{
	QFont f(this->font());
	f.setPixelSize(25);
	this->setFont(f);
	this->setMaximumHeight(27);
}

/**
 * Handle mouse release event.
 * Emit Signal clicked().
 * @param e
 */
void ClickLabel::mouseReleaseEvent(QMouseEvent* /* e */ )
{
	emit clicked();
}