|
|
|
@ -39,7 +39,9 @@ namespace O3DE::ProjectManager
|
|
|
|
m_overlayLabel->setObjectName("labelButtonOverlay");
|
|
|
|
m_overlayLabel->setObjectName("labelButtonOverlay");
|
|
|
|
m_overlayLabel->setWordWrap(true);
|
|
|
|
m_overlayLabel->setWordWrap(true);
|
|
|
|
m_overlayLabel->setAlignment(Qt::AlignCenter);
|
|
|
|
m_overlayLabel->setAlignment(Qt::AlignCenter);
|
|
|
|
|
|
|
|
m_overlayLabel->setTextInteractionFlags(Qt::LinksAccessibleByMouse);
|
|
|
|
m_overlayLabel->setVisible(false);
|
|
|
|
m_overlayLabel->setVisible(false);
|
|
|
|
|
|
|
|
connect(m_overlayLabel, &QLabel::linkActivated, this, &LabelButton::OnLinkActivated);
|
|
|
|
vLayout->addWidget(m_overlayLabel);
|
|
|
|
vLayout->addWidget(m_overlayLabel);
|
|
|
|
|
|
|
|
|
|
|
|
m_buildOverlayLayout = new QVBoxLayout();
|
|
|
|
m_buildOverlayLayout = new QVBoxLayout();
|
|
|
|
@ -266,15 +268,8 @@ namespace O3DE::ProjectManager
|
|
|
|
SetProjectButtonAction(tr("Build Project"), [this]() { emit BuildProject(m_projectInfo); });
|
|
|
|
SetProjectButtonAction(tr("Build Project"), [this]() { emit BuildProject(m_projectInfo); });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void ProjectButton::ShowBuildLogsLink(bool show, const QUrl& logUrl)
|
|
|
|
void ProjectButton::SetBuildLogsLink(const QUrl& logUrl)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (!logUrl.isEmpty())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
m_projectImageLabel->GetWarningLabel()->setText(tr("Click to <a href=\"logs\">view logs</a>."));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
m_projectImageLabel->GetWarningLabel()->setTextInteractionFlags(Qt::LinksAccessibleByMouse);
|
|
|
|
|
|
|
|
m_projectImageLabel->GetWarningLabel()->setVisible(show);
|
|
|
|
|
|
|
|
m_projectImageLabel->SetLogUrl(logUrl);
|
|
|
|
m_projectImageLabel->SetLogUrl(logUrl);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|