D22114: Add saving thumbnails for projects
Fabian Kristof
noreply at phabricator.kde.org
Mon Jul 1 13:20:49 BST 2019
fkristof added inline comments.
INLINE COMMENTS
> Project.cpp:247
> + thumbnail.save(&buffer, "JPEG");
> + QString image = QString::fromLatin1(bArray.toBase64().data());
> + writer->writeAttribute("thumbnail", image);
add const
> MainWin.cpp:1100
>
> + QPixmap thumbnail = centralWidget()->grab();
> +
add const
> WelcomeScreenHelper.cpp:64
> + */
> +QVariant WelcomeScreenHelper::getProjectThumbnail(const QUrl& url) {
> + QString filename;
const function
> WelcomeScreenHelper.cpp:71
> +
> + QIODevice* file;
> + // first try gzip compression, because projects can be gzipped and end with .lml
= nullptr;
> WelcomeScreenHelper.cpp:106
> +
> + if (reader.name() == "project") {
> + QString thumbnail = reader.attributes().value("thumbnail").toString();
QLatin1String("project")
REPOSITORY
R262 LabPlot
REVISION DETAIL
https://phabricator.kde.org/D22114
To: ferenczkovacs, asemke, fkristof
Cc: kde-edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20190701/948af4ad/attachment.html>
More information about the kde-edu
mailing list