RetroShare/retroshare-gui/src/gui/MainPage.cpp
thunder2 a50c899ff3 Moved help browser from MainPage to a new base class named FloatingHelpBrowser for global usage.
Added FloatingHelpBrowser to the option window (help text not including).
The help text can be specified for the ConfigPages in the method "helpText".

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6818 b45a01b8-16f6-495d-af2f-9b41ad6348cc
2013-10-09 09:31:40 +00:00

19 lines
421 B
C++

#include <retroshare-gui/mainpage.h>
#include "common/FloatingHelpBrowser.h"
MainPage::MainPage(QWidget *parent , Qt::WindowFlags flags ) : QWidget(parent, flags)
{
mHelpBrowser = NULL ;
}
void MainPage::registerHelpButton(QAbstractButton *button,const QString& help_html_txt)
{
if (mHelpBrowser == NULL)
{
mHelpBrowser = new FloatingHelpBrowser(this, button) ;
}
mHelpBrowser->setHelpText(help_html_txt) ;
}