diff --git a/include/gepetto/gui/mainwindow.hh b/include/gepetto/gui/mainwindow.hh index 18d30af5c83ed64a40d380f3cd1fe7ea0d66726b..e92f8874429abc460edbbc0f8ebd6c473eac6742 100644 --- a/include/gepetto/gui/mainwindow.hh +++ b/include/gepetto/gui/mainwindow.hh @@ -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); diff --git a/src/gui/mainwindow.cc b/src/gui/mainwindow.cc index 690956ffbabe7e88d69f2d876ec8dc24c45c1aa1..ef253b627249e50c8187b6b8f6c519c3934b30e9 100644 --- a/src/gui/mainwindow.cc +++ b/src/gui/mainwindow.cc @@ -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()) {