Added:
- AMLightweightScanInfoCollection::getScanIdFromThumbnailId(int) ~
Helper function which, when passed a thumbnailId, will return the scan
which this thumbnail belongs to (returns -1 if thumbnail does not belong
to a scan)

Altered:
- AMLightweightScanInfoCollection::onDbItemAdded() ~ Now includes check
for db item added to thumbnails table. If it is it obtains the relevant
scanId from the getScanIdFromThumbnailId() and emits the signal:
- scanThumbnailAdded(int) ~ Signal to indicate a thumbnail has been
added to the scan with the provided id.
- AMLightweightScanInfoModel ~ Now connects its collections
scanThumbnailAdded() signal to the scanUpdated slot.
Added:
- QLayouts to AMSamplePositionPre2013ViewActionsWidget which didn't come
across in the transfer of member variables. I've noticed these don't
seem to end up in the ui_xxxx.h file. Just another reason why torching
these things is a good idea.

Altered:
-
AMSamplePositionPre2013ViewActionsWidget::AMSamplePositionPre2013ViewActionsWidget()
~ Brought across the setupUi and translateUi code from the original
ui_xxxx.h file.
Merge branch 'Issue881' into Issue823
Iain's additions to get thumbnail drawing working when a scan finishes. There's a leftover blank thumbnail from when the scan is started that still needs to be removed. There also appears to be an edge case where updates don't happen properly if you have the dataview open when the scan finishes.
Iain's additional updates to the thumbnail adding (and removing) issue.
Altered:
- AMLightweightScanInfoCollection::onDbItemRemoved() ~ Now properly removed thumbnails for the last updated scan
- AMLightweightScanInfoCollection::onDbItemAdded() ~ Partially complete re-adding thumbnails for the last updated scan, doesn't work yet
Altered:
- AMLightweightScanInfo::resetThumbnails() to clearThumbnails() ~ Now
simply clears the thumbnails collection for the scan.
- AMLightweightScanInfoCollection::onDbItemAdded() ~ Now emits a
scanInfoUpdated signal whenever a scan had a thumbnail added.
- AMLightweightScanInfoCollection::onDbItemRemoved() ~ Now calls the
scan info's clearThumbnails() function when a scan's thumbnail is
removed and emits a scanUpdated() signal afterwards.
- AMLightweightScanInfoModel::onScanThumbnailAboutToBeAdded() ~ Calls
beginResetModel() instead of beginInsertRows()
- AMLightweightScanInfoModel::onScanThumbnailAdded() ~ Calls
endResetModel() instead of endInsertRows()
- AMScanThumbnailView::rowsAboutToBeRemoved() ~ Changed from
rowsRemoved() to conform with the structure of QAbstractItemView.
Altered:
- The scanThumbnailAboutToBeAdded() signal chain to remove the passing
of the indices as it is not needed by the final call to the model (which
now uses beginResetModel() instead of beginInsertRows(...)
- Removed calls to qDebug()
Fixed minor merge conflict over blank line.
Merge branch 'master' into Issue823
Merge pull request #934 from acquaman/Issue823

Tested on my computer using SXRMB Acquaman and appears to be working. Good work @iainworkman