Added version information of the libraries to HelpDialog.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8446 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-06-14 17:45:26 +00:00
parent b0f7b70ea2
commit 0ca37f6756
14 changed files with 435 additions and 286 deletions

View file

@ -37,6 +37,9 @@
#include "gui/SoundManager.h"
#include "gui/chat/ChatWidget.h"
#include <opencv/cv.h>
#include <speex/speex.h>
#define IMAGE_VOIP ":/images/talking_on.svg"
static void *inited = new VOIPPlugin() ;
@ -181,6 +184,16 @@ std::string VOIPPlugin::getPluginName() const
return QApplication::translate("VOIPPlugin", "VOIP").toUtf8().constData();
}
void VOIPPlugin::getLibraries(std::list<RsLibraryInfo> &libraries)
{
libraries.push_back(RsLibraryInfo("OpenCV", CV_VERSION));
const char *speexVersion = NULL;
if (speex_lib_ctl(SPEEX_LIB_GET_VERSION_STRING, &speexVersion) == 0 && speexVersion) {
libraries.push_back(RsLibraryInfo("Speex", speexVersion));
}
}
QTranslator* VOIPPlugin::qt_translator(QApplication */*app*/, const QString& languageCode, const QString& externalDir) const
{
if (languageCode == "en") {