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

Method getForwardIcon

src/frontend/welcomescreen/WelcomeScreenHelper.cpp:419–429  ·  view source on GitHub ↗

* @brief Returns the go-forward icon. */

Source from the content-addressed store, hash-verified

417 * @brief Returns the go-forward icon.
418 */
419QVariant WelcomeScreenHelper::getForwardIcon() {
420 QIcon icon = QIcon::fromTheme("labplot-forward");
421 QPixmap pixmap = icon.pixmap(icon.availableSizes().constFirst());
422 QByteArray bArray;
423 QBuffer buffer(&bArray);
424 buffer.open(QIODevice::WriteOnly);
425 pixmap.save(&buffer, "PNG");
426 QString image = QString::fromLatin1(bArray.toBase64().data());
427 image.prepend("data:image/png;base64,");
428 return QVariant(image);
429}

Callers

nothing calls this directly

Calls 4

pixmapMethod · 0.45
openMethod · 0.45
saveMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected