mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
Autogen: Don't use .moc include in Q_PLUGIN_METADATA test
This commit is contained in:
committed by
Brad King
parent
d60f1ddc39
commit
29d96633a4
@@ -1,17 +1,6 @@
|
||||
#include "StyleD.hpp"
|
||||
|
||||
class StyleD : public QStylePlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
// Json file in global sub director
|
||||
Q_PLUGIN_METADATA(IID "org.styles.D" FILE "sub/StyleD.json")
|
||||
public:
|
||||
QStyle* create(const QString& key);
|
||||
};
|
||||
|
||||
QStyle* StyleD::create(const QString& key)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
#include "StyleD.moc"
|
||||
|
||||
@@ -3,6 +3,13 @@
|
||||
|
||||
#include <QStylePlugin>
|
||||
|
||||
class StyleD;
|
||||
class StyleD : public QStylePlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
// Json file in global sub director
|
||||
Q_PLUGIN_METADATA(IID "org.styles.D" FILE "sub/StyleD.json")
|
||||
public:
|
||||
QStyle* create(const QString& key);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user