configurator/lib/ServiceWidget.cpp

12 lines
387 B
C++
Raw Normal View History

2024-09-03 13:40:08 +00:00
#include "ServiceWidget.h"
ServiceWidget::ServiceWidget(Service &s, QWidget *parent):QWidget(parent),_layout(QBoxLayout::LeftToRight, this) {
_icon = new QLabel(this);
_icon->setPixmap(s.pixmap().scaled(32, 32));
_layout.addWidget(_icon);
_label = new QLabel(this);
_label->setText("<h3>" + s.title + "</h3>" + s.description);
_layout.addWidget(_label);
_layout.setSpacing(4);
}