paysages3d/src/interface/modeler/quickapp/WaterModeler.cpp

20 lines
407 B
C++
Raw Normal View History

2014-08-28 13:09:47 +00:00
#include "WaterModeler.h"
#include "MainModelerWindow.h"
WaterModeler::WaterModeler(MainModelerWindow *main):
main(main)
{
QObject *item = main->findQmlObject("water_level");
if (item)
{
connect(item, SIGNAL(changed(double)), this, SLOT(waterLevelChanged(double)));
}
}
2015-08-13 21:59:27 +00:00
void WaterModeler::waterLevelChanged(double)
2014-08-28 13:09:47 +00:00
{
// TODO
//qDebug() << "water level : " << value;
}