aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libsample
diff options
context:
space:
mode:
authorJohn Cummings <jcummings2@users.sf.net>2012-09-11 10:59:08 -0500
committerHugo Parente Lima <hugo.lima@openbossa.org>2012-09-11 19:02:21 +0200
commiteb293c2839cfbc726f0e085e1435c94b6f6561f9 (patch)
treee49248f46dbe7c82a48bccd8b432b622e04da88a /tests/libsample
parenta3cecbab9735d40f97c0a031dd17ac594cf39e82 (diff)
Fix PYSIDE-108 bug and add example
Replace "::" with "_" in protected enum name to fix issue Add test case to libsample and samplebinding Change-Id: I2edea2dfa8adecfe5fa34f777da9f60cfe4c6ee4 Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
Diffstat (limited to 'tests/libsample')
-rw-r--r--tests/libsample/samplenamespace.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/libsample/samplenamespace.h b/tests/libsample/samplenamespace.h
index d75afd821..ed189517b 100644
--- a/tests/libsample/samplenamespace.h
+++ b/tests/libsample/samplenamespace.h
@@ -107,10 +107,20 @@ public:
inline int someMethod(SomeInnerClass*) { return 0; }
virtual OkThisIsRecursiveEnough* someVirtualMethod(OkThisIsRecursiveEnough* arg) { return arg; }
};
+ protected:
+ enum ProtectedEnum {
+ ProtectedItem0,
+ ProtectedItem1
+ };
};
struct SomeOtherInnerClass {
std::list<SomeInnerClass> someInnerClasses;
};
+protected:
+ enum ProtectedEnum {
+ ProtectedItem0,
+ ProtectedItem1
+ };
};
class DerivedFromNamespace : public SomeClass::SomeInnerClass::OkThisIsRecursiveEnough