QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
processing
models
qgsmodeldesignerinputstreewidget.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsmodeldesignerinputstreewidget.cpp
3
------------------------
4
Date : March 2020
5
Copyright : (C) 2020 Nyall Dawson
6
Email : nyall dot dawson at gmail dot com
7
***************************************************************************
8
* *
9
* This program is free software; you can redistribute it and/or modify *
10
* it under the terms of the GNU General Public License as published by *
11
* the Free Software Foundation; either version 2 of the License, or *
12
* (at your option) any later version. *
13
* *
14
***************************************************************************/
15
16
#include "
qgsmodeldesignerinputstreewidget.h
"
17
18
#include <QMimeData>
19
20
#include "moc_qgsmodeldesignerinputstreewidget.cpp"
21
23
24
QgsModelDesignerInputsTreeWidget::QgsModelDesignerInputsTreeWidget( QWidget *parent )
25
: QTreeWidget( parent )
26
{}
27
28
QMimeData *QgsModelDesignerInputsTreeWidget::mimeData(
const
QList<QTreeWidgetItem *> &items )
const
29
{
30
if
( items.empty() )
31
return
nullptr
;
32
33
auto
res = std::make_unique<QMimeData>();
34
const
QString text = items.value( 0 )->data( 0, Qt::UserRole ).toString();
35
res->setText( text );
36
return
res.release();
37
}
38
qgsmodeldesignerinputstreewidget.h
Generated on
for QGIS API Documentation by
1.17.0