Skip to content

Commit

Permalink
make widget plugin loadable with qt5 georges editor
Browse files Browse the repository at this point in the history
  • Loading branch information
zerotacg committed Dec 28, 2023
1 parent 6993abe commit 9a65759
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nel/tools/3d/object_viewer_widget/src/interfaces.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ namespace NLQT

} /* namespace NLQT */

Q_DECLARE_INTERFACE(NLQT::IObjectViewer,"com.ryzom.dev.IObjectViewer/0.1")
#define IObjectViewer_iid "com.ryzom.dev.IObjectViewer/0.1"
Q_DECLARE_INTERFACE(NLQT::IObjectViewer,IObjectViewer_iid)

#endif
4 changes: 4 additions & 0 deletions nel/tools/3d/object_viewer_widget/src/object_viewer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"Name" : "Object Viewer",
"Version" : "0.0.1"
}
3 changes: 3 additions & 0 deletions nel/tools/3d/object_viewer_widget/src/object_viewer_widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ namespace NLQT
public IObjectViewer
{
Q_OBJECT
#ifdef USE_QT5
Q_PLUGIN_METADATA(IID IObjectViewer_iid FILE "object_viewer.json")
#endif
Q_INTERFACES(NLQT::IObjectViewer)

public:
Expand Down

0 comments on commit 9a65759

Please sign in to comment.