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

Update PythonQt decorators.

parent 04093c9a
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,6 @@ signals:
/// \param text text to log
void logJobFailed (int id, const QString& text);
OSGWidget* createView (const QString& name);
/// Request a refresh of the interface.
/// \param refreshType tells what to refresh. See RefreshType
void requestRefresh ();
......
......@@ -210,11 +210,6 @@ 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()) {
......
......@@ -13,9 +13,23 @@ namespace gepetto {
Q_OBJECT
public slots:
/// \name MainWindow
/// \{
MainWindow* static_MainWindow_instance () const { return MainWindow::instance (); }
QList <OSGWidget*> osgWindows (MainWindow* w) const { return w->osgWindows(); }
OSGWidget* createView (MainWindow* w, const QString& name) const { return w->createView(name.toStdString()); }
/// \}
/// \name OSGWidget
/// \{
int windowID (OSGWidget* o) const { return o->windowID(); }
/// \}
};
} // namespace gui
} // namespace gepetto
......
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