@@ -1527,8 +1527,6 @@ void MainWindow::initScreenRecorder()
15271527void MainWindow::initScrollShot ()
15281528{
15291529 qCInfo (dsrApp) << __LINE__ << __FUNCTION__ << " 正在初始化滚动截图..." ;
1530- QJsonObject obj{{" tid" , EventLogUtils::StartScrollShot}, {" version" , QCoreApplication::applicationVersion ()}};
1531- EventLogUtils::get ().writeLogs (obj);
15321530 m_zoomIndicator->hideMagnifier ();
15331531
15341532#ifdef OCR_SCROLL_FLAGE_ON
@@ -2252,8 +2250,6 @@ void MainWindow::topWindow()
22522250 return ;
22532251 }
22542252
2255- QJsonObject obj{{" tid" , EventLogUtils::StartScreenShot}, {" version" , QCoreApplication::applicationVersion ()}};
2256- EventLogUtils::get ().writeLogs (obj);
22572253 int t_windowCount = DWindowManagerHelper::instance ()->allWindowIdList ().size ();
22582254 DForeignWindow *prewindow = nullptr ;
22592255 for (int i = t_windowCount - 1 ; i >= 0 ; i--) {
@@ -3734,8 +3730,6 @@ void MainWindow::changeShotToolEvent(const QString &func)
37343730 qCDebug (dsrApp) << " MainWindow::changeShotToolEvent >> func: " << func;
37353731 // 调用ocr功能时先截图后,退出截图录屏,将刚截图的图片串递到ocr识别界面;
37363732 if (func == " ocr" ) {
3737- QJsonObject obj{{" tid" , EventLogUtils::StartOcr}, {" version" , QCoreApplication::applicationVersion ()}};
3738- EventLogUtils::get ().writeLogs (obj);
37393733 // 调起OCR识别界面, 传入截图路径
37403734 m_ocrInterface = new OcrInterface (" com.deepin.Ocr" , " /com/deepin/Ocr" , QDBusConnection::sessionBus (), this );
37413735 int delayTime = 0 ;
@@ -3757,6 +3751,13 @@ void MainWindow::changeShotToolEvent(const QString &func)
37573751 });
37583752 }
37593753 } else if (func == " pinScreenshots" ) {
3754+ {
3755+ QJsonObject obj{{" tid" , EventLogUtils::Start},
3756+ {" version" , QCoreApplication::applicationVersion ()},
3757+ {" mode" , 1 },
3758+ {" startup_mode" , " B8" }};
3759+ EventLogUtils::get ().writeLogs (obj);
3760+ }
37603761 m_functionType = status::pinscreenshots;
37613762 m_pinInterface = new PinScreenShotsInterface (
37623763 " com.deepin.PinScreenShots" , " /com/deepin/PinScreenShots" , QDBusConnection::sessionBus (), this );
@@ -3780,6 +3781,13 @@ void MainWindow::changeShotToolEvent(const QString &func)
37803781 } else if (func == " record" || func == " shot" ) {
37813782 changeFunctionButton (func);
37823783 } else {
3784+ if (func == QStringLiteral (" aiassistant" )) {
3785+ QJsonObject obj{{" tid" , EventLogUtils::Start},
3786+ {" version" , QCoreApplication::applicationVersion ()},
3787+ {" mode" , 1 },
3788+ {" startup_mode" , " B9" }};
3789+ EventLogUtils::get ().writeLogs (obj);
3790+ }
37833791 m_currentToolShape = func;
37843792 // if (!m_sideBar->isVisible()) {
37853793 updateSideBarPos ();
@@ -3805,9 +3813,6 @@ void MainWindow::prepareScreenshot()
38053813{
38063814 qCInfo (dsrApp) << __FUNCTION__ << __LINE__ << " 正在准备截图..." ;
38073815 // 双击截图保存按钮会触发重复进入
3808- QJsonObject obj{{" tid" , EventLogUtils::StartScreenShot}, {" version" , QCoreApplication::applicationVersion ()}};
3809- if (m_functionType == status::shot)
3810- EventLogUtils::get ().writeLogs (obj);
38113816 static bool isSaving = false ;
38123817 if (isSaving)
38133818 return ;
@@ -4046,9 +4051,6 @@ void MainWindow::saveScreenShot()
40464051{
40474052 qCInfo (dsrApp) << __FUNCTION__ << __LINE__ << " 正在执行截图保存流程..." ;
40484053 // 双击截图保存按钮会触发重复进入
4049- QJsonObject obj{{" tid" , EventLogUtils::StartScreenShot}, {" version" , QCoreApplication::applicationVersion ()}};
4050- if (m_functionType == status::shot)
4051- EventLogUtils::get ().writeLogs (obj);
40524054 static bool isSaving = false ;
40534055 if (isSaving)
40544056 return ;
@@ -7012,8 +7014,6 @@ void MainWindow::addCursorToImage()
70127014void MainWindow::shotFullScreen (bool isFull)
70137015{
70147016 qCInfo (dsrApp) << __FUNCTION__ << __LINE__ << " 正在截取全屏..." ;
7015- QJsonObject obj{{" tid" , EventLogUtils::StartScreenShot}, {" version" , QCoreApplication::applicationVersion ()}};
7016- EventLogUtils::get ().writeLogs (obj);
70177017 QRect target = m_backgroundRect;
70187018 qCDebug (dsrApp) << " m_backgroundRect" << m_backgroundRect;
70197019 if (Utils::isWaylandMode) {
0 commit comments