summaryrefslogtreecommitdiff
path: root/src/group.cpp
blob: 781fb98e7dfde71f8eebb31814535810453b5775 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <QLabel>
#include <QString>

#include "group.h"

Group::Group(int id, QString name, QString column, QString link, bool hidden) :
	id(id),
	name(name),
	column(column),
	link(link),
	hidden(hidden)
{
	this->setContentsMargins(0, 10, 0, 10);

	QLabel *name_label = new QLabel(this->name);
	name_label->setTextInteractionFlags(Qt::TextSelectableByMouse);
	
	QFont name_font = QFont("Arial", 13);
	name_font.setUnderline(true);

	name_label->setFont(name_font);
	this->addWidget(name_label);
}