26 , mUuid( QUuid::createUuid().toString() )
40 elem.setAttribute(
"uuid",
mUuid );
41 elem.setAttribute(
"name",
mName );
42 elem.setAttribute(
"show",
mEnabled );
49 mUuid = itemElem.attribute(
"uuid" );
50 mName = itemElem.attribute(
"name" );
51 mEnabled = ( itemElem.attribute(
"show",
"0" ) !=
"0" );
82 for (
int i =
mItems.size() - 1; i >= 0; --i )
84 if (
mItems.at( i )->id() == itemId )
101 if ( index >=
mItems.size() - 1 )
105 mItems.swap( index, index + 1 );
121 mItems.swap( index, index - 1 );
126 QList< QgsComposerMapItem* >::const_iterator it =
mItems.constBegin();
127 for ( ; it !=
mItems.constEnd(); ++it )
129 if (( *it )->id() == itemId )
140 QList< QgsComposerMapItem* >::const_iterator it =
mItems.begin();
141 for ( ; it !=
mItems.end(); ++it )
143 if (( *it )->id() == itemId )
154 if ( index <
mItems.length() )
156 return mItems.at( index );
169 QList< QgsComposerMapItem* > list;
170 QList< QgsComposerMapItem* >::const_iterator it =
mItems.begin();
171 for ( ; it !=
mItems.end(); ++it )
181 QList< QgsComposerMapItem* >::const_iterator itemIt =
mItems.constBegin();
182 for ( ; itemIt !=
mItems.constEnd(); ++itemIt )
184 ( *itemIt )->writeXML( elem, doc );
197 QList< QgsComposerMapItem* >::const_iterator itemIt =
mItems.constBegin();
198 for ( ; itemIt !=
mItems.constEnd(); ++itemIt )
200 ( *itemIt )->draw( painter );
206 QList< QgsComposerMapItem* >::const_iterator it =
mItems.constBegin();
207 for ( ; it !=
mItems.constEnd(); ++it )
209 if (( *it )->enabled() && ( *it )->usesAdvancedEffects() )