mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-05 06:58:40 +00:00
update:全屏模式不显示工具窗口
This commit is contained in:
parent
093335d3e7
commit
e7f8663ce2
3 changed files with 19 additions and 1 deletions
|
@ -1,4 +1,7 @@
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
|
#include <QDebug>
|
||||||
|
#include <QShowEvent>
|
||||||
|
#include <QHideEvent>
|
||||||
|
|
||||||
#include "toolform.h"
|
#include "toolform.h"
|
||||||
#include "ui_toolform.h"
|
#include "ui_toolform.h"
|
||||||
|
@ -58,6 +61,16 @@ void ToolForm::mouseMoveEvent(QMouseEvent *event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ToolForm::showEvent(QShowEvent *event)
|
||||||
|
{
|
||||||
|
qDebug() << "show event";
|
||||||
|
}
|
||||||
|
|
||||||
|
void ToolForm::hideEvent(QHideEvent *event)
|
||||||
|
{
|
||||||
|
qDebug() << "hide event";
|
||||||
|
}
|
||||||
|
|
||||||
void ToolForm::on_fullScreenBtn_clicked()
|
void ToolForm::on_fullScreenBtn_clicked()
|
||||||
{
|
{
|
||||||
if (m_videoForm) {
|
if (m_videoForm) {
|
||||||
|
|
|
@ -24,6 +24,9 @@ protected:
|
||||||
void mouseReleaseEvent(QMouseEvent *event);
|
void mouseReleaseEvent(QMouseEvent *event);
|
||||||
void mouseMoveEvent(QMouseEvent *event);
|
void mouseMoveEvent(QMouseEvent *event);
|
||||||
|
|
||||||
|
void showEvent(QShowEvent *event);
|
||||||
|
void hideEvent(QHideEvent *event);
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void on_fullScreenBtn_clicked();
|
void on_fullScreenBtn_clicked();
|
||||||
|
|
||||||
|
|
|
@ -432,7 +432,9 @@ void VideoForm::paintEvent(QPaintEvent *paint)
|
||||||
void VideoForm::showEvent(QShowEvent *event)
|
void VideoForm::showEvent(QShowEvent *event)
|
||||||
{
|
{
|
||||||
Q_UNUSED(event);
|
Q_UNUSED(event);
|
||||||
showToolFrom();
|
if (!isFullScreen()) {
|
||||||
|
showToolFrom();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void VideoForm::dragEnterEvent(QDragEnterEvent *event)
|
void VideoForm::dragEnterEvent(QDragEnterEvent *event)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue