22 #include <QAbstractItemView>
43 return QStringList() <<
tr(
"Normal" )
71 QStringList::const_iterator blendModeIt = myBlendModesList.constBegin();
78 int blendModeIndex = 0;
79 for ( ; blendModeIt != myBlendModesList.constEnd(); ++blendModeIt )
81 if ( *blendModeIt ==
"-" )
84 insertSeparator( index );
90 addItem( *blendModeIt );
98 blockSignals(
false );
std::vector< int > mBlendModeToListIndex
Used to map blend modes across to their corresponding.
QgsBlendModeComboBox(QWidget *parent=0)
BlendMode
Blending modes enum defining the available composition modes that can be used when rendering a layer...
void setBlendMode(QPainter::CompositionMode blendMode)
Function to set the selected blend mode from QPainter::CompositionMode.
QStringList blendModesList() const
Returns a list of grouped blend modes (with seperators)
static QPainter::CompositionMode getCompositionMode(const QgsMapRenderer::BlendMode &blendMode)
Returns a QPainter::CompositionMode corresponding to a BlendMode Added in 1.9.
QPainter::CompositionMode blendMode()
Function to read the selected blend mode as QPainter::CompositionMode.
virtual ~QgsBlendModeComboBox()
std::vector< int > mListIndexToBlendMode
static QgsMapRenderer::BlendMode getBlendModeEnum(const QPainter::CompositionMode &blendMode)
Returns a BlendMode corresponding to a QPainter::CompositionMode Added in 1.9.