Changeset View
Changeset View
Standalone View
Standalone View
src/monitor/monitor.cpp
Show First 20 Lines • Show All 166 Lines • ▼ Show 20 Line(s) | 150 | { | |||
---|---|---|---|---|---|
167 | m_videoWidget->setAcceptDrops(true); | 167 | m_videoWidget->setAcceptDrops(true); | ||
168 | auto *leventEater = new QuickEventEater(this); | 168 | auto *leventEater = new QuickEventEater(this); | ||
169 | m_videoWidget->installEventFilter(leventEater); | 169 | m_videoWidget->installEventFilter(leventEater); | ||
170 | connect(leventEater, &QuickEventEater::addEffect, this, &Monitor::slotAddEffect); | 170 | connect(leventEater, &QuickEventEater::addEffect, this, &Monitor::slotAddEffect); | ||
171 | 171 | | |||
172 | m_qmlManager = new QmlManager(m_glMonitor); | 172 | m_qmlManager = new QmlManager(m_glMonitor); | ||
173 | connect(m_qmlManager, &QmlManager::effectChanged, this, &Monitor::effectChanged); | 173 | connect(m_qmlManager, &QmlManager::effectChanged, this, &Monitor::effectChanged); | ||
174 | connect(m_qmlManager, &QmlManager::effectPointsChanged, this, &Monitor::effectPointsChanged); | 174 | connect(m_qmlManager, &QmlManager::effectPointsChanged, this, &Monitor::effectPointsChanged); | ||
175 | connect(m_qmlManager, &QmlManager::opacityChanged, this, &Monitor::opacityChanged); | ||||
176 | connect(m_qmlManager, &QmlManager::angleChanged, this, &Monitor::angleChanged); | ||||
175 | 177 | | |||
176 | auto *monitorEventEater = new QuickMonitorEventEater(this); | 178 | auto *monitorEventEater = new QuickMonitorEventEater(this); | ||
177 | m_glWidget->installEventFilter(monitorEventEater); | 179 | m_glWidget->installEventFilter(monitorEventEater); | ||
178 | connect(monitorEventEater, &QuickMonitorEventEater::doKeyPressEvent, this, &Monitor::doKeyPressEvent); | 180 | connect(monitorEventEater, &QuickMonitorEventEater::doKeyPressEvent, this, &Monitor::doKeyPressEvent); | ||
179 | 181 | | |||
180 | glayout->addWidget(m_videoWidget, 0, 0); | 182 | glayout->addWidget(m_videoWidget, 0, 0); | ||
181 | m_verticalScroll = new QScrollBar(Qt::Vertical); | 183 | m_verticalScroll = new QScrollBar(Qt::Vertical); | ||
182 | glayout->addWidget(m_verticalScroll, 0, 1); | 184 | glayout->addWidget(m_verticalScroll, 0, 1); | ||
▲ Show 20 Lines • Show All 1963 Lines • Show Last 20 Lines |