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

Method getBackIcon

src/frontend/welcomescreen/WelcomeScreenHelper.cpp:404–414  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

402 * @brief Returns the go-back icon.
403 */
404QVariant WelcomeScreenHelper::getBackIcon() {
405 QIcon icon = QIcon::fromTheme("labplot-back");
406 QPixmap pixmap = icon.pixmap(icon.availableSizes().constFirst());
407 QByteArray bArray;
408 QBuffer buffer(&bArray);
409 buffer.open(QIODevice::WriteOnly);
410 pixmap.save(&buffer, "PNG");
411 QString image = QString::fromLatin1(bArray.toBase64().data());
412 image.prepend("data:image/png;base64,");
413 return QVariant(image);
414}
415
416/**
417 * @brief Returns the go-forward icon.

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