Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/QT4/QTDialog.cpp

    r57f243 re5c0a1  
    3333#include "Descriptors/AtomIdDescriptor.hpp"
    3434#include "Descriptors/MoleculeIdDescriptor.hpp"
    35 #include "LinearAlgebra/Matrix.hpp"
     35#include "Matrix.hpp"
    3636#include "Box.hpp"
    3737
     
    556556  {
    557557    stringstream sstr;
    558     sstr << (*iter).first << "\t" << (*iter).second->name;
     558    sstr << (*iter).first << "\t" << (*iter).second->getName();
    559559    inputBox->addItem(QString(sstr.str().c_str()),QVariant((*iter).first));
    560560  }
     
    591591  {
    592592    stringstream sstr;
    593     sstr << (*iter).first << "\t" << (*iter).second->name;
     593    sstr << (*iter).first << "\t" << (*iter).second->getName();
    594594    inputBox->addItem(QString(sstr.str().c_str()),QVariant((*iter).first));
    595595  }
     
    818818}
    819819
    820 ElementQTQueryPipe::ElementQTQueryPipe(element **_content, QTDialog *_dialog, QComboBox *_theBox) :
     820ElementQTQueryPipe::ElementQTQueryPipe(const element **_content, QTDialog *_dialog, QComboBox *_theBox) :
    821821  content(_content),
    822822  dialog(_dialog),
     
    834834}
    835835
    836 ElementsQTQueryPipe::ElementsQTQueryPipe(std::vector<element *>*_content, QTDialog *_dialog, QComboBox *_theBox) :
     836ElementsQTQueryPipe::ElementsQTQueryPipe(std::vector<const element *>*_content, QTDialog *_dialog, QComboBox *_theBox) :
    837837  content(_content),
    838838  dialog(_dialog),
     
    846846  QVariant data = theBox->itemData(newIndex);
    847847  int idx = data.toInt();
    848   element *elemental = World::getInstance().getPeriode()->FindElement(idx);
     848  const element *elemental = World::getInstance().getPeriode()->FindElement(idx);
    849849  if(elemental)
    850850    (*content).push_back(elemental);
Note: See TracChangeset for help on using the changeset viewer.