From 0b7be46511ec752f1f28e73eac787da633c47f46 Mon Sep 17 00:00:00 2001 From: Louie S Date: Tue, 20 Feb 2024 17:28:22 -0500 Subject: Create group class --- src/group.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/group.cpp (limited to 'src/group.cpp') 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 +#include + +#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); +} -- cgit