Add tooltips to the device tabs so that you can see names that are too long to fit on the tab

This commit is contained in:
Adam Honse 2021-02-10 16:39:19 -06:00
parent 367d01ceff
commit faf7f65372

View file

@ -661,6 +661,7 @@ void OpenRGBDialog2::UpdateDevicesList()
}
ui->DevicesTabBar->tabBar()->setTabButton(ui->DevicesTabBar->count() - 1, QTabBar::LeftSide, NewTabLabel);
ui->DevicesTabBar->tabBar()->setTabToolTip(ui->DevicesTabBar->count() - 1, QString::fromStdString(controllers[controller_idx]->name));
/*-----------------------------------------------------*\
| Now move the new tab to the correct position |
@ -727,6 +728,7 @@ void OpenRGBDialog2::UpdateDevicesList()
}
ui->InformationTabBar->tabBar()->setTabButton(ui->InformationTabBar->count() - 1, QTabBar::LeftSide, NewTabLabel);
ui->InformationTabBar->tabBar()->setTabToolTip(ui->InformationTabBar->count() - 1, QString::fromStdString(controllers[controller_idx]->name));
/*-----------------------------------------------------*\
| Now move the new tab to the correct position |