Skip to content
Permalink
Browse files
bind actions to push buttons in feature forms
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12218 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 21, 2009
1 parent 5e67e3d commit 27fb3128122111a39cbff4b9d12e130c03500bb3
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/qgsidentifyresults.cpp
@@ -38,6 +38,7 @@
#include <QClipboard>
#include <QDockWidget>
#include <QMenuBar>
#include <QPushButton>

#include "qgslogger.h"

@@ -733,6 +734,10 @@ void QgsIdentifyResults::featureForm()
QgsFeatureAction *a = new QgsFeatureAction( action.name(), this, vlayer, i, featItem );
ad->dialog()->addAction( a );
connect( a, SIGNAL( triggered() ), a, SLOT( execute() ) );

QPushButton *pb = ad->dialog()->findChild<QPushButton *>( action.name() );
if ( pb )
connect( pb, SIGNAL( clicked() ), a, SLOT( execute() ) );
}
}

0 comments on commit 27fb312

Please sign in to comment.