Can use the parameter list in the query window now.
Still requires extensive testing for all possible types.
This commit is contained in:
parent
aefc9eb7ba
commit
3af26d915e
14 changed files with 461 additions and 242 deletions
|
|
@ -8,8 +8,7 @@ class TypeSelectionItemModel;
|
|||
/** Item delegate for supplying a combobox for selected the parameter type in
|
||||
* the parameter list.
|
||||
*/
|
||||
class ParamTypeDelegate : public QStyledItemDelegate
|
||||
{
|
||||
class ParamTypeDelegate : public QStyledItemDelegate {
|
||||
Q_OBJECT
|
||||
public:
|
||||
ParamTypeDelegate();
|
||||
|
|
@ -18,8 +17,14 @@ public:
|
|||
QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option,
|
||||
const QModelIndex &index) const override;
|
||||
void setTypeSelectionModel(TypeSelectionItemModel* model);
|
||||
void setEditorData(QWidget *editor, const QModelIndex &index) const override;
|
||||
void setModelData(QWidget *editor, QAbstractItemModel *model,
|
||||
const QModelIndex &index) const override;
|
||||
private:
|
||||
TypeSelectionItemModel* m_typeSelectionModel = nullptr;
|
||||
|
||||
private slots:
|
||||
void commitAndCloseEditor();
|
||||
};
|
||||
|
||||
#endif // PARAMTYPEDELEGATE_H
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue