changed QSqlTableModel into QSqlRelationalTableModel
added eventhandler for log entry widget