Several fixes of warnings/clang tidy
This commit is contained in:
parent
2f527a8380
commit
880903db5f
15 changed files with 58 additions and 67 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue