Use QString rather than std::to_string

loadfix
cc9cii 10 years ago
parent e5dd8d06a0
commit 54a6897df8

@ -214,8 +214,8 @@ void CSVRender::PagedWorldspaceWidget::mouseReleaseEvent (QMouseEvent *event)
int columnIndex = int columnIndex =
references.findColumnIndex(CSMWorld::Columns::ColumnId_ReferenceableId); references.findColumnIndex(CSMWorld::Columns::ColumnId_ReferenceableId);
std::cout << "index: " + std::to_string(index) std::cout << "index: " + QString::number(index).toStdString()
+", column index: " + std::to_string(columnIndex) << std::endl; +", column index: " + QString::number(columnIndex).toStdString() << std::endl;
} }
std::map<CSMWorld::CellCoordinates, Cell *>::iterator iter (mCells.begin()); std::map<CSMWorld::CellCoordinates, Cell *>::iterator iter (mCells.begin());
@ -223,7 +223,7 @@ void CSVRender::PagedWorldspaceWidget::mouseReleaseEvent (QMouseEvent *event)
{ {
if(iter->first.getId("dummy") == cellref.mCell) if(iter->first.getId("dummy") == cellref.mCell)
{ {
std::cout << "Cell changed" << std::endl; std::cout << "Cell found" << std::endl;
break; break;
} }
++iter; ++iter;

Loading…
Cancel
Save