Several fixes of warnings/clang tidy

This commit is contained in:
eelke 2018-12-16 15:38:32 +01:00
parent 2f527a8380
commit 880903db5f
15 changed files with 58 additions and 67 deletions

View file

@ -3,11 +3,9 @@
#include <QComboBox>
#include "model/TypeSelectionItemModel.h"
ParamTypeDelegate::ParamTypeDelegate()
{}
ParamTypeDelegate::ParamTypeDelegate() = default;
ParamTypeDelegate::~ParamTypeDelegate()
{}
ParamTypeDelegate::~ParamTypeDelegate() = default;
void ParamTypeDelegate::setTypeSelectionModel(TypeSelectionItemModel* model)
{
@ -21,7 +19,7 @@ QWidget *ParamTypeDelegate::createEditor(QWidget *parent,
{
QWidget *w = nullptr;
QComboBox *cmbbx = new QComboBox(parent);
auto cmbbx = new QComboBox(parent);
cmbbx->setMaxVisibleItems(32);
cmbbx->setModel(m_typeSelectionModel);
w = cmbbx;