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)));
}
}

View file

@ -133,7 +133,7 @@ bool UpdaterPrivate::StartUpdateCheck() {
connect(main_process,
static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), this,
&UpdaterPrivate::UpdaterReady, Qt::QueuedConnection);
connect(main_process, static_cast<void (QProcess::*)(QProcess::ProcessError)>(&QProcess::error),
connect(main_process, static_cast<void (QProcess::*)(QProcess::ProcessError)>(&QProcess::errorOccurred),
this, &UpdaterPrivate::UpdaterError, Qt::QueuedConnection);
main_process->start(QIODevice::ReadOnly);