v29.4-roots.1 · Commit 5: [PATCH 05/13] product: establish Roots identity and Qt experience
src/qt/qrimagewidget.h
Before: src/qt/qrimagewidget.h · After: src/qt/qrimagewidget.h
File metadata
index d9ca2b899fb4e59ecba1aa3d6f98d825403eca96..811e0235d5498bbea69e95ebc3ae0d9f3ac3aea8 100644
Download original patch · Release notes
Diff rows 1–15 of 15. Line numbers refer to the original before/after files.
+ Added− RemovedUnmarked lines are context.
Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.
src/qt/qrimagewidget.h
CHANGED
|
@@ -8,6 +8,8 @@
|
|
| 8 |
#include <QImage>
|
| 9 |
#include <QLabel>
|
| 10 |
|
|
|
|
|
|
|
| 11 |
/* Maximum allowed URI length */
|
| 12 |
static const int MAX_URI_LENGTH = 255;
|
| 13 |
|
|
@@ -30,6 +32,7 @@ class QRImageWidget : public QLabel
|
|
| 30 |
public:
|
| 31 |
explicit QRImageWidget(QWidget *parent = nullptr);
|
| 32 |
bool setQR(const QString& data, const QString& text = "");
|
|
|
|
| 33 |
QImage exportImage();
|
| 34 |
|
| 35 |
public Q_SLOTS:
|
|
|
|
| 8 |
#include <QImage>
|
| 9 |
#include <QLabel>
|
| 10 |
|
| 11 |
+
class QFont;
|
| 12 |
+
|
| 13 |
/* Maximum allowed URI length */
|
| 14 |
static const int MAX_URI_LENGTH = 255;
|
| 15 |
|
|
|
|
| 32 |
public:
|
| 33 |
explicit QRImageWidget(QWidget *parent = nullptr);
|
| 34 |
bool setQR(const QString& data, const QString& text = "");
|
| 35 |
+
bool setQR(const QString& data, const QString& text, const QFont& font);
|
| 36 |
QImage exportImage();
|
| 37 |
|
| 38 |
public Q_SLOTS:
|