musredit 1.0.0
Loading...
Searching...
No Matches
PMusrEditAbout.cpp
Go to the documentation of this file.
1/****************************************************************************
2
3 PMusrEditAbout.cpp
4
5 Author: Andreas Suter
6 e-mail: andreas.suter@psi.ch
7
8*****************************************************************************/
9
10/***************************************************************************
11 * Copyright (C) 2010-2026 by Andreas Suter *
12 * andreas.suter@psi.ch *
13 * *
14 * This program is free software; you can redistribute it and/or modify *
15 * it under the terms of the GNU General Public License as published by *
16 * the Free Software Foundation; either version 2 of the License, or *
17 * (at your option) any later version. *
18 * *
19 * This program is distributed in the hope that it will be useful, *
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
22 * GNU General Public License for more details. *
23 * *
24 * You should have received a copy of the GNU General Public License *
25 * along with this program; if not, write to the *
26 * Free Software Foundation, Inc., *
27 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
28 ***************************************************************************/
29
45
46#include "config.h"
47#ifdef HAVE_GIT_REV_H
48#include "git-revision.h"
49#endif
50#include "PMusrEditAbout.h"
51
52//---------------------------------------------------------------------------
117PMusrEditAbout::PMusrEditAbout(QWidget *parent) : QDialog(parent)
118{
119 setupUi(this);
120
121#ifdef HAVE_GIT_REV_H
122 fGitBranch_label->setText(QString("git-branch: %1").arg(GIT_BRANCH));
123 fGitRev_label->setText(QString("git-rev: %1").arg(GIT_CURRENT_SHA1));
124#else
125 fGitBranch_label->setText(QString("git-branch: unknown"));
126 fGitRev_label->setText(QString("git-rev: unknown"));
127#endif
128 fMusrfitVersion_label->setText(QString("musrfit-version: %1 (%2)").arg(PACKAGE_VERSION).arg(BUILD_TYPE));
129 fRootVersion_label->setText(QString("ROOT-version: %1").arg(ROOT_VERSION_USED));
130
131 setModal(true);
132}
133
134//---------------------------------------------------------------------------
135// END
136//---------------------------------------------------------------------------
About dialog for the musredit application.
PMusrEditAbout(QWidget *parent=nullptr)
Constructs the About dialog.