!38 close-cd: #I64SIW【音乐】本地删除音频后,播放历史列表中此音频信息未置灰

Merge pull request !38 from 刘佳阳/openkylin/yangtze
This commit is contained in:
刘佳阳 2023-09-04 04:59:43 +00:00 committed by Gitee
commit 90da852685
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 12 additions and 3 deletions

View File

@ -355,7 +355,7 @@ void TableHistory::setHighlight(int index)
QFileInfo info(pathList[i]);
if(info.exists() == false) {
for (int j=0; j<4; j++){
m_model->m_model.item(i,j)->setForeground(QBrush(QColor(Qt::gray)));
m_model->m_model.item(i,j)->setForeground(QBrush(QColor(Qt::gray))); //置灰
m_model->m_model.item(i,j)->setData(tr("path does not exist"),Qt::ToolTipRole);
}
}
@ -386,7 +386,7 @@ void TableHistory::setHighlight(int index)
QFileInfo info(pathList[i]);
if(info.exists() == false) {
for (int j=0; j<4; j++){
m_model->m_model.item(i,j)->setForeground(QBrush(QColor(Qt::gray)));
m_model->m_model.item(i,j)->setForeground(QBrush(QColor(Qt::gray))); //置灰
m_model->m_model.item(i,j)->setData(tr("path does not exist"),Qt::ToolTipRole);
}

View File

@ -995,7 +995,7 @@ void TableOne::setHightLightAndSelect()
QFileInfo info(pathList[i]);
if(info.exists() == false) {
for (int j=0; j<4; j++){
m_model->m_model.item(i,j)->setForeground(QBrush(QColor(Qt::gray)));
m_model->m_model.item(i,j)->setForeground(QBrush(QColor(Qt::gray))); //置灰
m_model->m_model.item(i,j)->setData(tr("path does not exist"),Qt::ToolTipRole);
m_model->m_model.item(i,j)->setData(QString("nofile"),Qt::StatusTipRole);
}

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
kylin-music (1.1.0.47-ok6~0736) yangtze; urgency=medium
* [BUG]
- close-cd: #I64SIW【音乐】本地删除音频后播放历史列表中此音频信息未置灰
* 其他: 无
-- liujiayang <liujiayang@kylinos.cn> Mon, 04 Sep 2023 12:02:26 +0800
kylin-music (1.1.0.47-ok6~0735) yangtze; urgency=medium
* [BUG]