remove no longer used slot

This commit is contained in:
Andrey Filipenkov authored and GitHub committed 2024-03-02 17:27:15 +03:00
1 parent a373ec6743
commit 5dddb7ed00
1 file changed
-19
@@ -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);