Hello, i'm working around my first junior job: 
https://bugs.kde.org/show_bug.cgi?id=84080
 so it would be great if you can help. i'm using everything from trunk
 
 I managed to add an action to kopetewindow.cpp and it even worked, but this is 
not what i want.
 Whatever i do, i cant add an action to historyguiclient.cpp or even to 
kopetechatwindow.cpp. I mean this action doesn't appear in ChatView's "Settings 
-> Configure
 Shortcuts"
 
 trying to add smth like this in kopetechatwindow.cpp
 
  actionOpenLastUrl=new KAction( i18n( "&Open Last Url" ), coll );
  coll->addAction( "open_lasturl", actionOpenLastUrl );
  connect( actionOpenLastUrl, SIGNAL(triggered(bool)), this, 
SLOT(slotOpenLastUrl()) );
 
 or smth like this in historyguiclient.cpp
 
  KAction *actionOpenLastUrl = new KAction ( KIcon ( "go-last" ), i18n ( "Open 
Last Url" ), this );
  actionCollection()->addAction ( "openLastUrl", actionOpenLastUrl );
  connect ( actionOpenLastUrl, SIGNAL ( triggered ( bool ) ), this, SLOT ( 
slotOpenLastUrl() ) )
 
 none of the ways work.
 
 i would appreciate any answer, or if there are question i'll provide any 
necessary info.
 
 Thank you.
 Antonio Gattoo
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to