29 FileDialog(title, filterList, directory, parent), p_dir(directory) {
34 QList<QPushButton *> allPButtons = this->findChildren<QPushButton *>();
36 allPButtons[0]->setText(
"View");
37 disconnect(allPButtons[0], 0, 0, 0);
38 connect(allPButtons[0], SIGNAL(pressed()),
this, SLOT(
displayCube()));
40 allPButtons[1]->setText(
"Close");
42 this->setFileMode(QFileDialog::ExistingFile);