Skip to content
Snippets Groups Projects
Commit 2aa98ce7 authored by Marco Biasini's avatar Marco Biasini
Browse files

added refresh button to file browser

--open tickets (BZDNG-149)
parent c93154af
Branches
Tags
No related merge requests found
......@@ -15,6 +15,7 @@ set(GUI_ICONS
icons/site_icon.png
icons/split_icon.png
icons/warning_icon.png
icons/refresh.png
)
set(GUI_IMAGES
......
modules/gui/share/icons/refresh.png

3.4 KiB

......@@ -139,9 +139,19 @@ void FileBrowser::Init(const QString& path)
split_action->setToolTip("Split File Browser");
split_action->setIcon(QIcon(icon_path.absolutePath()+QDir::separator()+QString("split_icon.png")));
action_list_.append(split_action);
connect(split_action, SIGNAL(triggered(bool)), this, SLOT(Split()));
QAction* refresh_action=new QAction(this);
refresh_action->setText("refresh");
refresh_action->setIcon(QIcon(icon_path.absolutePath()+QDir::separator()+QString("refresh.png")));
action_list_.append(refresh_action);
connect(refresh_action, SIGNAL(triggered(bool)), this, SLOT(Refresh()));
}
connect(split_action, SIGNAL(triggered(bool)), this, SLOT(Split()));
void FileBrowser::Refresh()
{
model_->refresh();
}
ActionList FileBrowser::GetActions()
{
return action_list_;
......
......@@ -45,7 +45,8 @@ public:
protected:
virtual void keyPressEvent(QKeyEvent* event);
public slots:
void Refresh();
private slots:
void Init(const 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