diff options
author | Arno <arno@disconnect.de> | 2018-03-31 10:13:12 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-03-31 10:13:12 +0200 |
commit | 3fac72595be7f86a65933cdf9928857353040c2b (patch) | |
tree | 4dd40a19cdd6f65253c30abbe8d2b59fbc0d3b92 /fswidget.cpp | |
parent | e76dc9ee93d5e4be08a2b37fd0f13565e5290d87 (diff) | |
download | SheMov-3fac72595be7f86a65933cdf9928857353040c2b.tar.gz SheMov-3fac72595be7f86a65933cdf9928857353040c2b.tar.bz2 SheMov-3fac72595be7f86a65933cdf9928857353040c2b.zip |
Add refresh to FSWidget
Diffstat (limited to 'fswidget.cpp')
-rw-r--r-- | fswidget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/fswidget.cpp b/fswidget.cpp index ffc001a..1932c10 100644 --- a/fswidget.cpp +++ b/fswidget.cpp @@ -38,6 +38,10 @@ void FSWidget::setupWidget(){ QAction *forwardA = new QAction(buttplugRight, tr("Next dir"), this); connect(forwardA, &QAction::triggered, [=] { advanceDir(1); }); toolbar->addAction(forwardA); + QAction *refreshA = new QAction(QIcon(":/refresh.png"), tr("Refresh"), this); + connect(refreshA, &QAction::triggered, this, &FSWidget::refresh); + toolbar->addSeparator(); + toolbar->addAction(refreshA); QIcon plusIcon = Helper::icon(QColor(255,85,255), '+'); QIcon minusIcon = Helper::icon(QColor(255,85,255), '-'); @@ -159,6 +163,10 @@ void FSWidget::insertItem(QComboBox *cb, const QString &text){ cb->insertItem(idx, text); } +void FSWidget::refresh(){ + gatherData(mDirCB->currentText()); +} + void FSWidget::removeItem(QComboBox *cb){ int toRemove = cb->findText(cb->currentText()); if(toRemove != -1){ |