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 setTransform(
int rotation,
bool mirrorX,
bool mirrorY);
59 void setGlobalTestCard(
const QImage& img);
62 std::function<void(
int,
bool)> onFullscreenToggled;
65 void paintEvent(QPaintEvent* event)
override;
66 void mouseDoubleClickEvent(QMouseEvent* event)
override;
70 PreviewContent m_content{PreviewContent::Black};
71 QSize m_resolution{1280, 720};
72 QRectF m_sourceRect{0, 0, 1, 1};
73 QImage m_globalTestCard;
80 bool m_mirrorX{
false};
81 bool m_mirrorY{
false};