mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Port yuzu commit: "yuzu/CMakeLists: Disable implicit QString co… (#5074)
* yuzu/CMakeLists: Disable implicit QString conversions Now that all of our code is compilable with implicit QString conversions, we can enforce it at compile-time by disabling them. Co-Authored-By: Mat M. <lioncash@users.noreply.github.com> * citra_qt: Remove lots of implicit QString conversions Co-authored-by: Mat M. <mathew1800@gmail.com>
This commit is contained in:
		
							parent
							
								
									b53b4bfb17
								
							
						
					
					
						commit
						f106e76132
					
				
					 12 changed files with 55 additions and 41 deletions
				
			
		|  | @ -36,14 +36,16 @@ const std::string StillImageCameraFactory::GetFilePath() const { | |||
|         return last_path; | ||||
|     } | ||||
|     QList<QByteArray> types = QImageReader::supportedImageFormats(); | ||||
|     QList<QString> temp_filters; | ||||
|     QStringList temp_filters; | ||||
|     for (QByteArray type : types) { | ||||
|         temp_filters << QString("*." + QString(type)); | ||||
|         temp_filters << QStringLiteral("*.%1").arg(QString::fromUtf8(type)); | ||||
|     } | ||||
| 
 | ||||
|     QString filter = QObject::tr("Supported image files (%1)").arg(temp_filters.join(" ")); | ||||
|     QString filter = | ||||
|         QObject::tr("Supported image files (%1)").arg(temp_filters.join(QLatin1Char{' '})); | ||||
|     last_path = | ||||
|         QFileDialog::getOpenFileName(nullptr, QObject::tr("Open File"), ".", filter).toStdString(); | ||||
|         QFileDialog::getOpenFileName(nullptr, QObject::tr("Open File"), QStringLiteral("."), filter) | ||||
|             .toStdString(); | ||||
|     return last_path; | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue