QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
qgsorderbydialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsorderbydialog.h
3 
4  ---------------------
5  begin : 20.12.2015
6  copyright : (C) 2015 by Matthias Kuhn
7  email : [email protected]
8  ***************************************************************************
9  * *
10  * This program is free software; you can redistribute it and/or modify *
11  * it under the terms of the GNU General Public License as published by *
12  * the Free Software Foundation; either version 2 of the License, or *
13  * (at your option) any later version. *
14  * *
15  ***************************************************************************/
16 
17 #ifndef QGSORDERBYDIALOG_H
18 #define QGSORDERBYDIALOG_H
19 
20 #include <QDialog>
21 
22 #include "qgsfeaturerequest.h"
23 
24 #include "ui_qgsorderbydialogbase.h"
25 
32 class GUI_EXPORT QgsOrderByDialog : public QDialog, private Ui::OrderByDialogBase
33 {
34  Q_OBJECT
35 
36  public:
43  QgsOrderByDialog( QgsVectorLayer* layer, QWidget* parent = nullptr );
44 
48  void setOrderBy( const QgsFeatureRequest::OrderBy& orderBy );
49 
54 
55  protected:
56 
57  bool eventFilter( QObject *obj, QEvent *e ) override;
58 
59  private slots:
60  void onExpressionChanged( const QString& expression );
61 
62  private:
66  void setRow( int row, const QgsFeatureRequest::OrderByClause& orderByClause );
67 
68  QgsVectorLayer* mLayer;
69 
70 };
71 
72 #endif // QGSORDERBYDIALOG_H
This is a dialog to build and manage a list of order by clauses.
The OrderByClause class represents an order by clause for a QgsFeatureRequest.
virtual bool eventFilter(QObject *o, QEvent *e)
Represents a vector layer which manages a vector based data sets.
Represents a list of OrderByClauses, with the most important first and the least important last...