void ChatAppearance::loadImpl() { if (!m_controller) { NotificationRequest request(Notification::System); request.setObject(this); request.setText(tr("Unable to create chat session")); request.send(); return; } ConfigGroup quickChat = Config("appearance/qmlChat"); ui->openGLBox->setChecked(quickChat.value("openGL",false)); quickChat.beginGroup(QLatin1String("style")); m_currentStyleName = quickChat.value<QString>("name","default"); quickChat.endGroup(); getThemes(); int index = ui->chatBox->findText(m_currentStyleName); isLoad = true; index = index == -1 ? 0 : index; if(index == ui->chatBox->currentIndex()) onThemeChanged(index); else ui->chatBox->setCurrentIndex(index); }
void IGameListView::setTheme(const std::shared_ptr<ThemeData>& theme) { mTheme = theme; onThemeChanged(theme); }