QGIS API Documentation
2.12.0-Lyon
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
gui
editorwidgets
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
19
#include "
qgsdefaultsearchwidgetwrapper.h
"
20
#include <QComboBox>
21
22
23
24
class
GUI_EXPORT
QgsValueMapSearchWidgetWrapper
:
public
QgsDefaultSearchWidgetWrapper
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
QgsDefaultSearchWidgetWrapper::createWidget
QWidget * createWidget(QWidget *parent) override
This method should create a new widget with the provided parent.
Definition:
qgsdefaultsearchwidgetwrapper.cpp:79
QgsDefaultSearchWidgetWrapper::initWidget
void initWidget(QWidget *editor) override
This method should initialize the editor widget with runtime data.
Definition:
qgsdefaultsearchwidgetwrapper.cpp:89
qgsdefaultsearchwidgetwrapper.h
QgsValueMapSearchWidgetWrapper
Definition:
qgsvaluemapsearchwidgetwrapper.h:24
QgsDefaultSearchWidgetWrapper
Wraps a search widget.
Definition:
qgsdefaultsearchwidgetwrapper.h:29
QgsDefaultSearchWidgetWrapper::applyDirectly
bool applyDirectly() override
If this is true, then this search widget should take effect directly when its expression changes...
Definition:
qgsdefaultsearchwidgetwrapper.cpp:84
QgsVectorLayer
Represents a vector layer which manages a vector based data sets.
Definition:
qgsvectorlayer.h:628
QComboBox
Generated on Sat Oct 24 2015 04:11:25 for QGIS API Documentation by
1.8.9.1