D16220: Add feature to save sensor displays as images

David Edmundson noreply at phabricator.kde.org
Tue Nov 20 14:37:17 GMT 2018


davidedmundson requested changes to this revision.
davidedmundson added a comment.
This revision now requires changes to proceed.


  seems an ok feature.

INLINE COMMENTS

> SensorDisplay.cpp:401
> +  QFileDialog chooser;
> +  chooser.setWindowTitle("Save As Image");
> +  chooser.setAcceptMode(QFileDialog::AcceptSave);

i18n

> SensorDisplay.cpp:407
> +
> +  if ( !chooser.exec() || chooser.selectedFiles().length() == 0 ) {
> +      return;

https://blogs.kde.org/2009/03/26/how-crash-almost-every-qtkde-application-and-how-fix-it-0

> SensorDisplay.cpp:418
> +      painter.setCompositionMode(QPainter::CompositionMode_SourceAtop);
> +      painter.drawImage(point, gl->grabFramebuffer());
> +      painter.end();

why not just save the image from gl->grabFramebuffer() instead of painting it from one image to another.

REPOSITORY
  R106 KSysguard

REVISION DETAIL
  https://phabricator.kde.org/D16220

To: pflynn, #plasma, davidedmundson
Cc: davidedmundson, ngraham, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20181120/973182a5/attachment.html>


More information about the Plasma-devel mailing list