Rename DeviceTabHeader to TabLabel, so we can use it for all tabs rather than just device tabs
This commit is contained in:
parent
507cece3cc
commit
bbc16a9ae2
7 changed files with 47 additions and 47 deletions
15
qt/TabLabel.cpp
Normal file
15
qt/TabLabel.cpp
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue