[patch] focus in kfind
David Faure
david at mandrakesoft.com
Thu Oct 17 10:38:47 BST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thursday 17 October 2002 11:13, Jos van den Oever wrote:
> On Thursday 17 October 2002 10:40, David Faure wrote:
> > > Ideally, the text in that box would be selected, with the cursor at the
> > > end. This is the case when running kfind seperately. I couldn't find the
> > > function to add this functionality in the embedded tool.
> >
> > QLineEdit::selectAll() ?
>
> The nameBox is a KComboBox and the QLineEdit isn't accesible (or i can't find
> the function to access it).
myCombo->lineEdit()->selectAll()
(see QComboBox)
> Oh, and instead of setting the focus in the constructor, maybe konqueror
> should set the focus to the KfindTabWidget, since that has a slot for that,
> that sets the focus to the nameBox too.
Try hacking KonqMainWindow::slotToolFind(), add
findPart->widget()->focus();
under
findPart->widget()->show();
- --
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/
Get the latest KOffice - http://download.kde.org/stable/koffice-1.2/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE9roUn72KcVAmwbhARAgP0AJwP+UIk6N0ZKJY0Vyfs564FvBjacQCePRxS
/KEd0PtU+kZUTKYhhIJpxfU=
=1+8l
-----END PGP SIGNATURE-----
More information about the kfm-devel
mailing list