Display device name on 2 lines if needed. Fix #1480
This commit is contained in:
parent
ac921f8a29
commit
762ecbcc1f
5 changed files with 97 additions and 16 deletions
15
qt/DeviceTabHeader.cpp
Normal file
15
qt/DeviceTabHeader.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include "DeviceTabHeader.h"
|
||||
|
||||
Ui::DeviceTabHeader::DeviceTabHeader(QString icon, QString device_name) :
|
||||
QWidget(nullptr),
|
||||
ui(new Ui::DeviceTabHeaderUi)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
ui->device_icon->setText("<img src=':/" + icon + "' height='16' width='16' />");
|
||||
ui->device_name->setText(device_name);
|
||||
}
|
||||
|
||||
Ui::DeviceTabHeader::~DeviceTabHeader()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue