QGIS API Documentation 3.38.0-Grenoble (exported)
Loading...
Searching...
No Matches
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
19
21
22QgsProcessingModelComment::QgsProcessingModelComment( const QString &description )
23 : QgsProcessingModelComponent( description )
24{
25 setSize( QSizeF( 100, 60 ) );
26}
27
28QgsProcessingModelComment *QgsProcessingModelComment::clone() const
29{
30 return new QgsProcessingModelComment( *this );
31}
32
33QVariant QgsProcessingModelComment::toVariant() const
34{
35 QVariantMap map;
36 saveCommonProperties( map );
37 return map;
38}
39
40bool QgsProcessingModelComment::loadVariant( const QVariantMap &map )
41{
42 restoreCommonProperties( map );
43 return true;
44}
45
46