Skip to content

Commit

Permalink
[addlayerbutton] Added help button (URL is still a placeholder)
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 2, 2017
1 parent e121cfb commit 2f9b844
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/qgsdatasourcemanagerdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ void QgsDataSourceManagerDialog::vectorLayersAdded( const QStringList &layerQStr
}



QDialog *QgsDataSourceManagerDialog::providerDialog( const QString providerKey, const QString providerName, const QString icon )
{
QDialog *dlg = dynamic_cast<QDialog *>( QgsProviderRegistry::instance()->createSelectionWidget( providerKey, this, Qt::Widget, true ) );
Expand Down
2 changes: 2 additions & 0 deletions src/app/qgsdatasourcemanagerdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <QDialog>
#include "qgsoptionsdialogbase.h"
#include "qgsguiutils.h"
#include "qgshelp.h"

class QgsBrowserDockWidget;
class QgsRasterLayer;
Expand Down Expand Up @@ -48,6 +49,7 @@ class QgsDataSourceManagerDialog : public QgsOptionsDialogBase
void rasterLayerAdded( QString const &uri, QString const &baseName, QString const &providerKey );
void vectorLayerAdded( const QString &vectorLayerPath, const QString &baseName, const QString &providerKey );
void vectorLayersAdded( const QStringList &layerQStringList, const QString &enc, const QString &dataSourceType );
void on_buttonBox_helpRequested() { QgsHelp::openHelp( QStringLiteral( "TODO_PLACEHOLDER.html" ) ); }

signals:
//! For signal forwarding to QgisApp
Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsdatasourcemanagerdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
<item row="0" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
<set>QDialogButtonBox::Close|QDialogButtonBox::Help</set>
</property>
</widget>
</item>
Expand Down

0 comments on commit 2f9b844

Please sign in to comment.