Skip to content
Snippets Groups Projects
Commit 31d07754 authored by stefan's avatar stefan
Browse files

FileBrowser, added refresh on F5

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1843 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 22723ea0
No related branches found
No related tags found
No related merge requests found
......@@ -183,6 +183,12 @@ void FileBrowser::LoadObject(const QModelIndex& index){
}
}
void FileBrowser::keyPressEvent(QKeyEvent* event){
if (event->key() == Qt::Key_F5) {
model_->refresh();
}
}
OST_REGISTER_WIDGET_WITH_DEFAULT_FACTORY(ost::gui, FileBrowser, "File Browser");
......
......@@ -42,6 +42,10 @@ public:
virtual ActionList GetActions();
virtual bool Save(const QString& prefix);
virtual bool Restore(const QString& prefix);
protected:
virtual void keyPressEvent(QKeyEvent* event);
private slots:
void Init(QString& path);
void DoubleClicked(const QModelIndex& index);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment