Wed, 20 Apr 2022 22:48:20 +0200
Implemented the last widgets on the first tab and added the needed functions for them such as scaling the recipe. This is the last part of the recipe editor, now ready for testing.
#ifndef _PRINTERDIALOG_H #define _PRINTERDIALOG_H #include <QDialog> #include <QPrinter> #include <QPainter> enum JobType { PR_SUPPLIES, PR_YEASTBANK }; namespace Ui { class PrinterDialog; } class PrinterDialog : public QDialog { Q_OBJECT public: /** * @brief Construct a new Printer Dialog * @param parent */ explicit PrinterDialog(int job, int rec, QWidget *parent = 0); /** * @brief Destroy the Printer Dialog */ ~PrinterDialog(); public slots: void printDocument(QPrinter *printer); private: int p_job; int p_rec; void printHeader(QPainter *painter); }; #endif