mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 00:25:16 -04:00
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:
parent
2664cf2f9a
commit
400d3179e8
9 changed files with 33 additions and 68 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue