12 lines
387 B
C++
12 lines
387 B
C++
|
#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);
|
||
|
}
|