fix(解决编译问题): 解决编译问题

This commit is contained in:
zoujunnan@kylinos.cn 2022-07-20 17:19:25 +08:00
parent f55b3e707f
commit 8945dd4d4f
8 changed files with 15 additions and 6 deletions

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
kylin-photo-viewer (1.3.0.3-ok4) yangtze; urgency=medium
* BUG号
* 需求号:无
* 其他改动说明:解决编译问题
* 影响域:无其他影响
-- zoujunnan <zoujunnan@kylinos.cn> Wed, 20 Jul 2022 18:43:28 +0800
kylin-photo-viewer (1.3.0.3-ok3) yangtze; urgency=medium
* 适配wayland标题栏和窗口居中合并主线代码

View File

@ -13,11 +13,11 @@
namespace kabase
{
class Log
class KabaseLog
{
public:
Log() = default;
~Log() = default;
KabaseLog() = default;
~KabaseLog() = default;
static void logOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{
@ -50,4 +50,4 @@ public:
}
#endif
#endif

View File

@ -21,14 +21,14 @@
#include <QLoggingCategory>
#include "view/openimage.h"
#include <window_management.hpp>
#include "log.hpp"
#include "kabaselog.hpp"
#include "windowmanage.hpp"
int main(int argc, char *argv[])
{
//适配4K屏以及分数缩放
kdk::kabase::WindowManagement::setScalingProperties();
//日志输出
qInstallMessageHandler(::kabase::Log::logOutput);
qInstallMessageHandler(::kabase::KabaseLog::logOutput);
QApplication a(argc, argv);
qApp->setWindowIcon(QIcon::fromTheme("kylin-photo-viewer", QIcon(":/res/res/kyview_logo.png")));
QLoggingCategory::setFilterRules(QStringLiteral("qt.qml.binding.removal.info=true"));

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.