mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-31 03:07:49 -05:00
17 lines
330 B
C++
17 lines
330 B
C++
#include "TabLabel.h"
|
|
#include <QFontMetrics>
|
|
|
|
Ui::TabLabel::TabLabel(QString icon, QString name) :
|
|
QWidget(nullptr),
|
|
ui(new Ui::TabLabelUi)
|
|
{
|
|
ui->setupUi(this);
|
|
ui->icon->setText("<img src=':/" + icon + "' height='16' width='16' />");
|
|
ui->name->setText(name);
|
|
}
|
|
|
|
Ui::TabLabel::~TabLabel()
|
|
{
|
|
delete ui;
|
|
}
|