QGIS API Documentation  2.12.0-Lyon
qgsvaluemapsearchwidgetwrapper.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsvaluemapsearchwidgetwrapper.h
3  --------------------------------------
4  Date : 21.5.2015
5  Copyright : (C) 2015 Karolina Alexiou
6  Email : carolinegr at gmail dot com
7  ***************************************************************************
8  * *
9  * This program is free software; you can redistribute it and/or modify *
10  * it under the terms of the GNU General Public License as published by *
11  * the Free Software Foundation; either version 2 of the License, or *
12  * (at your option) any later version. *
13  * *
14  ***************************************************************************/
15 
16 #ifndef QGSVALUEMAPSEARCHWIDGETWRAPPER_H
17 #define QGSVALUEMAPSEARCHWIDGETWRAPPER_H
18 
20 #include <QComboBox>
21 
22 
23 
25 {
26  Q_OBJECT
27  public:
28  explicit QgsValueMapSearchWidgetWrapper( QgsVectorLayer* vl, int fieldIdx, QWidget* parent = 0 );
29  bool applyDirectly() override;
30 
31  protected:
32  QWidget* createWidget( QWidget* parent ) override;
33  void initWidget( QWidget* editor ) override;
34 
35  private slots:
36  void comboBoxIndexChanged( int );
37 
38  private:
39  QComboBox * mComboBox;
40 };
41 
42 #endif // QGSVALUEMAPSEARCHWIDGETWRAPPER_H
QWidget * createWidget(QWidget *parent) override
This method should create a new widget with the provided parent.
void initWidget(QWidget *editor) override
This method should initialize the editor widget with runtime data.
bool applyDirectly() override
If this is true, then this search widget should take effect directly when its expression changes...
Represents a vector layer which manages a vector based data sets.