Skip to content

Commit

Permalink
Spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 1, 2021
1 parent 349af16 commit 4c50469
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/qgsproviderregistry.sip.in
Expand Up @@ -433,7 +433,7 @@ handled by any registered providers, and construct user-friendly warnings as to
bool handleUnusableUri( const QString &uri, UnusableUriDetails &details /Out/ ) const;
%Docstring
Returns ``True`` if the specified ``uri`` can potentially be handled by QGIS, if additional
dependancies or build-time requirements are present.
dependencies or build-time requirements are present.

This can be used to show user-friendly warning messages advising them why a particular
``uri`` cannot be opened on their QGIS install. For example, if a QGIS install is built
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -7631,7 +7631,7 @@ bool QgisApp::openLayer( const QString &fileName, bool allowInteractive )
ok = static_cast< bool >( addMeshLayerPrivate( fileName, fileInfo.completeBaseName(), QStringLiteral( "mdal" ), false ) );
}

// maybe a known file type, which couldn't be opened due to a missing dependancy... (eg. las for a non-pdal-enabled build)
// maybe a known file type, which couldn't be opened due to a missing dependency... (eg. las for a non-pdal-enabled build)
{
QgsProviderRegistry::UnusableUriDetails details;
if ( QgsProviderRegistry::instance()->handleUnusableUri( fileName, details ) )
Expand Down
4 changes: 3 additions & 1 deletion src/core/qgsproviderregistry.cpp
Expand Up @@ -117,6 +117,7 @@ QgsProviderRegistry::QgsProviderRegistry( const QString &pluginPath )
init();
}

///@cond PRIVATE
class PdalUnusableUriHandlerInterface : public QgsProviderRegistry::UnusableUriHandlerInterface
{
public:
Expand All @@ -141,11 +142,12 @@ class PdalUnusableUriHandlerInterface : public QgsProviderRegistry::UnusableUriH
"obtain one of the alternative installers from https://qgis.org which has point "
"cloud support enabled." );
#else
res.detailedWarning = QObject::tr( "This QGIS build does not include the PDAL library dependancy required for opening LAS or LAZ point clouds." );
res.detailedWarning = QObject::tr( "This QGIS build does not include the PDAL library dependency required for opening LAS or LAZ point clouds." );
#endif
return res;
}
};
///@endcond

void QgsProviderRegistry::init()
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsproviderregistry.h
Expand Up @@ -469,7 +469,7 @@ class CORE_EXPORT QgsProviderRegistry

/**
* Returns TRUE if the specified \a uri can potentially be handled by QGIS, if additional
* dependancies or build-time requirements are present.
* dependencies or build-time requirements are present.
*
* This can be used to show user-friendly warning messages advising them why a particular
* \a uri cannot be opened on their QGIS install. For example, if a QGIS install is built
Expand Down

0 comments on commit 4c50469

Please sign in to comment.