Add link to horizons website

This commit is contained in:
Malin Ejdbo
2022-02-01 14:52:33 +01:00
parent 135b6a3c5a
commit 8802970901
2 changed files with 17 additions and 2 deletions

View File

@@ -145,13 +145,17 @@ DeltaTimesDialog QListWidget {
/*
* Camera
*/
CameraDialog QLabel#error-message {
CameraDialog QLabel#error-message {
min-width: 10em;
}
/*
* Horizons dialog
*/
QPlainTextEdit#log {
QPlainTextEdit#log {
font-family: Courier;
}
QLabel#url {
font-weight: normal;
}

View File

@@ -281,6 +281,17 @@ void HorizonsDialog::createWidgets() {
QLabel* generateLabel = new QLabel("Generate a new Horizons file:", this);
generateLabel->setObjectName("heading");
layout->addWidget(generateLabel);
QUrl website("https://ssd.jpl.nasa.gov/horizons/");
QLabel* infoLabel = new QLabel("<p>For more information about the Horizons system"
"please visit: <a href=\"https://ssd.jpl.nasa.gov/horizons/\">"
"https://ssd.jpl.nasa.gov/horizons/</a></p>",
this
);
infoLabel->setWordWrap(true);
infoLabel->setObjectName("url");
infoLabel->setOpenExternalLinks(true);
layout->addWidget(infoLabel);
}
{
QBoxLayout* container = new QHBoxLayout(this);