mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(Qt) Use string append() where possible
This commit is contained in:
parent
97e5e6beee
commit
ab877c429f
@ -1745,20 +1745,29 @@ void ShaderParamsDialog::onShaderLoadPresetClicked()
|
||||
if (!menu_shader)
|
||||
return;
|
||||
|
||||
filter = "Shader Preset (";
|
||||
filter.append("Shader Preset (");
|
||||
|
||||
/* NOTE: Maybe we should have a way to get a list
|
||||
* of all shader types instead of hard-coding this? */
|
||||
if (video_shader_is_supported(RARCH_SHADER_CG))
|
||||
filter += QLatin1Literal(" *") + ".cgp";
|
||||
{
|
||||
filter.append(QLatin1Literal(" *"));
|
||||
filter.append(".cgp");
|
||||
}
|
||||
|
||||
if (video_shader_is_supported(RARCH_SHADER_GLSL))
|
||||
filter += QLatin1Literal(" *") + ".glslp";
|
||||
{
|
||||
filter.append(QLatin1Literal(" *"));
|
||||
filter.append(".glslp");
|
||||
}
|
||||
|
||||
if (video_shader_is_supported(RARCH_SHADER_SLANG))
|
||||
filter += QLatin1Literal(" *") + ".slangp";
|
||||
{
|
||||
filter.append(QLatin1Literal(" *"));
|
||||
filter.append(".slangp");
|
||||
}
|
||||
|
||||
filter += ")";
|
||||
filter.append(")");
|
||||
path = QFileDialog::getOpenFileName(
|
||||
this,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_VIDEO_SHADER_PRESET),
|
||||
@ -1895,20 +1904,20 @@ void ShaderParamsDialog::onShaderAddPassClicked()
|
||||
if (!menu_shader)
|
||||
return;
|
||||
|
||||
filter = "Shader (";
|
||||
filter.append("Shader (");
|
||||
|
||||
/* NOTE: Maybe we should have a way to get a list
|
||||
* of all shader types instead of hard-coding this? */
|
||||
if (video_shader_is_supported(RARCH_SHADER_CG))
|
||||
filter += QLatin1Literal(" *.cg");
|
||||
filter.append(QLatin1Literal(" *.cg"));
|
||||
|
||||
if (video_shader_is_supported(RARCH_SHADER_GLSL))
|
||||
filter += QLatin1Literal(" *.glsl");
|
||||
filter.append(QLatin1Literal(" *.glsl"));
|
||||
|
||||
if (video_shader_is_supported(RARCH_SHADER_SLANG))
|
||||
filter += QLatin1Literal(" *.slang");
|
||||
filter.append(QLatin1Literal(" *.slang"));
|
||||
|
||||
filter += ")";
|
||||
filter.append(")");
|
||||
|
||||
path = QFileDialog::getOpenFileName(
|
||||
this,
|
||||
|
@ -945,9 +945,10 @@ void MainWindow::downloadNextPlaylistThumbnail(
|
||||
m_playlistThumbnailDownloadProgressDialog->setValue(m_playlistThumbnailDownloadProgressDialog->maximum() - m_pendingPlaylistThumbnails.count());
|
||||
|
||||
{
|
||||
QString labelText = QString(msg_hash_to_str(MSG_DOWNLOADING)) + "...\n";
|
||||
QString labelText = QString(msg_hash_to_str(MSG_DOWNLOADING)) + "...\n";
|
||||
QString labelText2 = QString(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_DOWNLOAD_PLAYLIST_THUMBNAIL_PROGRESS)).arg(m_downloadedThumbnails).arg(m_failedThumbnails);
|
||||
|
||||
labelText += QString(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_DOWNLOAD_PLAYLIST_THUMBNAIL_PROGRESS)).arg(m_downloadedThumbnails).arg(m_failedThumbnails);
|
||||
labelText.append(labelText2);
|
||||
|
||||
m_playlistThumbnailDownloadProgressDialog->setLabelText(labelText);
|
||||
}
|
||||
|
@ -454,7 +454,7 @@ void MainWindow::addFilesToPlaylist(QStringList files)
|
||||
if (selectedDatabase.isEmpty())
|
||||
selectedDatabase = QFileInfo(currentPlaylistPath).fileName();
|
||||
else
|
||||
selectedDatabase += ".lpl";
|
||||
selectedDatabase.append(".lpl");
|
||||
|
||||
dialog.reset(new QProgressDialog(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_GATHERING_LIST_OF_FILES), "Cancel", 0, 0, this));
|
||||
dialog->setWindowModality(Qt::ApplicationModal);
|
||||
|
Loading…
x
Reference in New Issue
Block a user