mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +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:
@@ -77,7 +77,7 @@ void CommentView::OnCaptureClosed()
|
||||
|
||||
void CommentView::OnCaptureLoaded()
|
||||
{
|
||||
m_commentsEditor->setText(m_Ctx.GetNotes(lit("comments")).toUtf8().data());
|
||||
m_commentsEditor->setText(m_Ctx.GetNotes("comments").c_str());
|
||||
m_commentsEditor->emptyUndoBuffer();
|
||||
m_ignoreModifications = false;
|
||||
}
|
||||
@@ -85,7 +85,7 @@ void CommentView::OnCaptureLoaded()
|
||||
void CommentView::OnEventChanged(uint32_t eventID)
|
||||
{
|
||||
QString oldText = QString::fromUtf8(m_commentsEditor->getText(m_commentsEditor->textLength() + 1));
|
||||
QString newText = m_Ctx.GetNotes(lit("comments"));
|
||||
QString newText = m_Ctx.GetNotes("comments");
|
||||
|
||||
if(oldText != newText)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user