QGIS API Documentation 3.41.0-Master (cea29feecf2)
Loading...
Searching...
No Matches
Signals | Public Member Functions | List of all members
QgsAggregateToolButton Class Reference

Offers a toolbutton to choose between different aggregate functions. More...

#include <qgsaggregatetoolbutton.h>

Inheritance diagram for QgsAggregateToolButton:
Inheritance graph
[legend]

Signals

void activeChanged ()
 A function has been selected or deselected.
 
void aggregateChanged ()
 The function name of the selected aggregate has changed.
 

Public Member Functions

 QgsAggregateToolButton ()
 Constructor.
 
bool active () const
 When this flag is false, the aggregate will be deactivated.
 
QString aggregate () const
 The function name of the selected aggregate or a Null String if none is chosen.
 
void setActive (bool active)
 When this flag is false, the aggregate will be deactivated.
 
void setAggregate (const QString &aggregate)
 The function name of the selected aggregate or a Null String if none is chosen.
 
void setType (QMetaType::Type type)
 Based on the type of underlying data, some aggregates will be available or not.
 
Q_DECL_DEPRECATED void setType (QVariant::Type type)
 Based on the type of underlying data, some aggregates will be available or not.
 
QMetaType::Type type () const
 Based on the type of underlying data, some aggregates will be available or not.
 

Detailed Description

Offers a toolbutton to choose between different aggregate functions.

Functions are filtered based on the type.

Definition at line 32 of file qgsaggregatetoolbutton.h.

Constructor & Destructor Documentation

◆ QgsAggregateToolButton()

QgsAggregateToolButton::QgsAggregateToolButton ( )

Constructor.

Definition at line 23 of file qgsaggregatetoolbutton.cpp.

Member Function Documentation

◆ active()

bool QgsAggregateToolButton::active ( ) const

When this flag is false, the aggregate will be deactivated.

I.e. no aggregate is chosen.

Definition at line 120 of file qgsaggregatetoolbutton.cpp.

◆ activeChanged

void QgsAggregateToolButton::activeChanged ( )
signal

A function has been selected or deselected.

◆ aggregate()

QString QgsAggregateToolButton::aggregate ( ) const

The function name of the selected aggregate or a Null String if none is chosen.

Definition at line 93 of file qgsaggregatetoolbutton.cpp.

◆ aggregateChanged

void QgsAggregateToolButton::aggregateChanged ( )
signal

The function name of the selected aggregate has changed.

◆ setActive()

void QgsAggregateToolButton::setActive ( bool  active)

When this flag is false, the aggregate will be deactivated.

I.e. no aggregate is chosen.

Definition at line 81 of file qgsaggregatetoolbutton.cpp.

◆ setAggregate()

void QgsAggregateToolButton::setAggregate ( const QString &  aggregate)

The function name of the selected aggregate or a Null String if none is chosen.

Definition at line 98 of file qgsaggregatetoolbutton.cpp.

◆ setType() [1/2]

void QgsAggregateToolButton::setType ( QMetaType::Type  type)

Based on the type of underlying data, some aggregates will be available or not.

Definition at line 35 of file qgsaggregatetoolbutton.cpp.

◆ setType() [2/2]

void QgsAggregateToolButton::setType ( QVariant::Type  type)

Based on the type of underlying data, some aggregates will be available or not.

Deprecated:
QGIS 3.38. Use the method with a QMetaType::Type argument instead.

Definition at line 44 of file qgsaggregatetoolbutton.cpp.

◆ type()

QMetaType::Type QgsAggregateToolButton::type ( ) const

Based on the type of underlying data, some aggregates will be available or not.

Definition at line 125 of file qgsaggregatetoolbutton.cpp.


The documentation for this class was generated from the following files: