Skip to content

Commit

Permalink
bind actions to push buttons in feature forms
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@12218 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Nov 21, 2009
1 parent f4dc15f commit a3689bb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/qgsidentifyresults.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include <QClipboard>
#include <QDockWidget>
#include <QMenuBar>
#include <QPushButton>

#include "qgslogger.h"

Expand Down Expand Up @@ -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() ) );
}
}

Expand Down

0 comments on commit a3689bb

Please sign in to comment.