mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-03 06:08:39 +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);
|
postControlMsg(controlMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Controller::screenShot()
|
|
||||||
{
|
|
||||||
// TODO:
|
|
||||||
qDebug() << "screen shot";
|
|
||||||
}
|
|
||||||
|
|
||||||
void Controller::mouseEvent(const QMouseEvent *from, const QSize &frameSize, const QSize &showSize)
|
void Controller::mouseEvent(const QMouseEvent *from, const QSize &frameSize, const QSize &showSize)
|
||||||
{
|
{
|
||||||
if (m_inputConvert) {
|
if (m_inputConvert) {
|
||||||
|
|
|
@ -38,7 +38,6 @@ public:
|
||||||
void clipboardPaste();
|
void clipboardPaste();
|
||||||
void postTextInput(QString& text);
|
void postTextInput(QString& text);
|
||||||
void setScreenPowerMode(ControlMsg::ScreenPowerMode mode);
|
void setScreenPowerMode(ControlMsg::ScreenPowerMode mode);
|
||||||
void screenShot();
|
|
||||||
|
|
||||||
// for input convert
|
// for input convert
|
||||||
void mouseEvent(const QMouseEvent* from, const QSize& frameSize, const QSize& showSize);
|
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);
|
m_videoForm = dynamic_cast<VideoForm*>(adsorbWidget);
|
||||||
|
|
||||||
initStyle();
|
initStyle();
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
ui->screenShotBtn->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
ToolForm::~ToolForm()
|
ToolForm::~ToolForm()
|
||||||
|
@ -118,9 +121,7 @@ void ToolForm::on_powerBtn_clicked()
|
||||||
|
|
||||||
void ToolForm::on_screenShotBtn_clicked()
|
void ToolForm::on_screenShotBtn_clicked()
|
||||||
{
|
{
|
||||||
if (m_videoForm && m_videoForm->getController()) {
|
// TODO
|
||||||
m_videoForm->getController()->screenShot();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ToolForm::on_volumeUpBtn_clicked()
|
void ToolForm::on_volumeUpBtn_clicked()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue