|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KListViewSignals
Method Summary | |
---|---|
void |
aboutToMove()
Connect to this signal if you want to do some preprocessing before a move is made, for example, to disable sorting This is sent only once per each groups of moves. |
void |
contextMenu(KListView l,
org.kde.qt.QListViewItem i,
org.kde.qt.QPoint p)
This signal is emitted whenever a context-menu should be shown for item i.
It automatically adjusts for all settings involved (Menu key, showMenuOnPress/Click). |
void |
dropped(KListView list,
org.kde.qt.QDropEvent e,
org.kde.qt.QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview. |
void |
dropped(KListView list,
org.kde.qt.QDropEvent e,
org.kde.qt.QListViewItem parent,
org.kde.qt.QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview. |
void |
dropped(org.kde.qt.QDropEvent e,
org.kde.qt.QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview. |
void |
dropped(org.kde.qt.QDropEvent e,
org.kde.qt.QListViewItem parent,
org.kde.qt.QListViewItem after)
This signal gets emitted whenever something acceptable is dropped onto the listview. |
void |
executed(org.kde.qt.QListViewItem item)
This signal is emitted whenever the user executes an listview item. |
void |
executed(org.kde.qt.QListViewItem item,
org.kde.qt.QPoint pos,
int c)
This signal is emitted whenever the user executes an listview item. |
void |
itemAdded(org.kde.qt.QListViewItem item)
|
void |
itemRemoved(org.kde.qt.QListViewItem item)
|
void |
itemRenamed(org.kde.qt.QListViewItem item)
Same as above, but without the extra information. |
void |
itemRenamed(org.kde.qt.QListViewItem item,
java.lang.String str,
int col)
This signal gets emitted when an item is renamed via in-place renaming. |
void |
menuShortCutPressed(KListView list,
org.kde.qt.QListViewItem item)
This signal is emitted when the shortcut key for popup-menus is pressed. |
void |
moved()
This signal is emitted when ever the user moves an item in the list via DnD. |
void |
moved(org.kde.qt.QListViewItem item,
org.kde.qt.QListViewItem afterFirst,
org.kde.qt.QListViewItem afterNow)
This signal is emitted when ever the user moves an item in the list via DnD. |
Method Detail |
---|
void executed(org.kde.qt.QListViewItem item)
item
- is the pointer to the executed listview item.
Note that you may not delete any QListViewItem objects in slots
connected to this signal.void executed(org.kde.qt.QListViewItem item, org.kde.qt.QPoint pos, int c)
item
- is the pointer to the executed listview item.pos
- is the position where the user has clickedc
- is the column into which the user clicked.
Note that you may not delete any QListViewItem objects in slots
connected to this signal.void dropped(org.kde.qt.QDropEvent e, org.kde.qt.QListViewItem after)
e
- is the drop event itself (it has already been accepted)after
- is the item after which the drop occurred (or null, if
the drop was above all items)#acceptDrop
void dropped(KListView list, org.kde.qt.QDropEvent e, org.kde.qt.QListViewItem after)
list
- is the listviewe
- is the drop event itself (it has already been accepted)after
- is the item after which the drop occurred (or null, if
the drop was above all itemsvoid dropped(KListView list, org.kde.qt.QDropEvent e, org.kde.qt.QListViewItem parent, org.kde.qt.QListViewItem after)
list
- is the listviewe
- is the drop event itself (it has already been accepted)parent
- the item that is to be the parent of the new itemafter
- is the item after which the drop occurred (or null, if
the drop was above all itemsvoid dropped(org.kde.qt.QDropEvent e, org.kde.qt.QListViewItem parent, org.kde.qt.QListViewItem after)
e
- is the drop event itself (it has already been accepted)parent
- the item that is to be the parent of the new itemafter
- is the item after which the drop occurred (or null, if
the drop was above all itemsvoid moved()
void aboutToMove()
#moveItem
void moved(org.kde.qt.QListViewItem item, org.kde.qt.QListViewItem afterFirst, org.kde.qt.QListViewItem afterNow)
afterFirst
and
afterNow
will reflect what was true before the move.
This differs from moved(), so be careful. All the items will have been
moved before moved() is emitted, which is not true in this method. // FIXME
item
- the item that was movedafterFirst
- the item that parameter item was in before the move, in the listafterNow
- the item it's currently after.void itemRenamed(org.kde.qt.QListViewItem item, java.lang.String str, int col)
item
- is the renamed item.str
- is the new value of column col.
col
- is the renamed column.void itemRenamed(org.kde.qt.QListViewItem item)
void menuShortCutPressed(KListView list, org.kde.qt.QListViewItem item)
list
- is this listview.item
- is the currentItem() at the time the key was pressed. May be null.void contextMenu(KListView l, org.kde.qt.QListViewItem i, org.kde.qt.QPoint p)
i.
It automatically adjusts for all settings involved (Menu key, showMenuOnPress/Click).
l
- is this listview.i
- is the item for which the menu should be shown. May be null.p
- is the point at which the menu should be shown.void itemAdded(org.kde.qt.QListViewItem item)
void itemRemoved(org.kde.qt.QListViewItem item)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |