mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 07:29:33 -05:00
Fixed utf8 characters in the transfer tab name of plugins.
Added Q_OBJECT to the VoipStatistics classes. Removed compiler warnings. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5002 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0d8f65d480
commit
30564fe6ad
@ -408,7 +408,7 @@ RsCacheService::RsCacheService(uint16_t service_type,uint32_t config_type,uint32
|
||||
{
|
||||
}
|
||||
|
||||
RsPQIService::RsPQIService(uint16_t service_type,uint32_t config_type,uint32_t tick_delay_in_seconds, RsPluginHandler* pgHandler)
|
||||
RsPQIService::RsPQIService(uint16_t service_type,uint32_t config_type,uint32_t /*tick_delay_in_seconds*/, RsPluginHandler* /*pgHandler*/)
|
||||
: p3Service(service_type),p3Config(config_type)
|
||||
{
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ PopupChatDialog *VOIPPlugin::qt_allocate_new_popup_chat_dialog() const
|
||||
|
||||
std::string VOIPPlugin::qt_transfers_tab_name() const
|
||||
{
|
||||
return QObject::tr("RTT Statistics").toStdString() ;
|
||||
return QObject::tr("RTT Statistics").toUtf8().constData() ;
|
||||
}
|
||||
RsAutoUpdatePage *VOIPPlugin::qt_transfers_tab() const
|
||||
{
|
||||
|
@ -30,6 +30,8 @@ class VoipStatisticsWidget ;
|
||||
|
||||
class VoipStatistics: public RsAutoUpdatePage, public Ui::VoipStatistics
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
VoipStatistics(QWidget *parent = NULL) ;
|
||||
~VoipStatistics();
|
||||
@ -49,6 +51,8 @@ class VoipStatistics: public RsAutoUpdatePage, public Ui::VoipStatistics
|
||||
|
||||
class VoipStatisticsWidget: public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
VoipStatisticsWidget(QWidget *parent = NULL) ;
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
#include <iostream>
|
||||
#include <QTimer>
|
||||
#include "RsAutoUpdatePage.h"
|
||||
|
||||
|
@ -307,7 +307,7 @@ TransfersDialog::TransfersDialog(QWidget *parent)
|
||||
|
||||
for(int i=0;i<rsPlugins->nbPlugins();++i)
|
||||
if(rsPlugins->plugin(i) != NULL && rsPlugins->plugin(i)->qt_transfers_tab() != NULL)
|
||||
ui.tabWidget->addTab( rsPlugins->plugin(i)->qt_transfers_tab(),QString::fromStdString(rsPlugins->plugin(i)->qt_transfers_tab_name()) ) ;
|
||||
ui.tabWidget->addTab( rsPlugins->plugin(i)->qt_transfers_tab(),QString::fromUtf8(rsPlugins->plugin(i)->qt_transfers_tab_name().c_str()) ) ;
|
||||
|
||||
// TurtleRouterDialog *trdl = new TurtleRouterDialog();
|
||||
// ui.tunnelInfoWidget->setWidget(trdl);
|
||||
|
Loading…
Reference in New Issue
Block a user