Compile and other tweaks

This commit is contained in:
elecpower
2021-03-03 23:35:31 +11:00
parent 6feb5a3ca9
commit c78a784236
4 changed files with 13 additions and 14 deletions
@@ -457,9 +457,7 @@ CustomFuncResetParamItemModel::CustomFuncResetParamItemModel(const GeneralSettin
void CustomFuncResetParamItemModel::setDynamicItemData(QStandardItem * item, const int value) const
{
CustomFunctionData cfd = CustomFunctionData(AssignFunc::FuncReset);
cfd.param = value;
item->setText(CustomFunctionData::resetToString(modelData));
item->setText(CustomFunctionData::resetToString(modelData, value));
item->setData(CustomFunctionData::isResetParamAvailable(modelData, value), IMDR_Available);
}
@@ -18,8 +18,7 @@
* GNU General Public License for more details.
*/
#ifndef COMPOUNDITEMMODELS_H
#define COMPOUNDITEMMODELS_H
#pragma once
#include "rawsource.h"
#include "rawswitch.h"
@@ -361,5 +360,3 @@ class CompoundItemModelFactory
private:
void setSourceId(AbstractItemModel * itemModel);
};
#endif // COMPOUNDITEMMODELS_H