Rename DeviceTabHeader to TabLabel, so we can use it for all tabs rather than just device tabs

This commit is contained in:
Adam Honse 2021-08-17 19:12:22 -05:00
parent 507cece3cc
commit bbc16a9ae2
7 changed files with 47 additions and 47 deletions

15
qt/TabLabel.cpp Normal file
View file

@ -0,0 +1,15 @@
#include "TabLabel.h"
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;
}