45 QGridLayout* gridLayout,
int row) :
48 mData = dataInterface;
49 connect(mData.get(), SIGNAL(changed()),
this, SLOT(
setModified()));
51 QHBoxLayout* topLayout =
new QHBoxLayout;
52 topLayout->setMargin(0);
53 this->setLayout(topLayout);
57 connect(mFileInput, SIGNAL(fileChanged()),
this, SLOT(editingFinished()));
61 gridLayout->addWidget(mFileInput, row, 0);
65 topLayout->addWidget(mFileInput);
72 void FilenameWidget::editingFinished()
77 void FilenameWidget::prePaintEvent()
79 mFileInput->blockSignals(
true);
81 QString path = mData->getEmbeddedPath().getRootPath();
83 path = QDir::homePath();
88 mFileInput->
setHelp(mData->getHelp());
91 mFileInput->blockSignals(
false);
boost::shared_ptr< class FilePathProperty > FilePathPropertyPtr
Namespace for all CustusX production code.