Changeset View
Changeset View
Standalone View
Standalone View
src/lib/abstractbarcode.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 39 | #endif | |||
---|---|---|---|---|---|
54 | /** | 54 | /** | ||
55 | * Creates a image with a barcode on | 55 | * Creates a image with a barcode on | ||
56 | * @return QImage with a barcode on, trying to match the requested \param size | 56 | * @return QImage with a barcode on, trying to match the requested \param size | ||
57 | * | 57 | * | ||
58 | * If one of the dimensions of @param size is smaller than the matching dimension in \ref minimumSize, | 58 | * If one of the dimensions of @param size is smaller than the matching dimension in \ref minimumSize, | ||
59 | * a null QImage will be returned | 59 | * a null QImage will be returned | ||
60 | */ | 60 | */ | ||
61 | QImage toImage(const QSizeF& size) ; | 61 | QImage toImage(const QSizeF& size) ; | ||
62 | #if PRISON_ENABLE_DEPRECATED_SINCE(5, 71) | ||||
62 | /** | 63 | /** | ||
63 | * The minimal size of this barcode. | 64 | * The minimal size of this barcode. | ||
64 | * @note This isn't the absolute minimum, but closer to the result of preferredSize(1). | 65 | * @note This isn't the absolute minimum, but closer to the result of preferredSize(1). | ||
65 | * @return the minimal size for this barcode. | 66 | * @return the minimal size for this barcode. | ||
66 | * @deprecated since 5.69 Prefer preferredSize() or trueMinimumSize(). | 67 | * @deprecated since 5.69, use preferredSize() or trueMinimumSize(). | ||
67 | */ | 68 | */ | ||
69 | PRISON_DEPRECATED_VERSION_BELATED(5, 71, 5, 69, "Use preferredSize() or trueMinimumSize()") | ||||
kossebau: D29573 bringing _BELATED only landed a few days ago, but can already serve here for another… | |||||
68 | QSizeF minimumSize() const; | 70 | QSizeF minimumSize() const; | ||
71 | #endif | ||||
69 | 72 | | |||
70 | /** | 73 | /** | ||
71 | * The minimal amount of pixels needed to represent this barcode without loss of information. | 74 | * The minimal amount of pixels needed to represent this barcode without loss of information. | ||
72 | * That is, the size of the barcode image if each line or dot is just one pixel wide. | 75 | * That is, the size of the barcode image if each line or dot is just one pixel wide. | ||
73 | * On normal screens that is not enough for barcode scanners to reliably detect the barcode | 76 | * On normal screens that is not enough for barcode scanners to reliably detect the barcode | ||
74 | * though. | 77 | * though. | ||
75 | * @see preferredSize | 78 | * @see preferredSize | ||
76 | * @since 5.69 | 79 | * @since 5.69 | ||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |
D29573 bringing _BELATED only landed a few days ago, but can already serve here for another case :)