#include <QtCore>
#include "frees.h"
#include "frezen.h"
freesDialog
::freesDialog(QList<QString>
*list,
QWidget *parent
)
{
setupUi(this);
for(int row = 0; row < list->count(); ++row) {
freesTable
->setItem
(row,
0,
new QTableWidgetItem(frees
));
//Something is wrong here.}
connect(pbAdd, SIGNAL(clicked()), this, SLOT(add()));
connect(pbRemove, SIGNAL(clicked()), this, SLOT(remove()));
}
void freesDialog::add()
{
frezenDialog dlg(this);
if( dlg.
exec() == QDialog::Accepted ) {
QString materiaal
= dlg.
matComboBox->currentText
();
int row = freesTable->rowCount();
freesTable->insertRow(row);
}
}
void freesDialog::done(int result)
{
for(int row = 0; row < freesTable->rowCount(); ++row) {
QString materiaal
= freesTable
->item
(row,
0)->text
();
list.
append(QString(materiaal
));
// Give a error Undefined reference to Frezen::Frezen(QString const&) }
}
}