Skip to content
Permalink
Browse files

Fix untranslatable strings

  • Loading branch information
nyalldawson committed Oct 27, 2020
1 parent 78beef6 commit 730c554e8a85c81a639c84832d56537f9e1463a0
@@ -28,7 +28,7 @@ class QgsEptSourceSelectProvider : public QgsSourceSelectProvider
public:

QString providerKey() const override { return QStringLiteral( "pointcloud" ); }
QString text() const override { return QStringLiteral( "Point Cloud" ); } // untranslatable string as acronym for this particular case. Use QObject::tr() otherwise
QString text() const override { return QObject::tr( "Point Cloud" ); }
int ordering() const override { return QgsSourceSelectProvider::OrderLocalProvider + 25; }
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddPointCloudLayer.svg" ) ); }
QgsAbstractDataSourceWidget *createDataSourceWidget( QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Embedded ) const override
@@ -26,7 +26,7 @@ class QgsVectorTileSourceSelectProvider : public QgsSourceSelectProvider
public:

QString providerKey() const override { return QStringLiteral( "vectortile" ); }
QString text() const override { return QStringLiteral( "Vector Tile" ); } // untranslatable string as acronym for this particular case. Use QObject::tr() otherwise
QString text() const override { return QObject::tr( "Vector Tile" ); }
int ordering() const override { return QgsSourceSelectProvider::OrderRemoteProvider + 50; }
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddVectorTileLayer.svg" ) ); }
QgsAbstractDataSourceWidget *createDataSourceWidget( QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Embedded ) const override

0 comments on commit 730c554

Please sign in to comment.
You can’t perform that action at this time.