Accept a const QWidget* in RichResource functions

This commit is contained in:
baldurk
2017-11-21 16:56:32 +00:00
parent bb5ae999f5
commit 17c2eb37ef
4 changed files with 11 additions and 9 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ QString ConfigFilePath(const QString &filename)
return QDir::cleanPath(dir.absoluteFilePath(filename));
}
ICaptureContext *getCaptureContext(QWidget *widget)
ICaptureContext *getCaptureContext(const QWidget *widget)
{
void *ctxptr = NULL;
+1 -1
View File
@@ -1794,4 +1794,4 @@ This may return ``None`` if no capture context can be found.
:return: The capture context associated with this widget, if one unambiguously exists.
:rtype: CaptureContext
)");
ICaptureContext *getCaptureContext(QWidget *widget);
ICaptureContext *getCaptureContext(const QWidget *widget);