mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
fix: screenShot
1. 隐藏未实现的功能 2. 截屏功能直接将一帧视频帧保存为jpg即可,不在controller中实现
This commit is contained in:
parent
22ec2eaf61
commit
19223a8478
3 changed files with 4 additions and 10 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -20,6 +20,9 @@ ToolForm::ToolForm(QWidget* adsorbWidget, AdsorbPositions adsorbPos)
|
|||
m_videoForm = dynamic_cast<VideoForm*>(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()
|
||||
|
|
Loading…
Add table
Reference in a new issue