QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
core
processing
models
qgsprocessingmodelcomment.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprocessingmodelcomment.cpp
3
--------------------------
4
begin : February 2020
5
copyright : (C) 2020 by Nyall Dawson
6
email : nyall dot dawson at gmail dot com
7
***************************************************************************/
8
9
/***************************************************************************
10
* *
11
* This program is free software; you can redistribute it and/or modify *
12
* it under the terms of the GNU General Public License as published by *
13
* the Free Software Foundation; either version 2 of the License, or *
14
* (at your option) any later version. *
15
* *
16
***************************************************************************/
17
18
#include "
qgsprocessingmodelcomment.h
"
19
21
22
QgsProcessingModelComment::QgsProcessingModelComment(
const
QString &description )
23
: QgsProcessingModelComponent( description )
24
{
25
setSize( QSizeF( 100, 60 ) );
26
}
27
28
QgsProcessingModelComment *QgsProcessingModelComment::clone()
const
29
{
30
return
new
QgsProcessingModelComment( *
this
);
31
}
32
33
QVariant QgsProcessingModelComment::toVariant()
const
34
{
35
QVariantMap map;
36
saveCommonProperties( map );
37
return
map;
38
}
39
40
bool
QgsProcessingModelComment::loadVariant(
const
QVariantMap &map )
41
{
42
restoreCommonProperties( map );
43
return
true
;
44
}
45
46
qgsprocessingmodelcomment.h
Generated on
for QGIS API Documentation by
1.17.0