Gui: Compile CONTRIBUTORS into Qt resources
This commit is contained in:
@@ -3,13 +3,12 @@ configure_file(ThirdPartyLibraries.html
|
||||
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DOCDIR}/ThirdPartyLibraries.html COPYONLY)
|
||||
configure_file(LICENSE.html
|
||||
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DOCDIR}/LICENSE.html COPYONLY)
|
||||
configure_file(CONTRIBUTORS
|
||||
${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_DOCDIR}/CONTRIBUTORS COPYONLY)
|
||||
|
||||
# The CONTRIBUTORS file is now compiled into the FreeCAD GUI Qt resource file
|
||||
|
||||
INSTALL(FILES
|
||||
ThirdPartyLibraries.html
|
||||
LICENSE.html
|
||||
CONTRIBUTORS
|
||||
DESTINATION ${CMAKE_INSTALL_DOCDIR}
|
||||
)
|
||||
|
||||
|
||||
@@ -259,4 +259,7 @@
|
||||
<qresource prefix="/icons/FreeCAD-default/scalable">
|
||||
<file>Std_ViewScreenShot.svg</file>
|
||||
</qresource>
|
||||
<qresource prefix="/doc">
|
||||
<file alias="CONTRIBUTORS">../../Doc/CONTRIBUTORS</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -383,8 +383,7 @@ public:
|
||||
|
||||
void AboutDialog::showCredits()
|
||||
{
|
||||
QString creditsFileURL = QString::fromLatin1("%1/CONTRIBUTORS")
|
||||
.arg(QString::fromUtf8(App::Application::getHelpDir().c_str()));
|
||||
auto creditsFileURL = QLatin1String(":/doc/CONTRIBUTORS");
|
||||
QFile creditsFile(creditsFileURL);
|
||||
|
||||
if (!creditsFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
|
||||
Reference in New Issue
Block a user