Fixed display of version information.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7998 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-03-08 13:31:44 +00:00
parent 2664cf2f9a
commit 400d3179e8
9 changed files with 33 additions and 68 deletions

View file

@ -163,9 +163,14 @@ Rshare::~Rshare()
}
QString Rshare::retroshareVersion()
QString Rshare::retroshareVersion(bool withRevision)
{
return QString("%1.%2.%3%4").arg(RS_MAJOR_VERSION).arg(RS_MINOR_VERSION).arg(RS_BUILD_NUMBER).arg(RS_BUILD_NUMBER_ADD);
QString version = QString("%1.%2.%3%4").arg(RS_MAJOR_VERSION).arg(RS_MINOR_VERSION).arg(RS_BUILD_NUMBER).arg(RS_BUILD_NUMBER_ADD);
if (withRevision) {
version += QString(" %1 %2").arg(tr("Revision")).arg(RS_REVISION_NUMBER);
}
return version;
}
/** Enters the main event loop and waits until exit() is called. The signal