Merge pull request #393 from Hummer12007/fix-entries

Fixed multiple history entries, fixes #338
Add missing QLatin1String
Simplify
Make package install prefix consistent with cmake install prefix
Merge pull request #395 from xyz32/RPM_CPack_Fix

Make package install prefix consistent with cmake install prefix
Handle mouse release event after middle clicking link to prevent text pasting under X based platforms, fixes #397
Rename