Windows works
This commit is contained in:
@@ -258,13 +258,13 @@ void MainWindow::on_buttonGraphicClear_clicked() {
|
||||
|
||||
|
||||
void MainWindow::on_tabWidget_currentChanged(int index) {
|
||||
QPIEvaluator eval;
|
||||
PIEvaluator eval;
|
||||
evaluator.clearCustomVariables();
|
||||
for (int i = 0; i < treeVariables->topLevelItemCount(); ++i) {
|
||||
QString vn, vv;
|
||||
vn = treeVariables->topLevelItem(i)->text(0);
|
||||
vv = treeVariables->topLevelItem(i)->text(1);
|
||||
eval.check(vv);
|
||||
eval.check(Q2PIString(vv));
|
||||
evaluator.setVariable(Q2PIString(vn), eval.evaluate());
|
||||
}
|
||||
if (index == 0) on_lineInput_returnPressed();
|
||||
|
||||
Reference in New Issue
Block a user