Skip to content
Permalink
Browse files

bind actions to push buttons in feature forms

git-svn-id: http://svn.osgeo.org/qgis/trunk@12218 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Nov 21, 2009
1 parent f4dc15f commit a3689bb0cb21550e24f99c011f20bf75ae50d61c
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 a3689bb

Please sign in to comment.