Skip to content
Permalink
Browse files

Make signal QgsComposerView::selectedItemChanged with non-const point…

…er to avoid problems with some PyQt versions

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14743 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Nov 22, 2010
1 parent 6b9214b commit e3bc1cfaee3e138c5165c2c621c0efd9994693ac
Showing with 3 additions and 3 deletions.
  1. +1 −1 python/gui/qgscomposerview.sip
  2. +1 −1 src/app/composer/qgscomposer.cpp
  3. +1 −1 src/gui/qgscomposerview.h
@@ -83,7 +83,7 @@ class QgsComposerView: QGraphicsView

signals:
/**Is emitted when selected item changed. If 0, no item is selected*/
void selectedItemChanged( const QgsComposerItem* selected );
void selectedItemChanged( QgsComposerItem* selected );
/**Ist emittted when new composer label has been added to the view*/
void composerLabelAdded( QgsComposerLabel* label );
/**Is emitted when new composer map has been added to the view*/
@@ -275,7 +275,7 @@ void QgsComposer::setupTheme()

void QgsComposer::connectSlots()
{
connect( mView, SIGNAL( selectedItemChanged( const QgsComposerItem* ) ), this, SLOT( showItemOptions( const QgsComposerItem* ) ) );
connect( mView, SIGNAL( selectedItemChanged( QgsComposerItem* ) ), this, SLOT( showItemOptions( QgsComposerItem* ) ) );
connect( mView, SIGNAL( composerLabelAdded( QgsComposerLabel* ) ), this, SLOT( addComposerLabel( QgsComposerLabel* ) ) );
connect( mView, SIGNAL( composerMapAdded( QgsComposerMap* ) ), this, SLOT( addComposerMap( QgsComposerMap* ) ) );
connect( mView, SIGNAL( itemRemoved( QgsComposerItem* ) ), this, SLOT( deleteItem( QgsComposerItem* ) ) );
@@ -131,7 +131,7 @@ class GUI_EXPORT QgsComposerView: public QGraphicsView

signals:
/**Is emitted when selected item changed. If 0, no item is selected*/
void selectedItemChanged( const QgsComposerItem* selected );
void selectedItemChanged( QgsComposerItem* selected );
/**Is emitted when new composer arrow has been added to the view*/
void composerArrowAdded( QgsComposerArrow* arrow );
/**Is emitted when new composer label has been added to the view*/

0 comments on commit e3bc1cf

Please sign in to comment.
You can’t perform that action at this time.