mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 22:25:04 -04:00
Enabled the Icon for the Voip Plugin
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5425 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c992cb6aea
commit
f90c7742cc
2 changed files with 18 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
|||
#include <QTranslator>
|
||||
#include <QApplication>
|
||||
#include <QString>
|
||||
#include <QIcon>
|
||||
|
||||
#include "VOIPPlugin.h"
|
||||
#include "interface/rsvoip.h"
|
||||
|
@ -13,6 +14,8 @@
|
|||
#include "gui/PluginGUIHandler.h"
|
||||
#include "gui/PluginNotifier.h"
|
||||
|
||||
#define IMAGE_VOIP ":/images/talking_on.svg"
|
||||
|
||||
static void *inited = new VOIPPlugin() ;
|
||||
|
||||
extern "C" {
|
||||
|
@ -43,6 +46,7 @@ VOIPPlugin::VOIPPlugin()
|
|||
mPlugInHandler = NULL;
|
||||
mPeers = NULL;
|
||||
config_page = NULL ;
|
||||
mIcon = NULL ;
|
||||
|
||||
mPluginGUIHandler = new PluginGUIHandler ;
|
||||
mPluginNotifier = new PluginNotifier ;
|
||||
|
@ -95,6 +99,17 @@ void VOIPPlugin::setPlugInHandler(RsPluginHandler *pgHandler)
|
|||
mPlugInHandler = pgHandler;
|
||||
}
|
||||
|
||||
QIcon *VOIPPlugin::qt_icon() const
|
||||
{
|
||||
if (mIcon == NULL) {
|
||||
Q_INIT_RESOURCE(VOIP_images);
|
||||
|
||||
mIcon = new QIcon(IMAGE_VOIP);
|
||||
}
|
||||
|
||||
return mIcon;
|
||||
}
|
||||
|
||||
std::string VOIPPlugin::getShortPluginDescription() const
|
||||
{
|
||||
return QApplication::translate("VOIP", "This plugin provides voice communication between friends in RetroShare.").toUtf8().constData();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue