From faf7f653729d001ce2a8d78fdc661bfe5c115788 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Wed, 10 Feb 2021 16:39:19 -0600 Subject: [PATCH] Add tooltips to the device tabs so that you can see names that are too long to fit on the tab --- qt/OpenRGBDialog2.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qt/OpenRGBDialog2.cpp b/qt/OpenRGBDialog2.cpp index c9a8a9f9..856813f5 100644 --- a/qt/OpenRGBDialog2.cpp +++ b/qt/OpenRGBDialog2.cpp @@ -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 |