Skip to content

Commit

Permalink
Updating hyperlink
Browse files Browse the repository at this point in the history
  • Loading branch information
zcobell committed Jul 8, 2019
1 parent f26d27d commit 971090c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
12 changes: 7 additions & 5 deletions MetOceanViewer/src/crmsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ static QString s_crmsInstructions =
"<html><head/><body><p>You can manually convert the CIMS database to "
"netCDF format for MetOceanViewer using the following built-in processing. "
"However, the process is completed automatically and a publicly accessable "
"database is updated weekly <a href=\" "
"https://metoceanviewer.s3.amazonaws.com/crms.nc\"><span style=\""
"text-decoration : underline;color : "
"#0000ff;\">here.</span></a></p><p>Place the downloaded file "
"here: " +
"database is updated every Monday morning"
" <a href=\"https://metoceanviewer.s3.amazonaws.com/crms.nc\">"
"here</a>.</p>"
"<p>Place the downloaded file here: " +
Generic::crmsDataFile() + "</p></body></html>";

CrmsDialog::CrmsDialog(QWidget *parent)
Expand All @@ -42,7 +41,10 @@ CrmsDialog::CrmsDialog(QWidget *parent)
ui->progressbar->setValue(0);
ui->progressbar->hide();
this->m_thread = new QThread(this);
ui->label_crmsInstructions->setTextFormat(Qt::RichText);
ui->label_crmsInstructions->setText(s_crmsInstructions);
ui->label_crmsInstructions->setTextInteractionFlags(Qt::TextBrowserInteraction);
ui->label_crmsInstructions->setOpenExternalLinks(true);
}

CrmsDialog::~CrmsDialog() { delete ui; }
Expand Down
3 changes: 3 additions & 0 deletions MetOceanViewer/ui/crmsdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
</widget>
</item>
<item>
Expand Down

0 comments on commit 971090c

Please sign in to comment.