Skip to content
Permalink
Browse files
Make Help button work in AddVirtual layer dialog
  • Loading branch information
rduivenvoorde authored and nyalldawson committed Sep 6, 2021
1 parent 6b78485 commit f0f52030ac1038ade9ad7fa05f138ac0adc3ec3b
@@ -42,6 +42,7 @@ QgsVirtualLayerSourceSelect::QgsVirtualLayerSourceSelect( QWidget *parent, Qt::W
{
setupUi( this );
setupButtons( buttonBox );
connect( buttonBox, &QDialogButtonBox::helpRequested, this, &QgsVirtualLayerSourceSelect::showHelp );

mQueryEdit->setLineNumbersVisible( true );

@@ -419,3 +420,8 @@ void QgsVirtualLayerSourceSelect::addButtonClicked()
accept();
}
}

void QgsVirtualLayerSourceSelect::showHelp()
{
QgsHelp::openHelp( QStringLiteral( "managing_data_source/create_layers.html#creating-virtual-layers" ) );
}
@@ -21,6 +21,7 @@ email : hugo dot mercier at oslandia dot com

#include "ui_qgsvirtuallayersourceselectbase.h"
#include "qgis.h"
#include "qgshelp.h"
#include "qgsguiutils.h"
#include "qgsvirtuallayerdefinition.h"
#include "qgsproviderregistry.h"
@@ -43,6 +44,7 @@ class QgsVirtualLayerSourceSelect : public QgsAbstractDataSourceWidget, private
void refresh() override;
void addButtonClicked() override;


private slots:
void testQuery();
void browseCRS();
@@ -52,6 +54,7 @@ class QgsVirtualLayerSourceSelect : public QgsAbstractDataSourceWidget, private
void importLayer();
void tableRowChanged( const QModelIndex &current, const QModelIndex &previous );
void updateLayersList();
void showHelp();


private:

0 comments on commit f0f5203

Please sign in to comment.