| 385 | } |
| 386 | |
| 387 | QPixmap 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. |
no test coverage detected