resolve warnings of deprecated Qt members

This commit is contained in:
Vitor Kiguchi 2020-07-22 21:41:10 -03:00
parent 6f45b402e7
commit e68aeedc3d
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include <QBrush>
#include <QString>
#include <QTreeWidgetItem>
#include <fmt/format.h>
@ -90,7 +91,7 @@ void IPCRecorderWidget::OnEntryUpdated(IPCDebugger::RequestRecord record) {
auto* item = ui->main->invisibleRootItem()->child(row_id);
for (int column = 0; column < item->columnCount(); ++column) {
item->setBackgroundColor(column, QColor::fromRgb(255, 0, 0));
item->setBackground(column, QBrush(QColor::fromRgb(255, 0, 0)));
}
}