fix(解决编译问题): 解决编译问题
This commit is contained in:
parent
f55b3e707f
commit
8945dd4d4f
|
@ -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标题栏和窗口居中,合并主线代码
|
||||
|
|
|
@ -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
|
|
@ -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.
Loading…
Reference in New Issue