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