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:
parent
367d01ceff
commit
faf7f65372
1 changed files with 2 additions and 0 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue