Skip to content

Commit 9eed451

Browse files
fix(shot): add event log for OCR and scroll screenshot in toolbar
- Add B4 event log when clicking OCR button or pressing Alt+O - Add B5 event log when clicking scroll screenshot button or pressing Alt+I bug: https://pms.uniontech.com/bug-view-358389.html https://pms.uniontech.com/bug-view-358387.html
1 parent 951ad59 commit 9eed451

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

src/main_window.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3750,6 +3750,13 @@ void MainWindow::changeShotToolEvent(const QString &func)
37503750
qCDebug(dsrApp) << "MainWindow::changeShotToolEvent >> func: " << func;
37513751
// 调用ocr功能时先截图后,退出截图录屏,将刚截图的图片串递到ocr识别界面;
37523752
if (func == "ocr") {
3753+
{
3754+
QJsonObject obj{{"tid", EventLogUtils::Start},
3755+
{"version", QCoreApplication::applicationVersion()},
3756+
{"mode", 1},
3757+
{"startup_mode", "B4"}};
3758+
EventLogUtils::get().writeLogs(obj);
3759+
}
37533760
// 调起OCR识别界面, 传入截图路径
37543761
m_ocrInterface = new OcrInterface("com.deepin.Ocr", "/com/deepin/Ocr", QDBusConnection::sessionBus(), this);
37553762
int delayTime = 0;
@@ -3787,6 +3794,13 @@ void MainWindow::changeShotToolEvent(const QString &func)
37873794
QTimer::singleShot(2, [=] { exitApp(); });
37883795

37893796
} else if (func == "scrollShot") { // 点击滚动截图
3797+
{
3798+
QJsonObject obj{{"tid", EventLogUtils::Start},
3799+
{"version", QCoreApplication::applicationVersion()},
3800+
{"mode", 1},
3801+
{"startup_mode", "B5"}};
3802+
EventLogUtils::get().writeLogs(obj);
3803+
}
37903804
// 捕捉区域的固件不显示
37913805
drawDragPoint = false;
37923806
m_toolBar->hide();

0 commit comments

Comments
 (0)