MCPcopy Create free account
hub / github.com/KDAB/GammaRay / updateFonts

Method updateFonts

plugins/fontbrowser/fontbrowserserver.cpp:40–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void 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
50void FontBrowserServer::setPointSize(int size)
51{

Callers

nothing calls this directly

Calls 3

reserveMethod · 0.80
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected