* refactor some functions * do not use mdi view of active document as parent for spin box because this can be the wrong widget * fix compiler warnings of unused variables * fix typo * handle Qt::Key_Return in event filter * fix lint error