+void DolphinController::setUrl(const KUrl& url)
+{
+ if (m_url != url) {
+ m_url = url;
+ emit urlChanged(url);
+ }
+}
+
+void DolphinController::setItemView(QAbstractItemView* view)
+{
+ if (m_itemView != 0) {
+ disconnect(m_itemView, SIGNAL(pressed(const QModelIndex&)),
+ this, SLOT(updateMouseButtonState()));
+ }
+
+ m_itemView = view;
+
+ if (m_itemView != 0) {
+ m_zoomLevel = ZoomLevelInfo::zoomLevelForIconSize(m_itemView->iconSize());
+
+ // TODO: this is a workaround until Qt-issue 176832 has been fixed
+ connect(m_itemView, SIGNAL(pressed(const QModelIndex&)),
+ this, SLOT(updateMouseButtonState()));
+ }
+}
+
+void DolphinController::triggerUrlChangeRequest(const KUrl& url)
+{
+ if (m_url != url) {
+ emit requestUrlChange(url);
+ }
+}
+
+void DolphinController::triggerContextMenuRequest(const QPoint& pos,
+ const QList<QAction*>& customActions)