From fcf3870b7c0f30a5991e518ad8a404a9d38c3a45 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Fri, 26 Jan 2018 23:09:31 +0100 Subject: Using boost::program_options instead of libconfig --- src/forms/aboutdialog.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/forms/aboutdialog.cpp') diff --git a/src/forms/aboutdialog.cpp b/src/forms/aboutdialog.cpp index d9c75c3..89cb23e 100644 --- a/src/forms/aboutdialog.cpp +++ b/src/forms/aboutdialog.cpp @@ -9,11 +9,11 @@ #include "aboutdialog.h" #include "ui_aboutdialog.h" #include "version.h" -#include +#include // The extra level of indirection will allow the preprocessor to expand the macros before they are converted to strings. -#define STR_HELPER(x) #x -#define STR(x) STR_HELPER(x) +#define STRINGIFY(x) #x +#define STR(x) STRINGIFY(x) // compiler // clang also defines __GNUC__, so we need to check for clang first @@ -25,9 +25,6 @@ #define compiler "unknown compiler"; #endif -// libconfig -#define LIBCONFIG_VERSION_STR STR(LIBCONFIGXX_VER_MAJOR) "." STR(LIBCONFIGXX_VER_MINOR) "." STR(LIBCONFIGXX_VER_REVISION) - AboutDialog::AboutDialog(QWidget *parent) : QDialog(parent) , ui(new Ui::AboutDialog) @@ -64,7 +61,7 @@ AboutDialog::AboutDialog(QWidget *parent) "Compiled with " compiler "

" "

    " "
  • Qt " QT_VERSION_STR "
  • " - "
  • libconfig " LIBCONFIG_VERSION_STR "
  • " + "
  • Boost " BOOST_LIB_VERSION "
  • " "

")); ui->toolBox->addItem(libsLabel, tr("Details")); } -- cgit v1.2.1