新增视频播放mdk内核

This commit is contained in:
feiyangqingyun
2023-12-15 12:55:42 +08:00
parent 123a5b4bed
commit 2806faa6a6
565 changed files with 4102 additions and 118681 deletions

View File

@@ -19,7 +19,8 @@ VideoPanel::VideoPanel(QWidget *parent) : QWidget(parent)
bool VideoPanel::eventFilter(QObject *watched, QEvent *event)
{
if (event->type() == QEvent::MouseButtonDblClick) {
int type = event->type();
if (type == QEvent::MouseButtonDblClick) {
QLabel *widget = (QLabel *) watched;
if (!videoMax) {
videoMax = true;
@@ -32,7 +33,7 @@ bool VideoPanel::eventFilter(QObject *watched, QEvent *event)
}
widget->setFocus();
} else if (event->type() == QEvent::MouseButtonPress) {
} else if (type == QEvent::MouseButtonPress) {
QMouseEvent *mouseEvent = (QMouseEvent *)event;
if (mouseEvent->button() == Qt::RightButton) {
videoMenu->exec(QCursor::pos());