Redesign of the config menu

This commit is contained in:
lupoDharkael
2017-07-21 10:59:45 +02:00
parent b14d3cb5f0
commit 346607bc34
23 changed files with 273 additions and 76 deletions

View File

@@ -24,6 +24,7 @@
ButtonListView::ButtonListView(QWidget *parent) : QListWidget(parent) {
setMouseTracking(true);
setFlow(QListWidget::TopToBottom);
initButtonList();
connect(this, &QListWidget::itemChanged, this,
&ButtonListView::updateActiveButtons);
@@ -40,7 +41,7 @@ void ButtonListView::initButtonList() {
CaptureTool *tool = factory.CreateTool(t);
// add element to the local map
m_buttonTypeByName[tool->getName()] = t;
m_buttonTypeByName.insert(tool->getName(), t);
// init the menu option