From 75a0f24336e038f7f2380745abf4639c6d94229f Mon Sep 17 00:00:00 2001 From: peijiankang Date: Mon, 27 Jun 2022 14:20:06 +0800 Subject: [PATCH] add log --- debian/control | 2 +- debian/source/format | 2 +- kylin-screenshot.pro | 2 +- src/main.cpp | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/control b/debian/control index 2c99e66..4ac86d9 100755 --- a/debian/control +++ b/debian/control @@ -3,7 +3,7 @@ Section: graphics Priority: optional Maintainer: Kylin Team Uploaders: handsome_feng -Build-Depends: debhelper-compat (= 13), +Build-Depends: debhelper-compat (= 12), qt5-qmake, qtbase5-dev, qttools5-dev-tools, diff --git a/debian/source/format b/debian/source/format index 163aaf8..89ae9db 100755 --- a/debian/source/format +++ b/debian/source/format @@ -1 +1 @@ -3.0 (quilt) +3.0 (native) diff --git a/kylin-screenshot.pro b/kylin-screenshot.pro index 3ffbc60..69458fb 100755 --- a/kylin-screenshot.pro +++ b/kylin-screenshot.pro @@ -6,7 +6,7 @@ win32:LIBS += -luser32 -lshell32 -LIBS += -lavutil -lavformat -lavcodec -lswscale -lX11 -lXext -lXtst -lXfixes -lXinerama -lpulse +LIBS += -lukui-log4qt -lavutil -lavformat -lavcodec -lswscale -lX11 -lXext -lXtst -lXfixes -lXinerama -lpulse TAG_VERSION = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags) isEmpty(TAG_VERSION){ diff --git a/src/main.cpp b/src/main.cpp index fc06999..d90685c 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -28,6 +28,7 @@ #include #include #include "src/common/CommandLineOptions.h" +#include #if defined(Q_OS_LINUX) || defined(Q_OS_UNIX) #include "src/core/flameshotdbusadapter.h" @@ -57,6 +58,7 @@ int main(int argc, char *argv[]) { // required for the button serialization // TODO: change to QVector in v1.0 + initUkuiLog4qt("kylin-screenshot"); if (getScreenWidth() > 2560) { #if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)) QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); -- 2.33.0