Skip to content

Commit

Permalink
[ui] Fix function help hyperlinks not working
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Aug 14, 2019
1 parent 7077c3a commit d2151af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -48,6 +48,7 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
, mProject( QgsProject::instance() )
{
setupUi( this );

connect( btnRun, &QToolButton::pressed, this, &QgsExpressionBuilderWidget::btnRun_pressed );
connect( btnNewFile, &QToolButton::pressed, this, &QgsExpressionBuilderWidget::btnNewFile_pressed );
connect( cmbFileNames, &QListWidget::currentItemChanged, this, &QgsExpressionBuilderWidget::cmbFileNames_currentItemChanged );
Expand All @@ -59,6 +60,8 @@ QgsExpressionBuilderWidget::QgsExpressionBuilderWidget( QWidget *parent )
connect( lblPreview, &QLabel::linkActivated, this, &QgsExpressionBuilderWidget::lblPreview_linkActivated );
connect( mValuesListView, &QListView::doubleClicked, this, &QgsExpressionBuilderWidget::mValuesListView_doubleClicked );

txtHelpText->setOpenExternalLinks( true );

mValueGroupBox->hide();
// highlighter = new QgsExpressionHighlighter( txtExpressionString->document() );

Expand Down
2 changes: 1 addition & 1 deletion src/ui/qgsexpressionbuilder.ui
Expand Up @@ -509,7 +509,7 @@
<number>0</number>
</property>
<item>
<widget class="QTextEdit" name="txtHelpText">
<widget class="QTextBrowser" name="txtHelpText">
<property name="readOnly">
<bool>true</bool>
</property>
Expand Down

0 comments on commit d2151af

Please sign in to comment.