##// END OF EJS Templates
added comparison to classes and sorted them...
florianlink -
r100:fcc1d92aaafa
parent child
Show More
@@ -831,6 +831,10 public:
831 void setTypeAlias(bool typeAlias) { m_is_type_alias = typeAlias; }
831 void setTypeAlias(bool typeAlias) { m_is_type_alias = typeAlias; }
832 bool isTypeAlias() const { return m_is_type_alias; }
832 bool isTypeAlias() const { return m_is_type_alias; }
833
833
834 bool operator <(const AbstractMetaClass &a) const {
835 return qualifiedCppName() < a.qualifiedCppName();
836 }
837
834 private:
838 private:
835 uint m_namespace : 1;
839 uint m_namespace : 1;
836 uint m_qobject : 1;
840 uint m_qobject : 1;
@@ -62,6 +62,7 void Generator::generate()
62 return;
62 return;
63 }
63 }
64
64
65 qStableSort(m_classes);
65
66
66 foreach (AbstractMetaClass *cls, m_classes) {
67 foreach (AbstractMetaClass *cls, m_classes) {
67 if (!shouldGenerate(cls))
68 if (!shouldGenerate(cls))
General Comments 0
You need to be logged in to leave comments. Login now