Skip to content
Permalink
Browse files

Fix position of Oracle entry in data source manager

Fixes #17755
  • Loading branch information
nyalldawson committed Jan 3, 2018
1 parent a4147b7 commit 7cb8d1a9bfa81ea742bc8d524dfaa4bb25374b00
@@ -1757,7 +1757,7 @@ class QgsDb2SourceSelectProvider : public QgsSourceSelectProvider

QString providerKey() const override { return QStringLiteral( "DB2" ); }
QString text() const override { return QObject::tr( "DB2" ); }
int ordering() const override { return QgsSourceSelectProvider::OrderDatabaseProvider + 40; }
int ordering() const override { return QgsSourceSelectProvider::OrderDatabaseProvider + 50; }
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddDb2Layer.svg" ) ); }
QgsAbstractDataSourceWidget *createDataSourceWidget( QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Embedded ) const override
{
@@ -3592,11 +3592,11 @@ class QgsOracleSourceSelectProvider : public QgsSourceSelectProvider
{
public:

virtual QString providerKey() const override { return QStringLiteral( "oracle" ); }
virtual QString text() const override { return QObject::tr( "Oracle" ); }
virtual int ordering() { return 80; }
virtual QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddOracleLayer.svg" ) ); }
virtual QgsAbstractDataSourceWidget *createDataSourceWidget( QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Embedded ) const override
QString providerKey() const override { return QStringLiteral( "oracle" ); }
QString text() const override { return QObject::tr( "Oracle" ); }
int ordering() const override { return QgsSourceSelectProvider::OrderDatabaseProvider + 40; }
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddOracleLayer.svg" ) ); }
QgsAbstractDataSourceWidget *createDataSourceWidget( QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Embedded ) const override
{
return new QgsOracleSourceSelect( parent, fl, widgetMode );
}
@@ -657,7 +657,7 @@ class QgsVirtualSourceSelectProvider : public QgsSourceSelectProvider

QString providerKey() const override { return QStringLiteral( "virtual" ); }
QString text() const override { return QObject::tr( "Virtual Layer" ); }
int ordering() const override { return QgsSourceSelectProvider::OrderDatabaseProvider + 50; }
int ordering() const override { return QgsSourceSelectProvider::OrderDatabaseProvider + 60; }
QString toolTip() const override { return QObject::tr( "Add Virtual Layer" ); }
QIcon icon() const override { return QgsApplication::getThemeIcon( QStringLiteral( "/mActionAddVirtualLayer.svg" ) ); }
QgsAbstractDataSourceWidget *createDataSourceWidget( QWidget *parent = nullptr, Qt::WindowFlags fl = Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode = QgsProviderRegistry::WidgetMode::Embedded ) const override

0 comments on commit 7cb8d1a

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