FindDialog::FindDialog(QWidget *parent) : QDialog(parent) { resize(QSize(300 , 200).expandedTo(minimumSizeHint())); setMinimumSize(QSize(350 , 200).expandedTo(minimumSizeHint())); setMaximumSize(QSize(350 , 200).expandedTo(minimumSizeHint())); this->parent = parent; createDesign(); connect(pushButtonClose, SIGNAL(clicked()), this, SLOT(close())); connect(pushButtonFind, SIGNAL(clicked()), parent, SLOT(findText())); connect(pushButtonFind, SIGNAL(clicked()), this, SLOT(close())); setWindowTitle(tr("Find...")); }
//----------------------------------------------------------------------------- // Function: apply() //----------------------------------------------------------------------------- void NewDesignPage::apply() { emit createDesign(attributeEditor_->getProductHierarchy(), attributeEditor_->getFirmness(), vlnvEditor_->getVLNV(), selectedPath()); }