Skip to content
Snippets Groups Projects
Commit 01fb2870 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Make MainWindow::createView accessible to Python

parent 1103a4a3
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ signals:
/// \param text text to log
void logJobFailed (int id, const QString& text);
OSGWidget* createView (const std::string& name);
OSGWidget* createView (const QString& name);
/// Request a refresh of the interface.
/// \param refreshType tells what to refresh. See RefreshType
void requestRefresh ();
......@@ -212,6 +212,8 @@ signals:
/// \}
OSGWidget* createView (const std::string& name);
private slots:
void addOSGWidget(OSGWidget* osgWidget);
......
......@@ -210,6 +210,11 @@ namespace gepetto {
emit logErrorString (QString ("Job ") + QString::number (id) + " failed: " + text);
}
OSGWidget *MainWindow::createView(const QString& name)
{
return createView (name.toStdString());
}
OSGWidget *MainWindow::createView(const std::string& name)
{
if (thread() != QThread::currentThread()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment