@@ -29,7 +29,7 @@ GenericOptionsModel::GenericOptionsModel(bool showAllOption, QObject *parent)
30 if (showAllOption)
30 if (showAllOption)
32− auto showAll = ShowAllFilterOption("TODO", this);
32+ auto showAll = new ShowAllFilterOption(this);
33 connect(showAll, SIGNAL(activeChanged(bool)), this, SLOT(onOptionChanged()));
33 connect(showAll, SIGNAL(activeChanged(bool)), this, SLOT(onOptionChanged()));
34 connect(showAll, SIGNAL(activeChanged(bool)), this, SLOT(onShowAllClicked(bool)));
34 connect(showAll, SIGNAL(activeChanged(bool)), this, SLOT(onShowAllClicked(bool)));
35 addOption(showAll, 0);
35 addOption(showAll, 0);
@@ -60,7 +60,7 @@ QVariant GenericOptionsModel::data(const QModelIndex& index, int role) const
60 return QVariant();
60 return QVariant();
63− auto filterOption = (m_showAll != nullptr && index.row() == 0) ? m_showAll : m_options[index.row()];
63+ auto filterOption = m_options[index.row()];
64 switch (role)
64 switch (role)
66 case GenericOptionsModel::RoleId:
66 case GenericOptionsModel::RoleId:
@@ -81,7 +81,7 @@ QVariant GenericOptionsModel::data(const QModelIndex& index, int role) const
82int GenericOptionsModel::rowCount(const QModelIndex& /* parent */) const
82int GenericOptionsModel::rowCount(const QModelIndex& /* parent */) const
84− return m_options.size;
84+ return m_options.size();
87void GenericOptionsModel::setActive(int idx, bool value)
87void GenericOptionsModel::setActive(int idx, bool value)