22 #include <QAbstractItemView>
41 QStringList QgsBlendModeComboBox::blendModesList()
const
43 return QStringList() <<
tr(
"Normal" )
70 QStringList myBlendModesList = blendModesList();
71 QStringList::const_iterator blendModeIt = myBlendModesList.constBegin();
73 mBlendModeToListIndex.resize( myBlendModesList.count() );
74 mListIndexToBlendMode.resize( myBlendModesList.count() );
78 int blendModeIndex = 0;
79 for ( ; blendModeIt != myBlendModesList.constEnd(); ++blendModeIt )
81 if ( *blendModeIt ==
"-" )
84 insertSeparator( index );
90 addItem( *blendModeIt );
91 mListIndexToBlendMode[
index ] = blendModeIndex;
92 mBlendModeToListIndex[ blendModeIndex ] =
index;
98 blockSignals(
false );