Skip to content
Permalink
Browse files

Merge pull request #6379 from NathanW2/browser_sort_order

Better sort order for browser node
  • Loading branch information
NathanW2 committed Feb 19, 2018
2 parents a303ef5 + 19328dd commit 337fa7b152a2ef649c4f270a482689421f603a0f
@@ -25,6 +25,9 @@ class QgsAfsRootItem : public QgsDataCollectionItem
public:
QgsAfsRootItem( QgsDataItem *parent, const QString &name, const QString &path );
QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 13; }

#ifdef HAVE_GUI
QList<QAction *> actions( QWidget *parent ) override;
QWidget *paramWidget() override;
@@ -28,6 +28,9 @@ class QgsAmsRootItem : public QgsDataCollectionItem
QgsAmsRootItem( QgsDataItem *parent, QString name, QString path );

QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 12; }

#ifdef HAVE_GUI
QList<QAction *> actions( QWidget *parent ) override;
QWidget *paramWidget() override;
@@ -41,6 +41,8 @@ class QgsDb2RootItem : public QgsDataCollectionItem
*/
QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 6; }

#ifdef HAVE_GUI
QWidget *paramWidget() override;

@@ -69,6 +69,8 @@ class QgsGeoNodeRootItem : public QgsDataCollectionItem

QList<QAction *> actions( QWidget *parent ) override;

QVariant sortKey() const override { return 13; }

private slots:
void newConnection();
};
@@ -38,6 +38,8 @@ class QgsMssqlRootItem : public QgsDataCollectionItem

QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 4; }

#ifdef HAVE_GUI
QWidget *paramWidget() override;
QList<QAction *> actions( QWidget *parent ) override;
@@ -136,6 +136,9 @@ class QgsGeoPackageRootItem : public QgsDataCollectionItem

QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 1; }


#ifdef HAVE_GUI
QWidget *paramWidget() override;
QList<QAction *> actions( QWidget *parent ) override;
@@ -41,6 +41,8 @@ class QgsOracleRootItem : public QgsDataCollectionItem

QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 5; }

virtual QWidget *paramWidget() override;

QList<QAction *> actions( QWidget *parent ) override;
@@ -48,6 +48,8 @@ class QgsOWSRootItem : public QgsDataCollectionItem

QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 11; }

#ifdef HAVE_GUI
QList<QAction *> actions( QWidget *parent ) override;
QWidget *paramWidget() override;
@@ -36,6 +36,8 @@ class QgsPGRootItem : public QgsDataCollectionItem

QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 3; }

#ifdef HAVE_GUI
QWidget *paramWidget() override;

@@ -67,6 +67,8 @@ class QgsSLRootItem : public QgsDataCollectionItem

QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 2; }

#ifdef HAVE_GUI
QWidget *paramWidget() override;
QList<QAction *> actions( QWidget *parent ) override;
@@ -70,6 +70,8 @@ class QgsWCSRootItem : public QgsDataCollectionItem

QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 9; }

#ifdef HAVE_GUI
QList<QAction *> actions( QWidget *parent ) override;
QWidget *paramWidget() override;
@@ -29,6 +29,8 @@ class QgsWfsRootItem : public QgsDataCollectionItem

QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 9; }

#ifdef HAVE_GUI
QList<QAction *> actions( QWidget *parent ) override;
QWidget *paramWidget() override;
@@ -33,6 +33,7 @@ class QgsWMSConnectionItem : public QgsDataCollectionItem
QVector<QgsDataItem *> createChildren() override;
bool equal( const QgsDataItem *other ) override;


#ifdef HAVE_GUI
QList<QAction *> actions( QWidget *parent ) override;
#endif
@@ -98,6 +99,8 @@ class QgsWMSRootItem : public QgsDataCollectionItem

QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 7; }

#ifdef HAVE_GUI
QList<QAction *> actions( QWidget *parent ) override;
QWidget *paramWidget() override;
@@ -134,6 +137,8 @@ class QgsXyzTileRootItem : public QgsDataCollectionItem

QVector<QgsDataItem *> createChildren() override;

QVariant sortKey() const override { return 8; }

#ifdef HAVE_GUI
QList<QAction *> actions( QWidget *parent ) override;
#endif

0 comments on commit 337fa7b

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