Added "Chat settings..." shortcut to chat cog

This commit is contained in:
Matt Lowe 2015-01-20 15:02:12 +01:00
parent 9b7f488bd7
commit b41d64615d
4 changed files with 24 additions and 0 deletions

View file

@ -773,6 +773,13 @@ void DlgSettings::changePage(QListWidgetItem *current, QListWidgetItem *previous
pagesWidget->setCurrentIndex(contentsWidget->row(current));
}
void DlgSettings::setTab(int index) {
if (index <= contentsWidget->count()-1 && index >= 0) {
changePage(contentsWidget->item(index), contentsWidget->currentItem());
contentsWidget->setCurrentRow(index);
}
}
void DlgSettings::updateLanguage()
{
qApp->removeTranslator(translator);