mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-03 06:08:39 +00:00
refactor: 适配3.0.2的电源接口
This commit is contained in:
parent
723b4efb0f
commit
8e8df04213
5 changed files with 7 additions and 7 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue