QGIS API Documentation
4.3.0-Master (16eddb2670e)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
quickgui
qgsquickutils.cpp
Go to the documentation of this file.
1
/***************************************************************************
2
qgsquickutils.cpp
3
--------------------------------------
4
Date : 7.11.2022
5
Copyright : (C) 2022 by Tomas Mizera
6
Email : tomas.mizera (at) lutraconsulting.co.uk
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 "
qgsquickutils.h
"
17
18
#include "moc_qgsquickutils.cpp"
19
20
QgsQuickUtils::QgsQuickUtils
( QObject *parent )
21
: QObject( parent )
22
{}
23
24
QgsPoint
QgsQuickUtils::toQgsPoint
(
const
QPointF &point )
25
{
26
return
QgsPoint
( point );
27
}
QgsPoint
Point geometry type, with support for z-dimension and m-values.
Definition
qgspoint.h:53
QgsQuickUtils::toQgsPoint
static Q_INVOKABLE QgsPoint toQgsPoint(const QPointF &point)
Helper function to convert QPointF to QgsPoint without any transformations.
Definition
qgsquickutils.cpp:24
QgsQuickUtils::QgsQuickUtils
QgsQuickUtils(QObject *parent=nullptr)
Creates new QgsQuickUtils - this class is meant to serve as a QML singleton.
Definition
qgsquickutils.cpp:20
qgsquickutils.h
Generated on
for QGIS API Documentation by
1.17.0