Add full selection of buttonsoption

This commit is contained in:
lupoDharkael
2017-07-21 14:32:54 +02:00
parent 346607bc34
commit 096eb88770
3 changed files with 21 additions and 1 deletions

View File

@@ -17,6 +17,7 @@
#include "buttonlistview.h"
#include "src/capture/tools/toolfactory.h"
#include "src/utils/confighandler.h"
#include <QListWidgetItem>
#include <QListWidgetItem>
#include <QSettings>
@@ -90,3 +91,11 @@ void ButtonListView::reverseItemCheck(QListWidgetItem *item){
item->setCheckState(Qt::Checked);
}
}
void ButtonListView::selectAll() {
ConfigHandler().setAllTheButtons();
for(int i = 0; i < this->count(); ++i) {
QListWidgetItem* item = this->item(i);
item->setCheckState(Qt::Checked);
}
}