Skip to content

Commit 87205dc

Browse files
author
gsherman
committed
Added context help to vector properties dialog.
Enabled the Help button on the vector properties dialog git-svn-id: http://svn.osgeo.org/qgis/trunk@6126 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4caa8b8 commit 87205dc

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/gui/qgsvectorlayerproperties.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include "qgsuniquevaluedialog.h"
2929
#include "qgsvectordataprovider.h"
3030
#include "qgsvectorlayer.h"
31+
#include "qgscontexthelp.h"
3132
#ifdef HAVE_POSTGRESQL
3233
#include "qgspgquerybuilder.h"
3334
#include "../providers/postgres/qgspostgresprovider.h"
@@ -250,7 +251,7 @@ void QgsVectorLayerProperties::on_pbnCancel_clicked()
250251
}
251252
void QgsVectorLayerProperties::on_btnHelp_clicked()
252253
{
253-
254+
QgsContextHelp::run(context_id);
254255
}
255256
void QgsVectorLayerProperties::on_pbnOK_clicked()
256257
{

src/gui/qgsvectorlayerproperties.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ class QgsVectorLayerProperties : public QDialog, private Ui::QgsVectorLayerPrope
7878
QgsAttributeActionDialog* actionDialog;
7979
/**Buffer pixmap which takes the picture of renderers before they are assigned to the vector layer*/
8080
//QPixmap bufferPixmap;
81+
static const int context_id = 94000531;
8182
};
8283

8384
inline QString QgsVectorLayerProperties::displayName()

src/ui/qgsvectorlayerpropertiesbase.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
<item row="1" column="0" >
7272
<widget class="QPushButton" name="btnHelp" >
7373
<property name="enabled" >
74-
<bool>false</bool>
74+
<bool>true</bool>
7575
</property>
7676
<property name="text" >
7777
<string>Help</string>

0 commit comments

Comments
 (0)