[Kommander-devel] Re: Mainwindow proxy - again
Kevin Krammer
kevin.krammer at gmx.at
Thu Mar 27 09:53:31 EDT 2008
Hi Eric,
great to hear you've got the action proxy thing to work.
On Thursday 27 March 2008, Eric Laffoon wrote:
> On Wednesday 26 March 2008 9:23:55 pm Eric Laffoon wrote:
> > I'm willing to accept instruction to avoid an hour
> > in docs and another 20 tries. ;)
>
> Okay I'm growing old before my eyes... The thing works and the code is in
> SVN. I was unable to get menu functions working. It will not accept child
> calls and mainWindow->menuBar doesn't return correctly as it's not the
> right type.
You could try a dynamic_cast on the widget, i.e.
QMainWindow* mainwindow = dynamic_cast<QMainWindow*>(
QWidget::topLevelWidget() );
> This is my second 20 function plugin in as many days. If I'm not careful I
> might become proficient at C++.
Hehe.
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail01.fortunecookiestudios.com/pipermail/kommander-devel/attachments/20080327/e0d3905d/attachment-0001.pgp
More information about the Kommander-devel
mailing list