| 38 | } |
| 39 | |
| 40 | void FontBrowserServer::updateFonts() |
| 41 | { |
| 42 | const auto rows = m_fontSelectionModel->selectedRows(); |
| 43 | QVector<QFont> currentFonts; |
| 44 | currentFonts.reserve(rows.size()); |
| 45 | for (const QModelIndex &index : rows) |
| 46 | currentFonts << index.data(FontRole).value<QFont>(); |
| 47 | m_selectedFontModel->updateFonts(currentFonts); |
| 48 | } |
| 49 | |
| 50 | void FontBrowserServer::setPointSize(int size) |
| 51 | { |