23 #include <QSizePolicy> 36 void QgsValueMapSearchWidgetWrapper::comboBoxIndexChanged(
int idx )
69 mComboBox = qobject_cast<
QComboBox*>( editor );
75 mComboBox->
addItem(
tr(
"Please select" ),
"" );
79 mComboBox->
addItem( it.key(), it.value() );
82 connect( mComboBox, SIGNAL( currentIndexChanged(
int ) ),
this, SLOT( comboBoxIndexChanged(
int ) ) );
static QString quotedColumnRef(QString name)
Returns a quoted column reference (in double quotes)
QgsFields fields() const
Returns the list of fields of this layer.
const_iterator constBegin() const
QString tr(const char *sourceText, const char *disambiguation, int n)
void addItem(const QString &text, const QVariant &userData)
QString name() const
Gets the name of the field.
const_iterator constEnd() const
const QgsField & at(int i) const
Get field at particular index (must be in range 0..N-1)
QVariant itemData(int index, int role) const
QString & replace(int position, int n, QChar after)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
Represents a vector layer which manages a vector based data sets.
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const