- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Views/Qt4/QtInfoBox.cpp
r5dcb3c r2b596f 57 57 58 58 setMinimumWidth(200); 59 setMinimumHeight(2 20);59 setMinimumHeight(200); 60 60 currentPage = 0; 61 61 … … 178 178 addInfo(this, "Mass", QString("%1").arg(atomRef->getMass())); 179 179 addInfo(this, "Charge", QString("%1").arg(atomRef->getCharge())); 180 addInfo(this, "Position", QString(toString(atomRef->getPosition()).c_str())); 180 181 addInfo(this, "Bonds", QString("%1").arg(atomRef->getListOfBonds().size())); 181 addInfo(this, "Position x", QString(toString(atomRef->getPosition()[0]).c_str()));182 addInfo(this, "Position y", QString(toString(atomRef->getPosition()[1]).c_str()));183 addInfo(this, "Position z", QString(toString(atomRef->getPosition()[2]).c_str()));184 182 } 185 183 … … 220 218 addInfo(this, "Formula", QString(mol->getFormula().toString().c_str())); 221 219 addInfo(this, "Atoms", QString("%1").arg(mol->getAtomCount())); 222 addInfo(this, "NonHydrogens", QString("%1").arg(mol->getNoNonHydrogen()));223 220 addInfo(this, "Bonds", QString("%1").arg(mol->getBondCount())); 224 const Vector molCenter = mol->DetermineCenterOfAll();225 addInfo(this, "Center x", QString("%1").arg(molCenter[0]));226 addInfo(this, "Center y", QString("%1").arg(molCenter[1]));227 addInfo(this, "Center z", QString("%1").arg(molCenter[2]));228 221 } 229 222
Note:
See TracChangeset
for help on using the changeset viewer.