MCPcopy Create free account
hub / github.com/ElementsProject/elements / saveImage

Method saveImage

src/qt/qrimagewidget.cpp:118–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void QRImageWidget::saveImage()
119{
120 if (!GUIUtil::HasPixmap(this))
121 return;
122 QString fn = GUIUtil::getSaveFileName(
123 this, tr("Save QR Code"), QString(),
124 /*: Expanded name of the PNG file format.
125 See: https://en.wikipedia.org/wiki/Portable_Network_Graphics. */
126 tr("PNG Image") + QLatin1String(" (*.png)"), nullptr);
127 if (!fn.isEmpty())
128 {
129 exportImage().save(fn);
130 }
131}
132
133void QRImageWidget::copyImage()
134{

Callers

nothing calls this directly

Calls 2

HasPixmapFunction · 0.85
getSaveFileNameFunction · 0.85

Tested by

no test coverage detected