Changeset View
Changeset View
Standalone View
Standalone View
src/lib/code93barcode.cpp
Show First 20 Lines • Show All 244 Lines • ▼ Show 20 Line(s) | 239 | static int checksum(QList<int> codes, int wrap) { | |||
---|---|---|---|---|---|
245 | } | 245 | } | ||
246 | return check % 47; | 246 | return check % 47; | ||
247 | } | 247 | } | ||
248 | }; | 248 | }; | ||
249 | /** | 249 | /** | ||
250 | @endcond | 250 | @endcond | ||
251 | */ | 251 | */ | ||
252 | 252 | | |||
253 | Code93Barcode::Code93Barcode() : AbstractBarcode(), d(0){ | 253 | Code93Barcode::Code93Barcode() : AbstractBarcode(), d(nullptr){ | ||
254 | } | 254 | } | ||
255 | 255 | | |||
256 | Code93Barcode::~Code93Barcode() { | 256 | Code93Barcode::~Code93Barcode() { | ||
257 | delete d; | 257 | delete d; | ||
258 | } | 258 | } | ||
259 | 259 | | |||
260 | QImage Code93Barcode::paintImage(const QSizeF& size) { | 260 | QImage Code93Barcode::paintImage(const QSizeF& size) { | ||
261 | if(size.height() == 0) { | 261 | if(size.height() == 0) { | ||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |