Skip to content

Commit db5f341

Browse files
committed
fixing functionConst
1 parent 3517fbb commit db5f341

File tree

4 files changed

+356
-348
lines changed

4 files changed

+356
-348
lines changed

app/activeproject.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ class ActiveProject: public QObject
4949
virtual ~ActiveProject();
5050

5151
//! Returns active project's QgsProject instance to do QGIS API magic
52-
QgsProject *qgsProject();
52+
QgsProject *qgsProject() const;
5353

5454
//! Returns Input related info about active project
55-
LocalProject localProject();
55+
LocalProject localProject() const;
5656

5757
Q_INVOKABLE QString projectFullName() const;
5858

app/fieldsmodel.h

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/***************************************************************************
2+
* *
3+
* This program is free software; you can redistribute it and/or modify *
4+
* it under the terms of the GNU General Public License as published by *
5+
* the Free Software Foundation; either version 2 of the License, or *
6+
* (at your option) any later version. *
7+
* *
8+
***************************************************************************/
9+
110
#ifndef FIELDSMODEL_H
211
#define FIELDSMODEL_H
312

@@ -45,7 +54,7 @@ class FieldsModel: public QAbstractListModel
4554
QVariant data( const QModelIndex &index, int role ) const override;
4655
bool setData( const QModelIndex &index, const QVariant &value, int role = Qt::EditRole ) override;
4756
//! Returns fields configuration
48-
QList<FieldConfiguration> fields();
57+
QList<FieldConfiguration> fields() const;
4958

5059
signals:
5160
void widgetListChanged();

0 commit comments

Comments
 (0)