Add bounded mouse zoom and panning to live stream viewer

This commit is contained in:
evgeny committed 2026-10-17 01:49:35 +02:00
1 parent 93dc21f3c8
commit 1dc26bf715
5 files changed
+306 -4

No files matched your search

+1 -1
View File
@@ -90,7 +90,7 @@ StreamPlayerWindow::StreamPlayerWindow(uint64_t group, uint64_t source, uint64_t
setWindowTitle(text("Live stream: %1").arg(name)); resize(800, 500);
auto* layout = new QVBoxLayout(this); layout->addWidget(new QLabel(name, this));
m_status = new QLabel(text("Connecting…"), this); layout->addWidget(m_status);
m_render = new VideoRenderWidget(this); layout->addWidget(m_render, 1);
m_render = new VideoRenderWidget(this, true); layout->addWidget(m_render, 1);
auto* controls = new QHBoxLayout;
auto* volume = new QSlider(Qt::Horizontal, this); volume->setRange(0, 100); volume->setValue(100);
volume->setAccessibleName(text("Stream volume")); controls->addWidget(new QLabel(text("Volume"), this)); controls->addWidget(volume);