mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
Modify the code as required.
This commit is contained in:
parent
680fa05b59
commit
985c57a198
3 changed files with 5 additions and 5 deletions
|
@ -21,7 +21,7 @@
|
|||
#include "ui_videoform.h"
|
||||
#include "videoform.h"
|
||||
|
||||
VideoForm::VideoForm(bool framelessWindow, bool skin, bool showToolbar,QWidget *parent) : QWidget(parent), ui(new Ui::videoForm), m_skin(skin)
|
||||
VideoForm::VideoForm(bool framelessWindow, bool skin, bool showToolbar, QWidget *parent) : QWidget(parent), ui(new Ui::videoForm), m_skin(skin)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
initUI();
|
||||
|
@ -480,7 +480,7 @@ void VideoForm::switchFullScreen()
|
|||
if (m_skin) {
|
||||
updateStyleSheet(m_frameSize.height() > m_frameSize.width());
|
||||
}
|
||||
showToolForm(true);
|
||||
showToolForm(this->show_toolbar);
|
||||
#ifdef Q_OS_WIN32
|
||||
::SetThreadExecutionState(ES_CONTINUOUS);
|
||||
#endif
|
||||
|
@ -722,7 +722,7 @@ void VideoForm::paintEvent(QPaintEvent *paint)
|
|||
void VideoForm::showEvent(QShowEvent *event)
|
||||
{
|
||||
Q_UNUSED(event)
|
||||
if (!isFullScreen()) {
|
||||
if (!isFullScreen() && this->show_toolbar) {
|
||||
QTimer::singleShot(500, this, [this](){
|
||||
showToolForm(this->show_toolbar);
|
||||
});
|
||||
|
|
|
@ -19,7 +19,7 @@ class VideoForm : public QWidget, public qsc::DeviceObserver
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit VideoForm(bool framelessWindow = false, bool skin = true, bool showToolBar = false,QWidget *parent = 0);
|
||||
explicit VideoForm(bool framelessWindow = false, bool skin = true, bool showToolBar = true, QWidget *parent = 0);
|
||||
~VideoForm();
|
||||
|
||||
void staysOnTop(bool top = true);
|
||||
|
|
|
@ -166,7 +166,7 @@ void Config::setUserBootConfig(const UserBootConfig &config)
|
|||
m_userData->setValue(COMMON_KEEP_ALIVE_KEY, config.keepAlive);
|
||||
m_userData->setValue(COMMON_SIMPLE_MODE_KEY, config.simpleMode);
|
||||
m_userData->setValue(COMMON_AUTO_UPDATE_DEVICE_KEY, config.autoUpdateDevice);
|
||||
m_userData->setValue(COMMON_SHOW_TOOLBAR_KEY,config.showToolbar);
|
||||
m_userData->setValue(COMMON_SHOW_TOOLBAR_KEY, config.showToolbar);
|
||||
m_userData->endGroup();
|
||||
m_userData->sync();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue