ccAboutDialog.cpp 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //##########################################################################
  2. //# #
  3. //# CLOUDCOMPARE #
  4. //# #
  5. //# This program is free software; you can redistribute it and/or modify #
  6. //# it under the terms of the GNU General Public License as published by #
  7. //# the Free Software Foundation; version 2 or later of the License. #
  8. //# #
  9. //# This program is distributed in the hope that it will be useful, #
  10. //# but WITHOUT ANY WARRANTY; without even the implied warranty of #
  11. //# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
  12. //# GNU General Public License for more details. #
  13. //# #
  14. //# COPYRIGHT: CloudCompare project #
  15. //# #
  16. //##########################################################################
  17. #include "ccAboutDialog.h"
  18. #include "ccApplication.h"
  19. #include "ui_aboutDlg.h"
  20. ccAboutDialog::ccAboutDialog(QWidget *parent)
  21. : QDialog(parent)
  22. , mUI(new Ui::AboutDialog)
  23. {
  24. setAttribute(Qt::WA_DeleteOnClose);
  25. mUI->setupUi(this);
  26. QString compilationInfo;
  27. compilationInfo = ccApp->versionLongStr(true);
  28. compilationInfo += QStringLiteral("<br><i>Compiled with");
  29. #if defined(_MSC_VER)
  30. compilationInfo += QStringLiteral(" MSVC %1 and").arg(_MSC_VER);
  31. #endif
  32. compilationInfo += QStringLiteral(" Qt %1").arg(QT_VERSION_STR);
  33. compilationInfo += QStringLiteral("</i>");
  34. QString htmlText = mUI->labelText->text();
  35. QString enrichedHtmlText = htmlText.arg(compilationInfo);
  36. mUI->labelText->setText(enrichedHtmlText);
  37. }
  38. ccAboutDialog::~ccAboutDialog()
  39. {
  40. delete mUI;
  41. }