- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Qt4/Pipe/FileQtQueryPipe.cpp
r8de597 rf10b0c 31 31 #include "UIElements/Qt4/QtDialog.hpp" 32 32 33 FileQtQueryPipe::FileQtQueryPipe( boost::filesystem::path *_content, QtDialog *_dialog, QLineEdit *_filenameLineEdit, QPushButton *_filedialogButton) :33 FileQtQueryPipe::FileQtQueryPipe(Parameter<boost::filesystem::path> &_content, QtDialog *_dialog, QLineEdit *_filenameLineEdit, QPushButton *_filedialogButton) : 34 34 content(_content), 35 35 dialog(_dialog), … … 49 49 QStringList ListOfFilenames = theFileDialog->selectedFiles(); 50 50 std::cout << "Selected File is " << ListOfFilenames.at(0).toStdString() << std::endl; 51 (*content) = ListOfFilenames.at(0).toStdString();52 filenameLineEdit->setText(QString::fromStdString( (*content).string()));51 content.set(ListOfFilenames.at(0).toStdString()); 52 filenameLineEdit->setText(QString::fromStdString(content.get().string())); 53 53 dialog->update(); 54 54 }
Note:
See TracChangeset
for help on using the changeset viewer.