mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Use rdc types instead of Qt containers in public QRenderDoc interface
* This is to support python bindings - the pyside implementation of QVector, QString, etc is not available to SWIG, so SWIG treates these all as opaque types. * Rather than trying to set up bindings that work for rdcarray and QList/QVector, or implementing separate bindings, we instead just say that the public interface must use the rdc types. In most cases they seamlessly convert to/from Qt types anyway. * In a couple of places we use an array of pairs instead of a map. In future we probably want an rdcdict or rdcmap with proper dict bindings in python.
This commit is contained in:
@@ -243,9 +243,9 @@ void SettingsDialog::on_chooseSearchPaths_clicked()
|
||||
OrderedListEditor listEd(tr("Shader debug info search paths"), tr("Search Path"),
|
||||
BrowseMode::Folder, this);
|
||||
|
||||
listEd.setItems(m_Ctx.Config()
|
||||
.GetConfigSetting(lit("shader.debug.searchPaths"))
|
||||
.split(QLatin1Char(';'), QString::SkipEmptyParts));
|
||||
QString setting = m_Ctx.Config().GetConfigSetting("shader.debug.searchPaths");
|
||||
|
||||
listEd.setItems(setting.split(QLatin1Char(';'), QString::SkipEmptyParts));
|
||||
|
||||
int res = RDDialog::show(&listEd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user