diff options
Diffstat (limited to 'src/group.cpp')
-rw-r--r-- | src/group.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/group.cpp b/src/group.cpp new file mode 100644 index 0000000..7b8f63d --- /dev/null +++ b/src/group.cpp @@ -0,0 +1,23 @@ +#include <QLabel> +#include <QString> + +#include "group.h" + +Group::Group(int id, QString name, QString column, QString link, bool hidden) { + this->id = id; + this->name = name; + this->column = column; + this->link = link; + this->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); +} |