summaryrefslogtreecommitdiffstats
path: root/src/server/clicklabel/clicklabel.cpp
blob: d4b25eed025acc9fabfc3b46cf13173774f78a19 (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();
}