Use TabLabel for all tab labels and adjust the TabLabel widget layout so that it aligns with the previous HTML label layout. Height is slightly increased for two-line labels.

This commit is contained in:
Adam Honse 2021-08-17 19:44:20 -05:00
parent bbc16a9ae2
commit 7327644d26
3 changed files with 114 additions and 104 deletions

View file

@ -7,6 +7,7 @@ Ui::TabLabel::TabLabel(QString icon, QString name) :
ui->setupUi(this);
ui->icon->setText("<img src=':/" + icon + "' height='16' width='16' />");
ui->name->setText(name);
setMinimumHeight(ui->name->height());
}
Ui::TabLabel::~TabLabel()