#include "dolphinfileitemdelegate.h"
#include "dolphinsettings.h"
#include "dolphinsortfilterproxymodel.h"
+#include "dolphinviewautoscroller.h"
#include "draganddrophelper.h"
#include "selectionmanager.h"
#include "viewproperties.h"
setEditTriggers(QAbstractItemView::NoEditTriggers);
setMouseTracking(true);
+ new DolphinViewAutoScroller(this);
const ViewProperties props(controller->url());
setSortIndicatorSection(props.sorting());
connect(parent, SIGNAL(sortOrderChanged(Qt::SortOrder)),
this, SLOT(setSortIndicatorOrder(Qt::SortOrder)));
- // TODO: Connecting to the signal 'activated()' is not possible, as kstyle
- // does not forward the single vs. doubleclick to it yet (KDE 4.1?). Hence it is
- // necessary connecting the signal 'singleClick()' or 'doubleClick' and to handle the
- // RETURN-key in keyPressEvent().
+ connect(this, SIGNAL(clicked(const QModelIndex&)),
+ controller, SLOT(requestTab(const QModelIndex&)));
if (KGlobalSettings::singleClick()) {
connect(this, SIGNAL(clicked(const QModelIndex&)),
controller, SLOT(triggerItem(const QModelIndex&)));
void DolphinDetailsView::resizeEvent(QResizeEvent* event)
{
+ QTreeView::resizeEvent(event);
if (m_autoResize) {
resizeColumns();
}
- QTreeView::resizeEvent(event);
}
void DolphinDetailsView::wheelEvent(QWheelEvent* event)
m_controller->indicateAdditionalInfoChange(list);
setColumnHidden(columnIndex, !show);
+ resizeColumns();
}
}