Skip to content

Commit

Permalink
Plugin: move Q_DECLARE_METATYPE TODO
Browse files Browse the repository at this point in the history
Q_DECLARE_METATYPE(...) must be used on fully qualified types
To avoid including plugin.h inside panelpluginsmodel.h,
the declaretion is moved.

TODO: squash with previous Q_DECLARE_OPAQUE_POINTER commit
  • Loading branch information
gfgit committed Mar 20, 2024
1 parent 5e99df6 commit 6637ddf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions panel/panelpluginsmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,4 @@ public slots:
LXQtPanel * mPanel;
};

Q_DECLARE_OPAQUE_POINTER(Plugin const *)

#endif // PANELPLUGINSMODEL_H
1 change: 1 addition & 0 deletions panel/plugin.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,6 @@ private slots:

};

Q_DECLARE_METATYPE(Plugin const *)

#endif // PLUGIN_H

0 comments on commit 6637ddf

Please sign in to comment.