Changes in src/UIElements/QT4/QTDialog.cpp [57f243:e5c0a1]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/QT4/QTDialog.cpp
r57f243 re5c0a1 33 33 #include "Descriptors/AtomIdDescriptor.hpp" 34 34 #include "Descriptors/MoleculeIdDescriptor.hpp" 35 #include " LinearAlgebra/Matrix.hpp"35 #include "Matrix.hpp" 36 36 #include "Box.hpp" 37 37 … … 556 556 { 557 557 stringstream sstr; 558 sstr << (*iter).first << "\t" << (*iter).second-> name;558 sstr << (*iter).first << "\t" << (*iter).second->getName(); 559 559 inputBox->addItem(QString(sstr.str().c_str()),QVariant((*iter).first)); 560 560 } … … 591 591 { 592 592 stringstream sstr; 593 sstr << (*iter).first << "\t" << (*iter).second-> name;593 sstr << (*iter).first << "\t" << (*iter).second->getName(); 594 594 inputBox->addItem(QString(sstr.str().c_str()),QVariant((*iter).first)); 595 595 } … … 818 818 } 819 819 820 ElementQTQueryPipe::ElementQTQueryPipe( element **_content, QTDialog *_dialog, QComboBox *_theBox) :820 ElementQTQueryPipe::ElementQTQueryPipe(const element **_content, QTDialog *_dialog, QComboBox *_theBox) : 821 821 content(_content), 822 822 dialog(_dialog), … … 834 834 } 835 835 836 ElementsQTQueryPipe::ElementsQTQueryPipe(std::vector< element *>*_content, QTDialog *_dialog, QComboBox *_theBox) :836 ElementsQTQueryPipe::ElementsQTQueryPipe(std::vector<const element *>*_content, QTDialog *_dialog, QComboBox *_theBox) : 837 837 content(_content), 838 838 dialog(_dialog), … … 846 846 QVariant data = theBox->itemData(newIndex); 847 847 int idx = data.toInt(); 848 element *elemental = World::getInstance().getPeriode()->FindElement(idx);848 const element *elemental = World::getInstance().getPeriode()->FindElement(idx); 849 849 if(elemental) 850 850 (*content).push_back(elemental);
Note:
See TracChangeset
for help on using the changeset viewer.