[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Access QObject's staticQtMetaObject private member
From: Florian Bruhin <me () the-compiler ! org>
Date: 2015-11-25 17:55:39
Message-ID: 20151125175539.GK19493 () tonks
[Download RAW message or body]
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.
[Attachment #2 (multipart/signed)]
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.
* Kernc <kerncece@gmail.com> [2015-11-25 18:34:06 +0100]:
> On Sun, Nov 15, 2015 at 9:48 AM, Florian Bruhin <me@the-compiler.org> wrote:
>
> >
> > FWIW, I have some code to do this which also works for values without
> > a staticMetaObject:
> >
> >
> > https://github.com/The-Compiler/qutebrowser/blob/master/qutebrowser/utils/debug.py#L91-L167
> >
> > https://github.com/The-Compiler/qutebrowser/blob/master/tests/unit/utils/test_debug.py#L125-L185
> >
>
> Seems like I can use this. Thanks!
>
> You may have a minor bug there on line 159:
>
> https://github.com/The-Compiler/qutebrowser/blob/master/qutebrowser/utils/debug.py#L159
>
> With condition not being less-than-or-equal, you miss 'LeftButton' in
> QFlags like:
>
> >>> flags = (Qt.LeftButton | Qt.LeftButton)
Indeed, thanks!
I noticed something was wrong when writing the tests, but never
bothered investigate because I use qflags_key seldom anyways :D
After this, 2 of 4 failing tests pass now :)
https://github.com/The-Compiler/qutebrowser/commit/951c2e8eb6ae68e988fd199484f36e98b5de19d2
Florian
--
http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
I love long mails! | http://email.is-not-s.ms/
["signature.asc" (application/pgp-signature)]
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic