瀏覽代碼

Merge pull request #3651 from vcmi/launcher-settings-unused-slot

remove no longer used slot
Ivan Savenko 1 年之前
父節點
當前提交
9d65148717
共有 2 個文件被更改,包括 0 次插入20 次删除
  1. 0 19
      launcher/settingsView/csettingsview_moc.cpp
  2. 0 1
      launcher/settingsView/csettingsview_moc.h

+ 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);

+ 0 - 1
launcher/settingsView/csettingsview_moc.h

@@ -45,7 +45,6 @@ private slots:
 	void on_comboBoxAutoSave_currentIndexChanged(int index);
 	void on_comboBoxLanguage_currentIndexChanged(int index);
 	void on_comboBoxCursorType_currentIndexChanged(int index);
-	void on_listWidgetSettings_currentRowChanged(int currentRow);
 	void on_pushButtonTranslation_clicked();
 
 	void on_comboBoxLanguageBase_currentIndexChanged(int index);