mirror of
https://gitlab.univ-nantes.fr/E164955Z/ptrans.git
synced 2026-08-30 00:00:26 +08:00
patch ui
This commit is contained in:
+13
-6
@@ -6,13 +6,20 @@ QuantiDialog::QuantiDialog(QWidget* parent)
|
||||
: QDialog(parent)
|
||||
, Ui::QuantiDialog()
|
||||
{
|
||||
|
||||
|
||||
setupUi(this);
|
||||
//connect(area_quanti, static_cast<void(QSpinBox::*)(double)>(&QSpinBox::valueChanged), this, SLOT(QuantiDialog::updateLabe()));
|
||||
|
||||
|
||||
//connect(area_quanti, SIGNAL(valueChanged(int)), this, &QuantiDialog::updateLabelValue);
|
||||
//connect(area_quanti, static_cast<void(QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged), this, &QuantiDialog::updateLabelValue);
|
||||
|
||||
|
||||
|
||||
|
||||
connect(area_quanti, static_cast<void(QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged), this, &QuantiDialog::updateLabelValues);
|
||||
|
||||
|
||||
}
|
||||
/*
|
||||
Method applied after entering a value in RGB text fields
|
||||
*/
|
||||
void QuantiDialog::updateLabelValues()
|
||||
{
|
||||
nb_color_label->setText(QString::fromStdString(std::to_string(static_cast<int>(pow(area_quanti->value(), 3)))));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user