Signed-off-by: Lukas Hrazky <lukkash@email.cz>
#include <QProcess>
#include <QUrl>
#include <QEvent>
+#include <QScrollBar>
#include <hildon-mime.h>
#include <dbus/dbus.h>
path = unwindPath(path);
QDir dir(fileSystemModel->rootPath());
if (dir.cd(path)) {
+ scrollBarPosition[fileSystemModel->rootPath()] = verticalScrollBar()->value();
setRootIndex(fileSystemModel->setRootPath(dir.absolutePath()));
clearSelection();
+ verticalScrollBar()->setValue(scrollBarPosition[dir.absolutePath()]);
emit pathChanged(fileSystemModel->rootPath());
return true;
}
void mousePressEvent(QMouseEvent *event);
virtual QItemSelectionModel::SelectionFlags selectionCommand(const QModelIndex &index, const QEvent *event = 0) const;
+ QMap<QString, int> scrollBarPosition;
+
private slots:
void activateItem(QModelIndex index);
};