File indexing completed on 2024-06-23 05:33:16
0001 /*************************************************************************** 0002 * Copyright (C) 2018 by Renaud Guezennec * 0003 * http://www.rolisteam.org/ * 0004 * * 0005 * This file is part of rcse * 0006 * * 0007 * rcse is free software; you can redistribute it and/or modify * 0008 * it under the terms of the GNU General Public License as published by * 0009 * the Free Software Foundation; either version 2 of the License, or * 0010 * (at your option) any later version. * 0011 * * 0012 * rcse is distributed in the hope that it will be useful, * 0013 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0015 * GNU General Public License for more details. * 0016 * * 0017 * You should have received a copy of the GNU General Public License * 0018 * along with this program; if not, write to the * 0019 * Free Software Foundation, Inc., * 0020 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 0021 ***************************************************************************/ 0022 #include "aboutrcse.h" 0023 #include "ui_aboutrcse.h" 0024 0025 AboutRcse::AboutRcse(QString version, QWidget *parent) : 0026 QDialog(parent), 0027 ui(new Ui::AboutRcse), 0028 m_version(version) 0029 { 0030 ui->setupUi(this); 0031 0032 0033 QString text("Rolisteam Character Sheet Editor v%1<br/><br/>" 0034 "This software is dedicated to create character sheet for Rolisteam v%2 and more.<br/>" 0035 "Please check the documentation at: doc.rolisteam.org"); 0036 ui->label->setText(text.arg(m_version).arg(m_version)); 0037 } 0038 0039 AboutRcse::~AboutRcse() 0040 { 0041 delete ui; 0042 } 0043 0044 QString AboutRcse::version() const 0045 { 0046 return m_version; 0047 } 0048 0049 void AboutRcse::setVersion(const QString &version) 0050 { 0051 if(version == m_version) 0052 return; 0053 m_version = version; 0054 emit versionChanged(); 0055 }