Просмотр исходного кода

Update PythonQt decorator of ctkErrorLogContext to include set/get for file

Jean-Christophe Fillion-Robin лет назад: 10
Родитель
Сommit
ee78c08196
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      Libs/Core/ctkCorePythonQtDecorators.h

+ 9 - 0
Libs/Core/ctkCorePythonQtDecorators.h

@@ -194,6 +194,15 @@ public Q_SLOTS:
     return context->Line;
     }
 
+  void setFile(ctkErrorLogContext* context, const QString& file)
+    {
+    context->File = file;
+    }
+  QString file(ctkErrorLogContext* context)
+    {
+    return context->File;
+    }
+
   void setFunction(ctkErrorLogContext* context, const QString& function)
     {
     context->Function = function;