29 void syncToMappings(
const std::vector<OutputMapping>& mappings);
30 void setPreviewContent(PreviewContent mode);
31 void setInputResolution(QSize sz);
32 void setSyncPositions(
bool sync);
35 std::function<void(
int,
bool)> onFullscreenToggled;
39 void rebuildGlobalTestCard();
41 std::vector<PreviewWidget*> m_windows;
42 PreviewContent m_content{PreviewContent::Black};
43 QSize m_inputResolution{1920, 1080};
44 QImage m_globalTestCard;
45 bool m_syncPositions{
true};
50 explicit PreviewWidget(
int index, PreviewContent content, QWidget* parent =
nullptr);
52 void setOutputIndex(
int idx);
53 void setPreviewContent(PreviewContent mode);
54 void setOutputResolution(QSize sz);
56 void setSourceRect(QRectF rect);
58 void setGlobalTestCard(
const QImage& img);
61 std::function<void(
int,
bool)> onFullscreenToggled;
64 void paintEvent(QPaintEvent* event)
override;
65 void mouseDoubleClickEvent(QMouseEvent* event)
override;
69 PreviewContent m_content{PreviewContent::Black};
70 QSize m_resolution{1280, 720};
71 QRectF m_sourceRect{0, 0, 1, 1};
72 QImage m_globalTestCard;