adjustrange takes care of its own minimum and maximu as stl doesnt know about undefs and qvariants