|
@@ -87,9 +87,9 @@ void MainAndSecondaryCamerasWnd::initFrom()
|
|
|
GetCurrentSelectSlots(lastGroupId, lastIndex);
|
|
|
}
|
|
|
|
|
|
- if(index == 1)
|
|
|
+ if(lastLastIndex == 1)
|
|
|
{
|
|
|
- GetCurrentSelectSlots(groupId, index);
|
|
|
+ GetCurrentSelectSlots(lastLastGroupId, lastLastIndex);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -458,6 +458,7 @@ void MainAndSecondaryCamerasWnd::timerEvent(QTimerEvent* event)
|
|
|
|
|
|
void MainAndSecondaryCamerasWnd::GetCurrentSelectSlots(int groupId, int nIndex)
|
|
|
{
|
|
|
+
|
|
|
int nOnClickGroupId = groupId - 1; // 这里new 有些是0,有些是1 暂时选择
|
|
|
if (m_pMainCameraBind == nullptr || m_allGroup.size() < nOnClickGroupId)
|
|
|
{
|
|
@@ -601,7 +602,7 @@ void MainAndSecondaryCamerasWnd::GetUpDataImageShowSignals4(const QPixmap& image
|
|
|
QSize size_left = ui->viewwidgetgroup_R->getOperatewidget()->size();
|
|
|
QPixmap scaledPixmap_left = imageData.scaled(size_left, Qt::KeepAspectRatio, Qt::SmoothTransformation);
|
|
|
ui->viewwidgetgroup_R->getOperatewidget()->setPixmap(scaledPixmap_left);
|
|
|
- //m_lastRightPixmap = imageData;
|
|
|
+ m_lastRightPixmap = imageData;
|
|
|
}
|
|
|
|
|
|
|