Skip to content

Commit

Permalink
fixing functionConst
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Feb 26, 2025
1 parent 3517fbb commit db5f341
Show file tree
Hide file tree
Showing 4 changed files with 356 additions and 348 deletions.
4 changes: 2 additions & 2 deletions app/activeproject.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ class ActiveProject: public QObject
virtual ~ActiveProject();

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

//! Returns Input related info about active project
LocalProject localProject();
LocalProject localProject() const;

Q_INVOKABLE QString projectFullName() const;

Expand Down
11 changes: 10 additions & 1 deletion app/fieldsmodel.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/

#ifndef FIELDSMODEL_H
#define FIELDSMODEL_H

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

signals:
void widgetListChanged();
Expand Down
Loading

0 comments on commit db5f341

Please # to comment.