@@ -711,7 +711,7 @@ void OpenRGBDialog::AddPluginsPage()
711711 /* -----------------------------------------------------*\
712712 | Create the tab label |
713713 \*-----------------------------------------------------*/
714- TabLabel* PluginTabLabel = new TabLabel (OpenRGBFont::extension, tr ( " Plugins " ), ( char *)" Plugins" , (char *)context);
714+ TabLabel* PluginTabLabel = new TabLabel (OpenRGBFont::extension, ( char *)" Plugins" , (char *)context, true );
715715
716716 ui->SettingsTabBar ->tabBar ()->setTabButton (ui->SettingsTabBar ->tabBar ()->count () - 1 , QTabBar::LeftSide, PluginTabLabel);
717717}
@@ -728,7 +728,7 @@ void OpenRGBDialog::AddSoftwareInfoPage()
728728 /* -----------------------------------------------------*\
729729 | Create the tab label |
730730 \*-----------------------------------------------------*/
731- TabLabel* SoftwareTabLabel = new TabLabel (OpenRGBFont::info, tr ( " About OpenRGB " ), ( char *)" About OpenRGB" , (char *)context);
731+ TabLabel* SoftwareTabLabel = new TabLabel (OpenRGBFont::info, ( char *)" About OpenRGB" , (char *)context, true );
732732
733733 ui->InformationTabBar ->tabBar ()->setTabButton (ui->InformationTabBar ->tabBar ()->count () - 1 , QTabBar::LeftSide, SoftwareTabLabel);
734734}
@@ -745,7 +745,7 @@ void OpenRGBDialog::AddSupportedDevicesPage()
745745 /* -----------------------------------------------------*\
746746 | Create the tab label |
747747 \*-----------------------------------------------------*/
748- TabLabel* SupportedTabLabel = new TabLabel (OpenRGBFont::controller, tr ( " Supported Devices " ), ( char *)" Supported Devices" , (char *)context);
748+ TabLabel* SupportedTabLabel = new TabLabel (OpenRGBFont::controller, ( char *)" Supported Devices" , (char *)context, true );
749749
750750 ui->SettingsTabBar ->tabBar ()->setTabButton (ui->SettingsTabBar ->tabBar ()->count () - 1 , QTabBar::LeftSide, SupportedTabLabel);
751751}
@@ -762,7 +762,7 @@ void OpenRGBDialog::AddSettingsPage()
762762 /* -----------------------------------------------------*\
763763 | Create the tab label |
764764 \*-----------------------------------------------------*/
765- TabLabel* SettingsTabLabel = new TabLabel (OpenRGBFont::options, tr ( " General Settings " ), ( char *)" General Settings" , (char *)context);
765+ TabLabel* SettingsTabLabel = new TabLabel (OpenRGBFont::options, ( char *)" General Settings" , (char *)context, true );
766766
767767 ui->SettingsTabBar ->tabBar ()->setTabButton (ui->SettingsTabBar ->tabBar ()->count () - 1 , QTabBar::LeftSide, SettingsTabLabel);
768768
@@ -785,7 +785,7 @@ void OpenRGBDialog::AddManualDevicesSettingsPage()
785785 /* -----------------------------------------------------*\
786786 | Create the tab label |
787787 \*-----------------------------------------------------*/
788- TabLabel* SettingsTabLabel = new TabLabel (OpenRGBFont::bulb, tr ( " Manually Added Devices " ), ( char *)" Manually Added Devices" , (char *)context);
788+ TabLabel* SettingsTabLabel = new TabLabel (OpenRGBFont::bulb, ( char *)" Manually Added Devices" , (char *)context, true );
789789
790790 ui->SettingsTabBar ->tabBar ()->setTabButton (ui->SettingsTabBar ->tabBar ()->count () - 1 , QTabBar::LeftSide, SettingsTabLabel);
791791}
@@ -795,7 +795,7 @@ void OpenRGBDialog::AddPlugin(OpenRGBPluginEntry* plugin)
795795 /* -----------------------------------------------------*\
796796 | Create the tab label |
797797 \*-----------------------------------------------------*/
798- TabLabel* PluginTabLabel = new TabLabel (OpenRGBFont::extension, QString::fromStdString (plugin-> info . Label ), ( char *)plugin->info .Label .c_str (), (char *)context);
798+ TabLabel* PluginTabLabel = new TabLabel (OpenRGBFont::extension, ( char *)plugin->info .Label .c_str (), (char *)context, false );
799799
800800 /* -----------------------------------------------------*\
801801 | Place plugin as its own top level tab |
@@ -948,7 +948,7 @@ void OpenRGBDialog::AddI2CToolsPage()
948948 /* -----------------------------------------------------*\
949949 | Create the tab label |
950950 \*-----------------------------------------------------*/
951- TabLabel* SMBusToolsTabLabel = new TabLabel (OpenRGBFont::toolbox, tr ( " SMBus Tools " ), ( char *)" SMBus Tools" , (char *)context);
951+ TabLabel* SMBusToolsTabLabel = new TabLabel (OpenRGBFont::toolbox, ( char *)" SMBus Tools" , (char *)context, true );
952952
953953 ui->InformationTabBar ->tabBar ()->setTabButton (ui->InformationTabBar ->tabBar ()->count () - 1 , QTabBar::LeftSide, SMBusToolsTabLabel);
954954}
@@ -1062,7 +1062,7 @@ void OpenRGBDialog::UpdateDevicesList()
10621062 /* ---------------------------------------------*\
10631063 | Create the tab label |
10641064 \*---------------------------------------------*/
1065- TabLabel* NewTabLabel = new TabLabel (GetIcon (controllers[controller_idx]->type ), QString::fromStdString (controllers[controller_idx]-> GetName ()), ( char *)controllers[controller_idx]->GetName ().c_str (), (char *)context);
1065+ TabLabel* NewTabLabel = new TabLabel (GetIcon (controllers[controller_idx]->type ), ( char *)controllers[controller_idx]->GetName ().c_str (), (char *)context, false );
10661066
10671067 ui->DevicesTabBar ->tabBar ()->setTabButton (ui->DevicesTabBar ->count () - 1 , QTabBar::LeftSide, NewTabLabel);
10681068 ui->DevicesTabBar ->tabBar ()->setTabToolTip (ui->DevicesTabBar ->count () - 1 , QString::fromStdString (controllers[controller_idx]->GetName ()));
@@ -1115,7 +1115,7 @@ void OpenRGBDialog::UpdateDevicesList()
11151115 /* ---------------------------------------------*\
11161116 | Create the tab label |
11171117 \*---------------------------------------------*/
1118- TabLabel* NewTabLabel = new TabLabel (GetIcon (controllers[controller_idx]->type ), QString::fromStdString (controllers[controller_idx]-> GetName ()), ( char *)controllers[controller_idx]->GetName ().c_str (), (char *)context);
1118+ TabLabel* NewTabLabel = new TabLabel (GetIcon (controllers[controller_idx]->type ), ( char *)controllers[controller_idx]->GetName ().c_str (), (char *)context, false );
11191119
11201120 ui->InformationTabBar ->tabBar ()->setTabButton (ui->InformationTabBar ->count () - 1 , QTabBar::LeftSide, NewTabLabel);
11211121 ui->InformationTabBar ->tabBar ()->setTabToolTip (ui->InformationTabBar ->count () - 1 , QString::fromStdString (controllers[controller_idx]->GetName ()));
@@ -1815,7 +1815,7 @@ void OpenRGBDialog::AddConsolePage()
18151815 /* -----------------------------------------------------*\
18161816 | Create the tab label |
18171817 \*-----------------------------------------------------*/
1818- TabLabel* ConsoleTabLabel = new TabLabel (OpenRGBFont::terminal, tr ( " Log Console " ), ( char *)" Log Console" , (char *)context);
1818+ TabLabel* ConsoleTabLabel = new TabLabel (OpenRGBFont::terminal, ( char *)" Log Console" , (char *)context, true );
18191819
18201820 ui->InformationTabBar ->tabBar ()->setTabButton (ui->InformationTabBar ->tabBar ()->count () - 1 , QTabBar::LeftSide, ConsoleTabLabel);
18211821}
0 commit comments