actually the those if(...); weren't supposed to be if statements in the first place, since the result is always true at that point of code anyway.
# -------------------------------------------------
# Project created by QtCreator 2010-11-27T22:18:20
# -------------------------------------------------
TARGET = drawMapTest
TEMPLATE = app
SOURCES += main.cpp \
mainwindow.cpp \
drawmapscene.cpp \
qaspectratiolayout.cpp \
drawmapwidget.cpp
HEADERS += mainwindow.h \
drawmapscene.h \
qaspectratiolayout.h \
drawmapwidget.h
FORMS += mainwindow.ui