* @brief Returns the go-forward icon. */
| 417 | * @brief Returns the go-forward icon. |
| 418 | */ |
| 419 | QVariant 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 | } |