[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop
Subject:    Re: Menu Hell !
From:       Christian Couder <Christian.Couder () fr ! alcove ! com>
Date:       2001-04-14 4:58:37
[Download RAW message or body]

Hi,

Did you try something like this:

  file_menu = new QPopupMenu;
  file_menu->insertItem(SmallIconSet("filenew"),i18n("&New..."),
  	this,SLOT(slotFileNew()),0,ID_FILE_NEW);
  file_menu->insertItem(SmallIconSet("fileopen"),i18n("&Open..."),
	this, SLOT(slotFileOpen()),0 ,ID_FILE_OPEN);

  menuBar()->insertItem(i18n("&File"), file_menu);                              

Bye,
Christian.

On Thu, Apr 12, 2001 at 08:41:50PM -0100, Eric Sorensen wrote:
> I've looked and looked and looked and just can't seem to find the information 
> I'm looking for.  Can someone put me on track.  How do I add a menu entry?  
> Following the online documentation just leads to a dead end.  Hacking through 
> the KDevelop source code didn't help me much either.  All advice welcome.  


-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic