Fixed terrain painting unwanted scrolling on show

This commit is contained in:
Michaël Lemaire 2013-06-03 22:03:52 +02:00
parent 41cc8787ac
commit eb837ef3bd
4 changed files with 5 additions and 5 deletions

View file

@ -24,7 +24,7 @@ win32:LIBS += ../libpaysages.a ../libpaysages_exploring.a -lDevIL -lILU -lILUT -
TRANSLATIONS = $$PROJECT_PATH/data/i18n/paysages_fr.ts TRANSLATIONS = $$PROJECT_PATH/data/i18n/paysages_fr.ts
HEADERS += \ HEADERS += \
widgetheightmap.h \ terrain/widgetheightmap.h \
widgetexplorer.h \ widgetexplorer.h \
widgetcurveeditor.h \ widgetcurveeditor.h \
tools.h \ tools.h \
@ -73,7 +73,7 @@ HEADERS += \
common/previewrenderer.h common/previewrenderer.h
SOURCES += \ SOURCES += \
widgetheightmap.cpp \ terrain/widgetheightmap.cpp \
widgetexplorer.cpp \ widgetexplorer.cpp \
widgetcurveeditor.cpp \ widgetcurveeditor.cpp \
tools.cpp \ tools.cpp \

View file

@ -789,7 +789,7 @@
<customwidget> <customwidget>
<class>WidgetHeightMap</class> <class>WidgetHeightMap</class>
<extends>QWidget</extends> <extends>QWidget</extends>
<header>widgetheightmap.h</header> <header>terrain/widgetheightmap.h</header>
<container>1</container> <container>1</container>
<slots> <slots>
<signal>heightmapChanged()</signal> <signal>heightmapChanged()</signal>

View file

@ -35,8 +35,8 @@ QGLWidget(parent)
_average_frame_time = 0.0; _average_frame_time = 0.0;
_last_brush_action = 0; _last_brush_action = 0;
_last_mouse_x = 0; _last_mouse_x = 250;
_last_mouse_y = 0; _last_mouse_y = 250;
_last_time = QDateTime::currentDateTime(); _last_time = QDateTime::currentDateTime();
_mouse_moved = false; _mouse_moved = false;