Skip to content

Commit

Permalink
Add new effects to bottom of stack instead of top
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 20, 2015
1 parent 028467e commit 8cc6c32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/effects/qgseffectstackpropertieswidget.cpp
Expand Up @@ -260,10 +260,10 @@ void QgsEffectStackPropertiesWidget::setWidget( QWidget* widget )
void QgsEffectStackPropertiesWidget::addEffect()
{
QgsPaintEffect* newEffect = new QgsDrawSourceEffect();
mStack->appendEffect( newEffect );
mStack->insertEffect( 0, newEffect );

EffectItem *newEffectItem = new EffectItem( newEffect, this );
mModel->invisibleRootItem()->insertRow( 0, newEffectItem );
mModel->invisibleRootItem()->insertRow( mStack->count() - 1, newEffectItem );

mEffectsList->setCurrentIndex( mModel->indexFromItem( newEffectItem ) );
updateUi();
Expand Down

0 comments on commit 8cc6c32

Please sign in to comment.