use defines for real number instead of doubles (depending on whether building using doubles or floats)
remove old ui_* (Qt 4.x) and make example Qt 5 compatible