fix: screenShot

1. 隐藏未实现的功能
2. 截屏功能直接将一帧视频帧保存为jpg即可,不在controller中实现
This commit is contained in:
rankun 2020-01-19 21:39:32 +08:00
parent 22ec2eaf61
commit 19223a8478
3 changed files with 4 additions and 10 deletions

View file

@ -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) {

View file

@ -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);

View file

@ -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()