src/EditProduct.cpp

changeset 468
b21da6f583be
parent 467
c5f6f3f1b714
child 469
a022701d47f5
--- a/src/EditProduct.cpp	Fri Jan 20 16:44:08 2023 +0100
+++ b/src/EditProduct.cpp	Sat Jan 21 14:27:10 2023 +0100
@@ -102,10 +102,15 @@
 	ui->keg_sugarEdit->addItem(query.value(0).toString());
     }
 
+    for (int i = 0; i < 7; i++)
+        ui->image_typeEdit->addItem(QCoreApplication::translate("PicType", g_prod_pic_types[i]));
+
     ui->spargeGroup->setId(ui->w1_spButton, 0);
     ui->spargeGroup->setId(ui->w2_spButton, 1);
     ui->spargeGroup->setId(ui->wg_spButton, 2);
 
+
+
     if (id >= 0) {
 	if (! DB_product::load(product, this, id))
 	    return;
@@ -764,6 +769,7 @@
     connect(ui->prevImage, SIGNAL(clicked()), this, SLOT(prevImage_clicked()));
     connect(ui->downloadImage, SIGNAL(clicked()), this, SLOT(downloadImage_clicked()));
     connect(ui->printImage, SIGNAL(clicked()), this, SLOT(printImage_clicked()));
+    connect(ui->filmStrip, SIGNAL(itemClicked(QListWidgetItem*)), this, SLOT(selectImage_clicked(QListWidgetItem *)));
 
     setStage();
 

mercurial