Browse Source

Complete migration to qt-style headers

Alexey Edelev 5 years ago
parent
commit
015af3ea71

+ 2 - 2
src/generator/globalenumssourcegenerator.cpp

@@ -38,8 +38,8 @@ GlobalEnumsSourceGenerator::GlobalEnumsSourceGenerator(const PackagesList &packa
 
 void GlobalEnumsSourceGenerator::run() {
     mPrinter.Print("#include <globalenums.h>\n"
-                   "#include <qprotobufobject.h>\n"
-                   "#include <qprotobufregistrationhelper.h>\n\n"
+                   "#include <QProtobufObject>\n"
+                   "#include <QProtobufRegistrationHelper>\n\n"
                    "#include <QQmlEngine>");
 
     std::vector<std::string> namespaces;

+ 2 - 2
src/generator/templates.cpp

@@ -30,8 +30,8 @@ using namespace QtProtobuf::generator;
 const char *Templates::DefaultProtobufIncludesTemplate = "#include <QMetaType>\n"
                                                          "#include <QList>\n"
                                                          "#include <QtQml/QQmlListProperty>\n"
-                                                         "#include <qprotobufobject.h>\n"
-                                                         "#include <qqmllistpropertyconstructor.h>\n"
+                                                         "#include <QProtobufObject>\n"
+                                                         "#include <QQmlListPropertyConstructor>\n"
                                                          "#include <unordered_map>\n"
                                                          "#include <QSharedPointer>\n\n";
 

+ 1 - 1
src/protobuf/qqmllistpropertyconstructor.h

@@ -23,7 +23,7 @@
  * DEALINGS IN THE SOFTWARE.
  */
 
-#pragma once
+#pragma once //QQmlListPropertyConstructor
 
 #include <QQmlListProperty>
 #include <QQmlEngine>