MCPcopy Create free account
hub / github.com/KDE/labplot / previewPixmap

Method previewPixmap

src/frontend/colormaps/ColorMapsWidget.cpp:387–394  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387QPixmap ColorMapsWidget::previewPixmap() {
388 if (ui.stackedWidget->currentIndex() == 0 && ui.lvColorMaps->currentIndex().isValid()) {
389 const QString& name = ui.lvColorMaps->currentIndex().data(Qt::DisplayRole).toString();
390 m_manager->render(m_pixmap, name);
391 }
392
393 return m_pixmap;
394}
395
396/*!
397 * returns the name of the currently selected color map.

Callers 1

selectColorMapMethod · 0.45

Calls 5

renderMethod · 0.80
currentIndexMethod · 0.45
isValidMethod · 0.45
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected