Fix date column color after update the date

This commit is contained in:
Aurélie Delhaie
2023-01-29 14:12:34 +01:00
parent 693532a802
commit 961dbd8aa0
2 changed files with 8 additions and 2 deletions

View File

@@ -4,8 +4,8 @@ greaterThan(QT_MAJOR_VERSION, 5): QT += widgets
CONFIG += c++17
win32:VERSION = 0.2.0.0 # major.minor.patch.build
else:VERSION = 0.2.0 # major.minor.patch
win32:VERSION = 0.2.1.0 # major.minor.patch.build
else:VERSION = 0.2.1 # major.minor.patch
DEFINES += APP_VERSION=\"\\\"$${VERSION}\\\"\"
DEFINES += APP_NAME=\"\\\"TaskBoard\\\"\"

View File

@@ -556,6 +556,12 @@ void MainWindow::updateTaskRow(QTreeWidgetItem *item, Task t)
fgColor.setStyle(Qt::BrushStyle::SolidPattern);
item->setForeground(3, fgColor);
}
else
{
QBrush fgColor = item->foreground(3);
fgColor.setStyle(Qt::BrushStyle::NoBrush);
item->setForeground(3, fgColor);
}
if (!t.getStatusUUID().isEmpty())
{