Changeset View
Changeset View
Standalone View
Standalone View
tests/barcodeexamplewidget.h
Show All 36 Lines | |||||
37 | */ | 37 | */ | ||
38 | class BarcodeExampleWidget : public QWidget { | 38 | class BarcodeExampleWidget : public QWidget { | ||
39 | public: | 39 | public: | ||
40 | /** | 40 | /** | ||
41 | * Creates a barcode widget with 'barcode' as barcode generator | 41 | * Creates a barcode widget with 'barcode' as barcode generator | ||
42 | * @param barcode The barcode generator for this widget. Takes ownership over the barcode generator | 42 | * @param barcode The barcode generator for this widget. Takes ownership over the barcode generator | ||
43 | * @param parent the parent in QWidget hierachy | 43 | * @param parent the parent in QWidget hierachy | ||
44 | */ | 44 | */ | ||
45 | BarcodeExampleWidget(Prison::AbstractBarcode* barcode, QWidget* parent=0); | 45 | BarcodeExampleWidget(Prison::AbstractBarcode* barcode, QWidget* parent=nullptr); | ||
46 | virtual ~BarcodeExampleWidget(); | 46 | virtual ~BarcodeExampleWidget(); | ||
47 | /** | 47 | /** | ||
48 | * sets the data shown to data, and triggers a repaint and resize if needed | 48 | * sets the data shown to data, and triggers a repaint and resize if needed | ||
49 | * @param data QString holding the data to be shown | 49 | * @param data QString holding the data to be shown | ||
50 | */ | 50 | */ | ||
51 | void setData(const QString &data); | 51 | void setData(const QString &data); | ||
52 | /** | 52 | /** | ||
53 | * Reimplementation | 53 | * Reimplementation | ||
Show All 24 Lines |