mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-20 16:48:39 +02:00
Resizeable QrCode
This commit is contained in:
+17
-1
@@ -164,4 +164,20 @@ QPixmap QrCode::toPixmap(const int margin) const
|
||||
painter.end();
|
||||
|
||||
return pixmap;
|
||||
}
|
||||
}
|
||||
|
||||
int QrCode::width() {
|
||||
if (!isValid()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return d_ptr->m_qrcode->width;
|
||||
}
|
||||
|
||||
unsigned char* QrCode::data() {
|
||||
if (!isValid()) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
return d_ptr->m_qrcode->data;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user