From 7ba0138cfccaa04101d9b5b3cff6feabd241a3d9 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Wed, 27 Jun 2018 00:08:26 +0200 Subject: [PATCH] Fixed build on Qt5. --- src/lay/lay/laySaltDownloadManager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lay/lay/laySaltDownloadManager.cc b/src/lay/lay/laySaltDownloadManager.cc index 4fe9c7b2b..868902b2d 100644 --- a/src/lay/lay/laySaltDownloadManager.cc +++ b/src/lay/lay/laySaltDownloadManager.cc @@ -102,7 +102,7 @@ ConfirmationDialog::mark_error (const std::string &name) list->scrollToItem (i->second); for (int c = 0; c < list->columnCount (); ++c) { i->second->setData (c, Qt::BackgroundColorRole, QColor (255, 224, 244)); - i->second->setData (c, Qt::TextColorRole, Qt::black); + i->second->setData (c, Qt::TextColorRole, QColor (Qt::black)); } i->second->setData (1, Qt::DisplayRole, tr ("ERROR")); } @@ -118,7 +118,7 @@ ConfirmationDialog::mark_success (const std::string &name) list->scrollToItem (i->second); for (int c = 0; c < list->columnCount (); ++c) { i->second->setData (c, Qt::BackgroundColorRole, QColor (160, 255, 160)); - i->second->setData (c, Qt::TextColorRole, Qt::black); + i->second->setData (c, Qt::TextColorRole, QColor (Qt::black)); } i->second->setData (1, Qt::DisplayRole, tr ("INSTALLED")); }