KKeyChooser/KKeyDialog question

David Faure david at mandrakesoft.com
Thu Jul 25 15:01:02 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 24 July 2002 08:32, Hadacek Nicolas wrote:
> Le Vendredi 19 Juillet 2002 18:15, David Faure a écrit :
> > On Friday 19 July 2002 08:11, Hadacek Nicolas wrote:
> > > Le Vendredi 28 Juin 2002 19:00, Anders Lund a écrit :
> 
> > Hmm, the idea is good, but coming up with a good API isn't easy.
> > Reason: action collections are autocreated, usually.
> > So developers would have to remember doing actionCollection()->setTitle(
> > i18n("Editor Component") ).
> >
> > Ah, but here's another idea: we already know the 'parent' of the action
> > collection ("Kate", "KHTML Part" etc.). It's the KInstance. And I see that
> > the KActionCollection ctors know take a KInstance.
> >
> > Can you try if actionCollection->instance()->aboutData()->programName()
> > returns the right thing in most cases ? (test all those pointers ;)
> 
> well I've done some quick tests in konqueror :
> - html view: ok, there are "khtml" and "konqueror"
> - file view : not ok, there are "konqueror" and "shortcuts" (the default)

Ah yes. The file views don't have proper "about data", they simply do
         s_instance = new KInstance( "konqiconview" );
It's rather easy to add some "about data" though.

- -- 
David FAURE, david at mandrakesoft.com, faure at kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
Back from holidays - 1750 mails
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9QASe72KcVAmwbhARAs+nAJ4zrOqZX/mVJVinie4GGPp7Zn741QCdH3UL
yXAgaTGG4pM4WmYAuslKTsU=
=qDSg
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list