This repository has been archived on 2020-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Files
IndoorMap/misc/LINTView.cpp
kazu e774a66f34 added first version of LINT to the editor
fixed issue with incorrect stairs
2017-03-20 14:45:11 +01:00

26 lines
447 B
C++

#include "LINTView.h"
#include <QStringListModel>
#include <Indoor/floorplan/v2/FloorplanLINT.h>
LINTView::LINTView() {
mdl = new QStringListModel();
setModel(mdl);
}
void LINTView::update(Floorplan::IndoorMap* map) {
QStringList lst;
Floorplan::LINT::Issues issues = Floorplan::LINT::check(map);
for (const Floorplan::LINT::Issue& i : issues) {
QString str(i.asString().c_str());
lst.append(str);
}
mdl->setStringList(lst);
}