Skip to content

Commit a3689bb

Browse files
author
jef
committedNov 21, 2009
bind actions to push buttons in feature forms
git-svn-id: http://svn.osgeo.org/qgis/trunk@12218 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent f4dc15f commit a3689bb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/app/qgsidentifyresults.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include <QClipboard>
3939
#include <QDockWidget>
4040
#include <QMenuBar>
41+
#include <QPushButton>
4142

4243
#include "qgslogger.h"
4344

@@ -733,6 +734,10 @@ void QgsIdentifyResults::featureForm()
733734
QgsFeatureAction *a = new QgsFeatureAction( action.name(), this, vlayer, i, featItem );
734735
ad->dialog()->addAction( a );
735736
connect( a, SIGNAL( triggered() ), a, SLOT( execute() ) );
737+
738+
QPushButton *pb = ad->dialog()->findChild<QPushButton *>( action.name() );
739+
if ( pb )
740+
connect( pb, SIGNAL( clicked() ), a, SLOT( execute() ) );
736741
}
737742
}
738743

0 commit comments

Comments
 (0)
Please sign in to comment.