megamove
This commit is contained in:
parent
c2e201f813
commit
f51105bde0
114 changed files with 92 additions and 0 deletions
|
|
@ -1,35 +0,0 @@
|
|||
#include "ParamTypeDelegate.h"
|
||||
|
||||
#include <QComboBox>
|
||||
#include "TypeSelectionItemModel.h"
|
||||
|
||||
ParamTypeDelegate::ParamTypeDelegate()
|
||||
{}
|
||||
|
||||
ParamTypeDelegate::~ParamTypeDelegate()
|
||||
{}
|
||||
|
||||
void ParamTypeDelegate::setTypeSelectionModel(TypeSelectionItemModel* model)
|
||||
{
|
||||
m_typeSelectionModel = model;
|
||||
}
|
||||
|
||||
QWidget *ParamTypeDelegate::createEditor(QWidget *parent,
|
||||
const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const
|
||||
|
||||
{
|
||||
QWidget *w = nullptr;
|
||||
|
||||
QComboBox *cmbbx = new QComboBox(parent);
|
||||
cmbbx->setModel(m_typeSelectionModel);
|
||||
w = cmbbx;
|
||||
|
||||
// ...
|
||||
// m_ComboBox->setView(m_ColumnView);
|
||||
// m_ComboBox->view()->setCornerWidget(new QSizeGrip(m_ColumnView));
|
||||
// m_ComboBox->view()->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOn);
|
||||
// ...
|
||||
|
||||
return w;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue