linuxdeepin / deepin-log-viewer Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
深度日志收集工具:deepin-log-viewer
出错的代码文件:deepin-log-viewer/application/loglistview.cpp
错误行:353行、364行
BUG描述:软件主界面“启动事件”图标与“开关机事件”图标重复
BUG分析:深度日志收集工具主界面左侧导航按钮(共7枚),由14份*.svg图片作为图标,其中start.svg被调用两次,而kwin.svg未被正确调用,进而导致图标重复。
BUG修复建议:开关机事件行()图标修改为kwin.svg,检查365-367行代码执行情况。
`
if (item) {
setCustomFont(item);
if (item->data(ITEM_DATE_ROLE).toString() == JOUR_TREE_DATA) {
_itemIcon = icon + "system.svg";
} else if (item->data(ITEM_DATE_ROLE).toString() == KERN_TREE_DATA) {
_itemIcon = icon + "core.svg";
} else if (item->data(ITEM_DATE_ROLE).toString() == BOOT_TREE_DATA) {
_itemIcon = icon + "start.svg";
} else if (item->data(ITEM_DATE_ROLE).toString() == DPKG_TREE_DATA) {
_itemIcon = icon + "d.svg";
} else if (item->data(ITEM_DATE_ROLE).toString() == XORG_TREE_DATA) {
_itemIcon = icon + "x.svg";
} else if (item->data(ITEM_DATE_ROLE).toString() == APP_TREE_DATA) {
_itemIcon = icon + "application.svg";
} else if (item->data(ITEM_DATE_ROLE).toString() == LAST_TREE_DATA) {
_itemIcon = icon + "start.svg";
} else if (item->data(ITEM_DATE_ROLE).toString() == KWIN_TREE_DATA) {
_itemIcon = icon + "kwin.svg";
}
if (currentItem != nullptr && item == currentItem) {
_itemIcon.replace(".svg", "_checked.svg");
}
item->setIcon(QIcon(_itemIcon));
item->setData(_itemIcon, ICON_DATA);
}`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.