mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	resolve warnings of deprecated Qt members
This commit is contained in:
		
							parent
							
								
									6f45b402e7
								
							
						
					
					
						commit
						e68aeedc3d
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -2,6 +2,7 @@ | ||||||
| // Licensed under GPLv2 or any later version
 | // Licensed under GPLv2 or any later version
 | ||||||
| // Refer to the license.txt file included.
 | // Refer to the license.txt file included.
 | ||||||
| 
 | 
 | ||||||
|  | #include <QBrush> | ||||||
| #include <QString> | #include <QString> | ||||||
| #include <QTreeWidgetItem> | #include <QTreeWidgetItem> | ||||||
| #include <fmt/format.h> | #include <fmt/format.h> | ||||||
|  | @ -90,7 +91,7 @@ void IPCRecorderWidget::OnEntryUpdated(IPCDebugger::RequestRecord record) { | ||||||
| 
 | 
 | ||||||
|         auto* item = ui->main->invisibleRootItem()->child(row_id); |         auto* item = ui->main->invisibleRootItem()->child(row_id); | ||||||
|         for (int column = 0; column < item->columnCount(); ++column) { |         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))); | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -133,7 +133,7 @@ bool UpdaterPrivate::StartUpdateCheck() { | ||||||
|     connect(main_process, |     connect(main_process, | ||||||
|             static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), this, |             static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), this, | ||||||
|             &UpdaterPrivate::UpdaterReady, Qt::QueuedConnection); |             &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); |             this, &UpdaterPrivate::UpdaterError, Qt::QueuedConnection); | ||||||
| 
 | 
 | ||||||
|     main_process->start(QIODevice::ReadOnly); |     main_process->start(QIODevice::ReadOnly); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue