* of the shown directory, it does not trigger a loading of the model.
*/
void setChildUrl(const KUrl& url);
- const KUrl& childUrl() const;
+ KUrl childUrl() const;
/** Sets the directory URL that is shown inside the column widget. */
void setUrl(const KUrl& url);
/** Returns the directory URL that is shown inside the column widget. */
- const KUrl& url() const;
+ KUrl url() const;
/**
* Updates the background color dependent from the activation state
m_childUrl = url;
}
-inline const KUrl& DolphinColumnView::childUrl() const
+inline KUrl DolphinColumnView::childUrl() const
{
return m_childUrl;
}
}
}
-inline const KUrl& DolphinColumnView::url() const
+inline KUrl DolphinColumnView::url() const
{
return m_url;
}
setFrameShape(QFrame::NoFrame);
setLayoutDirection(Qt::LeftToRight);
- connect(this, SIGNAL(viewportEntered()),
- controller, SLOT(emitViewportEntered()));
+ //connect(this, SIGNAL(viewportEntered()),
+ // controller, SLOT(emitViewportEntered()));
connect(controller, SIGNAL(activationChanged(bool)),
this, SLOT(updateColumnsBackground(bool)));
return m_columns[m_index];
}
-bool DolphinColumnViewContainer::showColumn(const KUrl& url)
+void DolphinColumnViewContainer::showColumn(const KUrl& url)
{
if (!rootUrl().isParentOf(url)) {
removeAllColumns();
m_columns[0]->setUrl(url);
- return false;
+ return;
}
int columnIndex = 0;
// the column represents already the requested URL, hence activate it
requestActivation(column);
layoutColumns();
- return false;
+ return;
} else if (!column->url().isParentOf(url)) {
// the column is no parent of the requested URL, hence
// just delete all remaining columns
m_index = columnIndex;
m_columns[m_index]->setActive(true);
assureVisibleActiveColumn();
-
- return true;
}
void DolphinColumnViewContainer::mousePressEvent(QMouseEvent* event)
* Shows the column which represents the URL \a url. If the column
* is already shown, it gets activated, otherwise it will be created.
*/
- bool showColumn(const KUrl& url);
+ void showColumn(const KUrl& url);
signals:
/**
Q_ASSERT(view != 0);
view->installEventFilter(this);
view->viewport()->installEventFilter(this);
- setFocusProxy(view);
+
/* TODO: enable folder expanding again later
connect(view->horizontalScrollBar(), SIGNAL(valueChanged(int)),
this, SLOT(emitContentsMoved()));
+ setFocusProxy(m_viewAccessor.layoutTarget());
m_topLayout->insertWidget(1, m_viewAccessor.layoutTarget());
}