Invalid function call, may have worked on QT4

Change on line 99:

ui->treeWidget->header()->setClickable(true);

ui->treeWidget->header()->setSectionsClickable(true);