mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-07 14:35:48 +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:
43 files changed
+754
-559
No files matched your search
@@ -88,7 +88,7 @@ CaptureSettings::operator QVariant() const
|
||||
ret[lit("CmdLine")] = CmdLine;
|
||||
|
||||
QVariantList env;
|
||||
for(int i = 0; i < Environment.size(); i++)
|
||||
for(int i = 0; i < Environment.count(); i++)
|
||||
env.push_back(EnvModToVariant(Environment[i]));
|
||||
ret[lit("Environment")] = env;
|
||||
|
||||
@@ -144,7 +144,7 @@ CaptureSettings::CaptureSettings(const QVariant &v)
|
||||
Options.DebugOutputMute = opts[lit("DebugOutputMute")].toBool();
|
||||
}
|
||||
|
||||
QString configFilePath(const QString &filename)
|
||||
rdcstr configFilePath(const rdcstr &filename)
|
||||
{
|
||||
QString path = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
|
||||
|
||||
|
||||
Reference in new issue
Block a user