Andre Poenitz a écrit :
On Thu, Apr 06, 2006 at 01:52:35PM +0200, Abdelrazak Younes wrote:
Leuven, E. a écrit :
I think we can shortcut that by using QLAction and avoid the call to "form_->controller().dispatchInsert(str)".
do we have access to lyxview in qmathdialog so that we can pass it to qlaction?
Yes: Dialog::View::kernel()->lyxview()
So from QMathDialog that would be form_->controller()->kernel()->lyxview() but I would prefer to define all the QAction we need inside QMath. QMathDialog would then be free to use them or not.

BTW, I am not too happy that we use a 'Q' prefix for _our_ Qt stuff.

Feel free to change that. I agree with with you but I just followed the qt2 code here. Proposal welcome for QLAction, LAction?

Abdel.

Reply via email to