mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
feat: remove unnecessary ';'
This commit is contained in:
parent
5240f52c9d
commit
b1f7611a87
7 changed files with 15 additions and 13 deletions
|
@ -131,8 +131,10 @@ void InputConvertGame::sendTouchUpEvent(int id, QPointF pos)
|
|||
void InputConvertGame::sendTouchEvent(int id, QPointF pos, AndroidMotioneventAction action)
|
||||
{
|
||||
if (0 > id || MULTI_TOUCH_MAX_NUM-1 < id) {
|
||||
Q_ASSERT(0);
|
||||
return;
|
||||
}
|
||||
qDebug() << "id:" << id << " pos:" << pos << " action" << action;
|
||||
ControlMsg* controlMsg = new ControlMsg(ControlMsg::CMT_INJECT_TOUCH);
|
||||
if (!controlMsg) {
|
||||
return;
|
||||
|
@ -417,7 +419,7 @@ void InputConvertGame::stopMouseMoveTimer()
|
|||
|
||||
void InputConvertGame::mouseMoveStartTouch(const QMouseEvent* from)
|
||||
{
|
||||
Q_UNUSED(from);
|
||||
Q_UNUSED(from)
|
||||
if (!m_mouseMovePress) {
|
||||
QPointF mouseMoveStartPos = m_keyMap.getMouseMoveMap().startPos;
|
||||
//moveCursorToStart(from);
|
||||
|
|
|
@ -83,8 +83,8 @@ void InputConvertNormal::wheelEvent(const QWheelEvent *from, const QSize& frameS
|
|||
|
||||
void InputConvertNormal::keyEvent(const QKeyEvent *from, const QSize& frameSize, const QSize& showSize)
|
||||
{
|
||||
Q_UNUSED(frameSize);
|
||||
Q_UNUSED(showSize);
|
||||
Q_UNUSED(frameSize)
|
||||
Q_UNUSED(showSize)
|
||||
if (!from) {
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -97,7 +97,7 @@ void Device::initSignals()
|
|||
}
|
||||
if (m_videoForm) {
|
||||
connect(m_videoForm, &VideoForm::destroyed, this, [this](QObject *obj){
|
||||
Q_UNUSED(obj);
|
||||
Q_UNUSED(obj)
|
||||
deleteLater();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -23,8 +23,8 @@ Stream::~Stream()
|
|||
}
|
||||
|
||||
static void avLogCallback(void *avcl, int level, const char *fmt, va_list vl) {
|
||||
Q_UNUSED(avcl);
|
||||
Q_UNUSED(vl);
|
||||
Q_UNUSED(avcl)
|
||||
Q_UNUSED(vl)
|
||||
|
||||
QString localFmt = QString::fromUtf8(fmt);
|
||||
localFmt.prepend("[FFmpeg] ");
|
||||
|
|
|
@ -52,7 +52,7 @@ void ToolForm::mousePressEvent(QMouseEvent *event)
|
|||
|
||||
void ToolForm::mouseReleaseEvent(QMouseEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(event)
|
||||
}
|
||||
|
||||
void ToolForm::mouseMoveEvent(QMouseEvent *event)
|
||||
|
|
|
@ -68,7 +68,7 @@ void VideoForm::onGrabCursor(bool grab)
|
|||
#if defined(Q_OS_WIN32) || defined(Q_OS_OSX)
|
||||
MouseTap::getInstance()->enableMouseEventTap(ui->videoWidget, grab);
|
||||
#else
|
||||
Q_UNUSED(grab);
|
||||
Q_UNUSED(grab)
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -364,7 +364,7 @@ void VideoForm::keyReleaseEvent(QKeyEvent *event)
|
|||
|
||||
void VideoForm::paintEvent(QPaintEvent *paint)
|
||||
{
|
||||
Q_UNUSED(paint);
|
||||
Q_UNUSED(paint)
|
||||
QStyleOption opt;
|
||||
opt.init(this);
|
||||
QPainter p(this);
|
||||
|
@ -373,7 +373,7 @@ void VideoForm::paintEvent(QPaintEvent *paint)
|
|||
|
||||
void VideoForm::showEvent(QShowEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(event)
|
||||
if (!isFullScreen()) {
|
||||
showToolForm();
|
||||
}
|
||||
|
@ -386,12 +386,12 @@ void VideoForm::dragEnterEvent(QDragEnterEvent *event)
|
|||
|
||||
void VideoForm::dragMoveEvent(QDragMoveEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(event)
|
||||
}
|
||||
|
||||
void VideoForm::dragLeaveEvent(QDragLeaveEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(event)
|
||||
}
|
||||
|
||||
void VideoForm::dropEvent(QDropEvent *event)
|
||||
|
|
|
@ -88,7 +88,7 @@ bool MagneticWidget::eventFilter(QObject *watched, QEvent *event)
|
|||
|
||||
void MagneticWidget::moveEvent(QMoveEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(event)
|
||||
if (!m_adsorbWidget) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue