You are not logged in.

jweinraub

Beginner

  • "jweinraub" started this thread

Posts: 6

Location: US

Occupation: IT

  • Send private message

1

Saturday, April 23rd 2005, 8:54pm

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

Krasu

Beginner

Posts: 30

Location: Republic of Belarus

  • Send private message

2

Sunday, April 24th 2005, 12:03am

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);

jweinraub

Beginner

  • "jweinraub" started this thread

Posts: 6

Location: US

Occupation: IT

  • Send private message

3

Monday, April 25th 2005, 3:41am

so silly of me! thanks, i googled and googled and found nothing, then i try with that public slot and that did the trick. :-)