Dear visitor, welcome to KDE-Forum.org.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Edit KListViewItem
Hi
I noticed in KLIstViewItem when I double click column 0 of any row, the widget allows me to edit the field. how can i achieve this for all columns, if possible. if impossible, how do i turn that feature off so when the signal doubleclick occurs i can draw my own dialogue box to allow editing of item in row.
regards
RE: Edit KListViewItem
As it said in klistview.h:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
|
/**
* By default, if you called setItemsRenameable(true),
* only the first column is renameable.
* Use this function to enable the feature on other columns.
*
* If you want more intelligent (dynamic) selection,
* you'll have to derive from KListView,
* and override rename() and call only call it
* if you want the item to be renamed.
*/
void setRenameable (int column, bool yesno=true);
|
so silly of me! thanks, i googled and googled and found nothing, then i try with that public slot and that did the trick. :-)