mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-29 08:34:48 +08:00
display scales
This commit is contained in:
+13
-1
@@ -63,6 +63,18 @@ int Train3DMASCDialog::addFeature(QString name, float importance, bool isChecked
|
||||
return index;
|
||||
}
|
||||
|
||||
int Train3DMASCDialog::addScale(double scale, bool isChecked/*=true*/)
|
||||
{
|
||||
int index = tableWidget->rowCount();
|
||||
tableWidget->setRowCount(index + 1);
|
||||
|
||||
QTableWidgetItem* nameItem = new QTableWidgetItem(QString::number(scale));
|
||||
nameItem->setCheckState(isChecked ? Qt::Checked : Qt::Unchecked);
|
||||
tableWidget->setItem(index, 0, nameItem);
|
||||
|
||||
return index;
|
||||
}
|
||||
|
||||
void Train3DMASCDialog::setResultText(QString text)
|
||||
{
|
||||
resultLabel->setText(text);
|
||||
@@ -153,4 +165,4 @@ void Train3DMASCDialog::onExportResults()
|
||||
QString importance = tableWidget->item(index, FeatureImportanceColumn)->text();
|
||||
stream << featureName << ";" << importance << endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user