mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 22:45:55 -04:00
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:
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user