[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: KFileView and doubleclicks?
From: Christian Nitschkowski <segfault_ii () web ! de>
Date: 2002-05-31 11:19:29
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi!
I've got a question about KFileViews.
I use a KDirOperator (and so a KFileView, too) in a KBaseDialog.
Now I want to close the dialog and emit the selected file when
the user doubleclicks on a KFileItem.
The current code is something like
KDirOperator* templateView;
/** snip */
templateView->setOnlyDoubleClickSelectsFile(true);
connect (templateView, SIGNAL (selectedFile(const KFileItem*)),
this, SLOT (selectedFile(const KFileItem*)));
The problem is that the signal "selectedFile(...)" is already emitted,
when the user makes only a single click on a file.
How can I make sure, that the signal is only emitted, when the user
doubleclicks, or presses return when he selected the file or something?
- --
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
GnuPG / PGP Key ID: 52FF1D09
search on wwwkeys.de.pgp.net or search.keyserver.net
Visit my page on http://segfaultskde.berlios.de
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE891xOb/QSzFL/HQkRArAYAJ9119SPZj9jO/d+jG//yvlY+GspHgCfdx5C
vIg1W7zPwCAcP4xXhkSy0NQ=
=jaHZ
-----END PGP SIGNATURE-----
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic