void PsiContactListView::contactAlert(const QModelIndex& realIndex) { QModelIndex index = proxyIndex(realIndex); itemDelegate()->contactAlert(index); bool alerting = index.data(ContactListModel::IsAlertingRole).toBool(); if (alerting && PsiOptions::instance()->getOption("options.ui.contactlist.ensure-contact-visible-on-event").toBool()) { ensureVisible(index); } }
void StyleEditor::styleSelected( const QString& /*text*/ ) { QModelIndex proxyIndex( styleProxyModel->index(styleComboBox->currentIndex(),0) ); QModelIndex sourceIndex( styleProxyModel->mapToSource(proxyIndex) ); setStyle( styleListModel->at(sourceIndex.row()) ); }