| 116 | } |
| 117 | |
| 118 | void 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 | |
| 133 | void QRImageWidget::copyImage() |
| 134 | { |
nothing calls this directly
no test coverage detected