mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-27 08:05:42 +00:00
Remove dependency on Qt in qrenderdoc python module
* The main addition here apart from some extra stubs is a new rdc type for date time objects. * Although the module doesn't do anything and is only used for docs reflection it is desirable to not have to link against Qt as this can cause problems when linking the module without unresolved symbols.
This commit is contained in:
@@ -179,6 +179,23 @@ void PersistantConfig::applyValues(const QVariantMap &values)
|
||||
RENAMED_SETTING(QDateTime, DegradedLog_LastUpdate, DegradedCapture_LastUpdate);
|
||||
}
|
||||
|
||||
int PersistantConfig::RemoteHostCount()
|
||||
{
|
||||
return RemoteHosts.count();
|
||||
}
|
||||
|
||||
RemoteHost *PersistantConfig::GetRemoteHost(int index)
|
||||
{
|
||||
if(index < 0 || index >= RemoteHostCount())
|
||||
return NULL;
|
||||
return RemoteHosts[index];
|
||||
}
|
||||
|
||||
void PersistantConfig::AddRemoteHost(RemoteHost host)
|
||||
{
|
||||
RemoteHosts.push_back(new RemoteHost(host));
|
||||
}
|
||||
|
||||
void PersistantConfig::AddAndroidHosts()
|
||||
{
|
||||
QMap<rdcstr, RemoteHost *> oldHosts;
|
||||
@@ -402,6 +419,11 @@ BugReport::BugReport(const QVariant &var)
|
||||
unreadUpdates = map[lit("unreadUpdates")].toBool();
|
||||
}
|
||||
|
||||
rdcstr BugReport::URL() const
|
||||
{
|
||||
return lit(BUGREPORT_URL "/report/%1").arg(QString(reportId));
|
||||
}
|
||||
|
||||
BugReport::operator QVariant() const
|
||||
{
|
||||
QVariantMap map;
|
||||
|
||||
Reference in New Issue
Block a user