Files
o3de/Gems/PhysX/Code/Editor/DocumentationLinkWidget.cpp
T
2021-06-23 10:55:22 -07:00

28 lines
667 B
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#include <PhysX_precompiled.h>
#include <Editor/DocumentationLinkWidget.h>
namespace PhysX
{
namespace Editor
{
DocumentationLinkWidget::DocumentationLinkWidget(const QString& format, const QString& address)
: QLabel()
{
setText(format.arg(address));
setTextInteractionFlags(Qt::TextBrowserInteraction);
setOpenExternalLinks(true);
setAlignment(Qt::AlignCenter);
setContentsMargins(60, 15, 60, 15);
setWordWrap(true);
}
}
}