diff --git a/QtScrcpy/device/controller/controller.cpp b/QtScrcpy/device/controller/controller.cpp index f9ce327..9874c99 100644 --- a/QtScrcpy/device/controller/controller.cpp +++ b/QtScrcpy/device/controller/controller.cpp @@ -169,12 +169,6 @@ void Controller::setScreenPowerMode(ControlMsg::ScreenPowerMode mode) postControlMsg(controlMsg); } -void Controller::screenShot() -{ - // TODO: - qDebug() << "screen shot"; -} - void Controller::mouseEvent(const QMouseEvent *from, const QSize &frameSize, const QSize &showSize) { if (m_inputConvert) { diff --git a/QtScrcpy/device/controller/controller.h b/QtScrcpy/device/controller/controller.h index 14550ba..d6b1730 100644 --- a/QtScrcpy/device/controller/controller.h +++ b/QtScrcpy/device/controller/controller.h @@ -38,7 +38,6 @@ public: void clipboardPaste(); void postTextInput(QString& text); void setScreenPowerMode(ControlMsg::ScreenPowerMode mode); - void screenShot(); // for input convert void mouseEvent(const QMouseEvent* from, const QSize& frameSize, const QSize& showSize); diff --git a/QtScrcpy/device/ui/toolform.cpp b/QtScrcpy/device/ui/toolform.cpp index 33641dc..2b38cc3 100644 --- a/QtScrcpy/device/ui/toolform.cpp +++ b/QtScrcpy/device/ui/toolform.cpp @@ -20,6 +20,9 @@ ToolForm::ToolForm(QWidget* adsorbWidget, AdsorbPositions adsorbPos) m_videoForm = dynamic_cast(adsorbWidget); initStyle(); + + // TODO + ui->screenShotBtn->hide(); } ToolForm::~ToolForm() @@ -118,9 +121,7 @@ void ToolForm::on_powerBtn_clicked() void ToolForm::on_screenShotBtn_clicked() { - if (m_videoForm && m_videoForm->getController()) { - m_videoForm->getController()->screenShot(); - } + // TODO } void ToolForm::on_volumeUpBtn_clicked()