mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-03 22:28:39 +00:00
commit
ec5f413a38
6 changed files with 8 additions and 8 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit eb8b7837b18d4d2c13276d90884feb7f1c37d7ba
|
Subproject commit 8e2cc1f3b17ad888b567ce05c5fe125bcaca0dd5
|
|
@ -262,7 +262,7 @@ void GroupController::postCut()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GroupController::setScreenPowerMode(bool open)
|
void GroupController::setDisplayPower(bool on)
|
||||||
{
|
{
|
||||||
for (const auto& serial : m_devices) {
|
for (const auto& serial : m_devices) {
|
||||||
if (true == isHost(serial)) {
|
if (true == isHost(serial)) {
|
||||||
|
@ -273,7 +273,7 @@ void GroupController::setScreenPowerMode(bool open)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
device->setScreenPowerMode(open);
|
device->setDisplayPower(on);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ private:
|
||||||
void postVolumeDown() override;
|
void postVolumeDown() override;
|
||||||
void postCopy() override;
|
void postCopy() override;
|
||||||
void postCut() override;
|
void postCut() override;
|
||||||
void setScreenPowerMode(bool open) override;
|
void setDisplayPower(bool on) override;
|
||||||
void expandNotificationPanel() override;
|
void expandNotificationPanel() override;
|
||||||
void collapsePanel() override;
|
void collapsePanel() override;
|
||||||
void postBackOrScreenOn(bool down) override;
|
void postBackOrScreenOn(bool down) override;
|
||||||
|
|
|
@ -186,7 +186,7 @@ void ToolForm::on_closeScreenBtn_clicked()
|
||||||
if (!device) {
|
if (!device) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
device->setScreenPowerMode(false);
|
device->setDisplayPower(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ToolForm::on_expandNotifyBtn_clicked()
|
void ToolForm::on_expandNotifyBtn_clicked()
|
||||||
|
@ -221,5 +221,5 @@ void ToolForm::on_openScreenBtn_clicked()
|
||||||
if (!device) {
|
if (!device) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
device->setScreenPowerMode(true);
|
device->setDisplayPower(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -290,7 +290,7 @@ void VideoForm::installShortcut()
|
||||||
if (!device) {
|
if (!device) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
emit device->setScreenPowerMode(false);
|
emit device->setDisplayPower(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
// expandNotificationPanel
|
// expandNotificationPanel
|
||||||
|
|
|
@ -58,7 +58,7 @@ fi
|
||||||
mkdir $build_path
|
mkdir $build_path
|
||||||
cd $build_path
|
cd $build_path
|
||||||
|
|
||||||
cmake_params="-DCMAKE_PREFIX_PATH=$qt_cmake_path -DCMAKE_BUILD_TYPE=$build_mode -DCMAKE_OSX_ARCHITECTURES=x86_64"
|
cmake_params="-DCMAKE_PREFIX_PATH=$qt_cmake_path -DCMAKE_BUILD_TYPE=$build_mode -DCMAKE_OSX_ARCHITECTURES=x86_64 -D CMAKE_OSX_DEPLOYMENT_TARGET=10.10"
|
||||||
cmake $cmake_params ../..
|
cmake $cmake_params ../..
|
||||||
if [ $? -ne 0 ] ;then
|
if [ $? -ne 0 ] ;then
|
||||||
echo "cmake failed"
|
echo "cmake failed"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue