[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: signals and slots vs. virtual_hook (was [PATCH] KFileDialog
From: Leo Savernik <l.savernik () aon ! at>
Date: 2008-07-15 16:42:05
Message-ID: 200807151842.06441.l.savernik () aon ! at
[Download RAW message or body]
Am Dienstag, 15. Juli 2008 schrieb Thiago Macieira:
> Besides, my point is exactly that qt_metacall *is* the same as
> virtual_hook. There's no need to involve signals here. Technically all
> you needed to do was:
>
> void MiddleClass::publicFunction(bool b)
> {
> void *args[] = { &b };
> int id = metaObject()->indexOfMethod("privateFunction(bool)");
> qt_metacall(QMetaObject::InvokeMetaMethod, id, args);
> }
>
Cool, I didn't know that! It's ugly, but it should still be faster than a slot
invocation.
[Declaration]
> protected:
> Q_INVOKABLE void privateFunction(bool b);
> };
Say, I don't have a Q_INVOKABLE in release x. Is then adding Q_INVOKABLE in
release x+1 BIC?
mfg
Leo
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic