|
|
|
@ -189,6 +189,7 @@ void VideoForm::installShortcut()
|
|
|
|
|
|
|
|
|
|
|
|
// switchFullScreen
|
|
|
|
// switchFullScreen
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+f"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+f"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
@ -198,14 +199,17 @@ void VideoForm::installShortcut()
|
|
|
|
|
|
|
|
|
|
|
|
// resizeSquare
|
|
|
|
// resizeSquare
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+g"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+g"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() { resizeSquare(); });
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() { resizeSquare(); });
|
|
|
|
|
|
|
|
|
|
|
|
// removeBlackRect
|
|
|
|
// removeBlackRect
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+x"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+w"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() { removeBlackRect(); });
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() { removeBlackRect(); });
|
|
|
|
|
|
|
|
|
|
|
|
// postGoHome
|
|
|
|
// postGoHome
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+h"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+h"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
@ -215,6 +219,7 @@ void VideoForm::installShortcut()
|
|
|
|
|
|
|
|
|
|
|
|
// postGoBack
|
|
|
|
// postGoBack
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+b"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+b"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
@ -224,6 +229,7 @@ void VideoForm::installShortcut()
|
|
|
|
|
|
|
|
|
|
|
|
// postAppSwitch
|
|
|
|
// postAppSwitch
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+s"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+s"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
@ -233,6 +239,7 @@ void VideoForm::installShortcut()
|
|
|
|
|
|
|
|
|
|
|
|
// postGoMenu
|
|
|
|
// postGoMenu
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+m"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+m"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
@ -260,6 +267,7 @@ void VideoForm::installShortcut()
|
|
|
|
|
|
|
|
|
|
|
|
// postPower
|
|
|
|
// postPower
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+p"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+p"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
@ -269,6 +277,7 @@ void VideoForm::installShortcut()
|
|
|
|
|
|
|
|
|
|
|
|
// setScreenPowerMode(ControlMsg::SPM_OFF)
|
|
|
|
// setScreenPowerMode(ControlMsg::SPM_OFF)
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+o"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+o"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
@ -278,6 +287,7 @@ void VideoForm::installShortcut()
|
|
|
|
|
|
|
|
|
|
|
|
// expandNotificationPanel
|
|
|
|
// expandNotificationPanel
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+n"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+n"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
@ -287,6 +297,7 @@ void VideoForm::installShortcut()
|
|
|
|
|
|
|
|
|
|
|
|
// collapseNotificationPanel
|
|
|
|
// collapseNotificationPanel
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+Shift+n"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+Shift+n"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
@ -294,31 +305,44 @@ void VideoForm::installShortcut()
|
|
|
|
emit m_device->collapseNotificationPanel();
|
|
|
|
emit m_device->collapseNotificationPanel();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// requestDeviceClipboard
|
|
|
|
// copy
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+c"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+c"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
|
|
|
|
if (!m_device) {
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
emit m_device->postCopy();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// cut
|
|
|
|
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+x"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
emit m_device->requestDeviceClipboard();
|
|
|
|
emit m_device->postCut();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// clipboardPaste
|
|
|
|
// clipboardPaste
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+v"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+v"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
emit m_device->clipboardPaste();
|
|
|
|
emit m_device->setDeviceClipboard();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// setDeviceClipboard
|
|
|
|
// setDeviceClipboard
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+Shift+v"), this);
|
|
|
|
shortcut = new QShortcut(QKeySequence("Ctrl+Shift+v"), this);
|
|
|
|
|
|
|
|
shortcut->setAutoRepeat(false);
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
connect(shortcut, &QShortcut::activated, this, [this]() {
|
|
|
|
if (!m_device) {
|
|
|
|
if (!m_device) {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
emit m_device->setDeviceClipboard();
|
|
|
|
emit m_device->clipboardPaste();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|