# class KFilePlacesView

###

Module | kio
Namespace |
Class | KFilePlacesView
Inherits | QListView

This class allows to display a KFilePlacesModel.

### methods

- KFilePlacesView (parent)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0

- contextMenuEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QContextMenuEvent |

- dataChanged (topLeft, bottomRight)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  topLeft | QModelIndex |
  bottomRight | QModelIndex |

- dragEnterEvent (event)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  event | QDragEnterEvent |

- dragLeaveEvent (event)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  event | QDragLeaveEvent |

- dragMoveEvent (event)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  event | QDragMoveEvent |

- dropEvent (event)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  event | QDropEvent |

- hideEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QHideEvent |

- isDropOnPlaceEnabled ( )

  returns bool
  KDE 4.1.0 and later only

- paintEvent (event)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  event | QPaintEvent |

- resizeEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QResizeEvent |

- rowsInserted (parent, start, end)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  parent | QModelIndex |
  start | int |
  end | int |

- setDropOnPlaceEnabled (enabled)

  returns Nothing
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  enabled | bool |

  If enabled is true, it is allowed dropping items above a place for e. g. copy or move operations. The application has to take care itself to perform the operation (see KFilePlacesView.urlsDropped()). If enabled is false, it is only possible adding items as additional place. Per default dropping on a place is disabled.

- setModel (model)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  model | QAbstractItemModel |

- setShowAll (showAll)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  showAll | bool |

- setUrl (url)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  url | KUrl |

- showEvent (event)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  event | QShowEvent |

- sizeHint ( )

  returns QSize

- urlChanged (url)

  returns Nothing
  SIGNAL ("urlChanged (const KUrl&)")

  Argument | Type | Default
  --- | --- | ---
  url | KUrl |

- urlsDropped (dest, event, parent)

  returns Nothing
  SIGNAL ("urlsDropped (const KUrl&, QDropEvent*, QWidget*)")
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  dest | KUrl |
  event | QDropEvent |
  parent | QWidget |

  Is emitted if items are dropped on the place dest. The application has to take care itself about performing the corresponding action like copying or moving.