Browse Source

remove no longer used slot

Andrey Filipenkov 1 year ago
parent
commit
5dddb7ed00
1 changed files with 0 additions and 19 deletions
  1. 0 19
      launcher/settingsView/csettingsview_moc.cpp

+ 0 - 19
launcher/settingsView/csettingsview_moc.cpp

@@ -397,25 +397,6 @@ void CSettingsView::on_comboBoxCursorType_currentIndexChanged(int index)
 	node->String() = cursorTypesList[index];
 }
 
-void CSettingsView::on_listWidgetSettings_currentRowChanged(int currentRow)
-{
-	QVector<QWidget*> targetWidgets = {
-		ui->labelGeneral,
-		ui->labelVideo,
-		ui->labelArtificialIntelligence,
-		ui->labelRepositories
-	};
-
-	QWidget * currentTarget = targetWidgets[currentRow];
-
-	// We want to scroll in a way that will put target widget in topmost visible position
-	// To show not just header, but all settings in this group as well
-	// In order to do that, let's scroll to the very bottom and the scroll back up until target widget is visible
-	int maxPosition = ui->settingsScrollArea->verticalScrollBar()->maximum();
-	ui->settingsScrollArea->verticalScrollBar()->setValue(maxPosition);
-	ui->settingsScrollArea->ensureWidgetVisible(currentTarget, 5, 5);
-}
-
 void CSettingsView::loadTranslation()
 {
 	Languages::fillLanguages(ui->comboBoxLanguageBase, true);