#include "../app_version.h"
about::about(QWidget *parent):QDialog(parent){
- setupUi(this);
- this->setMinimumSize(this->size());
- this->setMaximumSize(this->size());
- this->version_body=tr("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">"
- "<html>"
- "<head>"
- "</head>"
- "<body>"
- "<p>Generation:%1<br />Revision:%2</p>"
- "<p>Author:<br />"
- "<a href=\"http://hysoftware.net/\">Hiroaki Yamamoto</a></p>"
- "<p>This software is being distributed under the terms of the latest version of The GNU General Public License(GPL). You can copy this software, modify it, and/or redistribute it. However, In order to redistribute this software, releasing its sourcecode is needed.</p>"
- "<p>I'll welcome bug reports. If you found bugs, please let me know.</p></body></html>");
- this->versiontext->setHtml(this->version_body);
- this->setVersion(gen,rev);
+ setupUi(this);
+ this->setMinimumSize(this->size());
+ this->setMaximumSize(this->size());
+ this->version_body=tr("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">"
+ "<html>"
+ "<head>"
+ "</head>"
+ "<body>"
+ "<p>Generation:%1<br />Revision:%2</p>"
+ "<p>Author:<br />"
+ "<a href=\"http://hysoftware.net/\">Hiroaki Yamamoto</a></p>"
+ "<p>This software is being distributed under the terms of the latest version of The GNU General Public License(GPL). You can copy this software, modify it, and/or redistribute it. However, In order to redistribute this software, releasing its sourcecode is needed.</p>"
+ "<p>I'll welcome bug reports. If you found bugs, please let me know.</p></body></html>");
+ this->versiontext->setHtml(this->version_body);
+ this->setVersion(gen,rev);
}
void about::setGenVer(quint16 genVer){
- this->_gen=genVer;
- this->versiontext->setHtml(this->version_body.arg(this->genVer()).arg(this->revVer()));
+ this->_gen=genVer;
+ this->versiontext->setHtml(this->version_body.arg(this->genVer()).arg(this->revVer()));
}
quint16 about::genVer(){return this->_gen;}
void about::setRevVer(quint16 revVer){
- this->_rev=revVer;
- this->versiontext->setHtml(this->version_body.arg(this->genVer()).arg(this->revVer()));
-}
-quint16 about::revVer(){
- return this->_rev;
+ this->_rev=revVer;
+ this->versiontext->setHtml(this->version_body.arg(this->genVer()).arg(this->revVer()));
}
+quint16 about::revVer(){return this->_rev;}
void about::setVersion(quint16 genVer, quint16 revVer){
- this->setGenVer(genVer);
- this->setRevVer(revVer);
+ this->setGenVer(genVer);
+ this->setRevVer(revVer);
}