+QStyleOptionViewItem DolphinIconsView::viewOptions() const
+{
+ return QListView::viewOptions();
+
+ // TODO: the view options should been read from the settings;
+ // the following code is just for testing...
+ //QStyleOptionViewItem options = QListView::viewOptions();
+ //options.decorationAlignment = Qt::AlignRight;
+ //options.decorationPosition = QStyleOptionViewItem::Right;
+ //options.decorationSize = QSize(100, 100);
+ //options.showDecorationSelected = true;
+ //options.state = QStyle::State_MouseOver;
+ //return options;
+}
+
+void DolphinIconsView::contextMenuEvent(QContextMenuEvent* event)
+{
+ QListView::contextMenuEvent(event);
+ m_controller->triggerContextMenuRequest(event->pos());
+}
+
+void DolphinIconsView::mouseReleaseEvent(QMouseEvent* event)
+{
+ QListView::mouseReleaseEvent(event);
+ m_controller->triggerActivation();
+}
+
+void DolphinIconsView::dragEnterEvent(QDragEnterEvent* event)
+{
+ if (event->mimeData()->hasUrls()) {
+ event->acceptProposedAction();
+ }
+}
+
+void DolphinIconsView::dropEvent(QDropEvent* event)