From e68aeedc3d20ad33426810d317931434f2fefd07 Mon Sep 17 00:00:00 2001 From: Vitor Kiguchi Date: Wed, 22 Jul 2020 21:41:10 -0300 Subject: [PATCH] resolve warnings of deprecated Qt members --- src/citra_qt/debugger/ipc/recorder.cpp | 3 ++- src/citra_qt/updater/updater.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/citra_qt/debugger/ipc/recorder.cpp b/src/citra_qt/debugger/ipc/recorder.cpp index ef634d750..4226e74fe 100644 --- a/src/citra_qt/debugger/ipc/recorder.cpp +++ b/src/citra_qt/debugger/ipc/recorder.cpp @@ -2,6 +2,7 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include #include #include #include @@ -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))); } } diff --git a/src/citra_qt/updater/updater.cpp b/src/citra_qt/updater/updater.cpp index 8701eee7b..cafffd2b0 100644 --- a/src/citra_qt/updater/updater.cpp +++ b/src/citra_qt/updater/updater.cpp @@ -133,7 +133,7 @@ bool UpdaterPrivate::StartUpdateCheck() { connect(main_process, static_cast(&QProcess::finished), this, &UpdaterPrivate::UpdaterReady, Qt::QueuedConnection); - connect(main_process, static_cast(&QProcess::error), + connect(main_process, static_cast(&QProcess::errorOccurred), this, &UpdaterPrivate::UpdaterError, Qt::QueuedConnection); main_process->start(QIODevice::ReadOnly);