Sat, 21 Jan 2023 14:27:10 +0100
The images tab now looks complete. Made the left side (thumbnails) a bit smaller. The right side of the screen now shows the current image and all data that belongs to that. After a new image is added, reload the images. Implemented delete image.
#ifndef _DB_PRODUCT_H #define _DB_PRODUCT_H #include <QDebug> #include <QMessageBox> #include <QUuid> #include <QJsonArray> #include <QJsonDocument> #include <QJsonObject> #include <QTranslator> #include <QSqlQuery> #include <QSqlError> #include <QSqlRecord> #include <QObject> #include <math.h> /** * @namespace db_product * * @brief Global database product functions.. */ namespace DB_product { bool load(Product *prod, QDialog *dialog, int recno); bool save(Product *prod, QDialog *dialog); bool dele(QDialog *dialog, int recno); } #endif