From b804a6da858bd130a54a8c7ccafd085302a2b3e8 Mon Sep 17 00:00:00 2001 From: Gerhard Sittig Date: Sat, 18 Aug 2018 17:47:03 +0200 Subject: [PATCH] about: move Pulseview version information into the text box Move the application's version information out of the caption and into the text box. So that it resides with the libraries' version information, and is accessible via clipboard for reports. This addresses part of bug #1213, and fixes all of #1264. --- pv/dialogs/settings.cpp | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pv/dialogs/settings.cpp b/pv/dialogs/settings.cpp index 5b33272b..3507c472 100644 --- a/pv/dialogs/settings.cpp +++ b/pv/dialogs/settings.cpp @@ -314,14 +314,12 @@ QWidget *Settings::get_about_page(QWidget *parent) const QLabel *icon = new QLabel(); icon->setPixmap(QPixmap(QString::fromUtf8(":/icons/pulseview.svg"))); - /* Setup the version field */ - QLabel *version_info = new QLabel(); - version_info->setText(tr("%1 %2
%3
%4") - .arg(QApplication::applicationName(), - QApplication::applicationVersion(), + /* Setup the license field, with the project homepage link. */ + QLabel *gpl_home_info = new QLabel(); + gpl_home_info->setText(tr("%1
%2").arg( tr("GNU GPL, version 3 or later"), QApplication::organizationDomain())); - version_info->setOpenExternalLinks(true); + gpl_home_info->setOpenExternalLinks(true); shared_ptr context = device_manager_.context(); @@ -331,7 +329,16 @@ QWidget *Settings::get_about_page(QWidget *parent) const s.append(""); + /* Application info */ + s.append(""); + + s.append(QString("") + .arg(QApplication::applicationName(), + QApplication::applicationVersion())); + /* Library info */ + s.append(""); s.append(""); @@ -466,7 +473,7 @@ QWidget *Settings::get_about_page(QWidget *parent) const QGridLayout *layout = new QGridLayout(); layout->addWidget(icon, 0, 0, 1, 1); - layout->addWidget(version_info, 0, 1, 1, 1); + layout->addWidget(gpl_home_info, 0, 1, 1, 1); layout->addWidget(support_list, 1, 1, 1, 1); QWidget *page = new QWidget(parent); -- 2.30.2
" + + tr("Application:") + "
%1%2
" + tr("Libraries and features:") + "