Q_PROPERTY() and enums

Ian Reinhart Geiser geiseri at yahoo.com
Fri Feb 14 21:16:09 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Greetings
	I have a problem im trying to get around with Qt properties.
Q_ENUMS( Completion )
Q_PROPERTY( Completion completionMode READ completionMode WRITE 
setCompletionMode )
	Works if I have the Completion enum defined locally... The issue is that 
Completion is an enum in KGlobalSettings.  So if I do the following:
Q_ENUMS( KGlobalSettings::Completion )
Q_PROPERTY( KGlobalSettings::Completion completionMode READ completionMode 
WRITE setCompletionMode )
	moc gives me a parse error on the Q_PROPERTY line.  Am I missing something 
obvious here?  AFAIK Completion is a int based enum, so it should map to a 
QVariant with no problems. 

	Any hints would be nice.

	Cheers
	-ian reinhart geiser
- -- 
- --:Ian Reinhart Geiser <geiseri at yahoo.com>
- --:Public Key: http://geiseri.myip.org:8080/publickey.txt
- --:Jabber: geiseri at geiseri.myip.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+TVyaPy62TRm8dvgRAj/8AKC1sUqldSBELjWcqOKUlC1GBIwOkQCdHoDn
mTRi/55hAuuK5yc+jtOihN4=
=eAQ/
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list